🚙 8DX Lounge API Client for JavaScript.
VikeMK/Lounge-API for JavaScript API Client
API Endpoints
yarn add 8dxlounge.js
npm install 8dxlounge.js
View details under src directory.
import { LoungeApi } from '8dxlounge.js';
const api = new LoungeApi();
(async () => {
/* Get the Players list */
const players = await api.getPlayers()
console.log(players);
/* Get the Players list by MMR Range */
const players = await api.getPlayersByRange(1000, 2000)
console.log(players);
/* Get the Player by MKCID */
const player = await api.getPlayerById(6167)
console.log(player);
/* Get the Player by PlayerName */
const player = await api.getPlayerByName("takagi")
console.log(player)
/* Get the PlayerDetails by PlayerName */
const pd = await api.getPlayerDetailsByName("takagi")
console.log(pd)
/* Get the Table by TableID */
const table = await api.getTableById(100)
console.log(table)
/* Get the Tables list */
const tables = await api.getTables()
console.log(tables)
/* Get the Penalties list */
const penalties = await api.getPenaltiesByName("kusaan")
console.log(penalties)
})();