1.1.5 • Published 6 months ago

bytrofront v1.1.5

Weekly downloads
-
License
ISC
Repository
github
Last release
6 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

6 months ago

1.1.0

6 months ago

1.1.5

6 months ago

1.1.4

6 months ago

1.1.3

6 months ago

1.0.4

6 months ago

1.1.2

6 months ago

1.0.3

6 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago