1.1.5 • Published 11 months ago

bytrofront v1.1.5

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

BytroFront Wrapper Documentation

BytroFront is a JavaScript/TypeScript client library that abstracts the complexities of interacting with Bytro services, including APIs for utilities, users, games, and alliances. It supports making generic requests, game-specific requests, and automating configuration retrieval using Puppeteer.

Installation

To install BytroFront:

npm install bytrofront

Usage

import { BytroFront } from 'bytrofront';

(async () => {

    // Generate game config. Accessible at hup.config in the client
    let config = await BytroFront.generateConfig("MarcZX10", "realPassword11", "supremacy1914.com");

    const client = new BytroFront(config);

    // Fetch user details
    client.Users.getDetails(48035824).then((response) => {
        console.log(response);
    });

    // Fetch first 10 players in the global ranking
    client.Users.getRanking("globalRank", 0, 10).then((response) => {
        console.log(response);
    });

})

Additional Information

Check the official documentation here: BytroFront Documentation.

If you wish to support us, you can Buy Us a Coffee.

Disclaimer: THIS PROJECT HAS NO OFFICIAL RELATIONSHIP WITH BYTRO AND/OR STILLFRONT WHATSOEVER. THIS IS AN UNOFFICIAL API WRAPPER.

1.1.1

11 months ago

1.1.0

11 months ago

1.1.5

11 months ago

1.1.4

11 months ago

1.1.3

11 months ago

1.0.4

11 months ago

1.1.2

11 months ago

1.0.3

11 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago