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.
To install BytroFront
:
npm install bytrofront
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);
});
})
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.