faceit-node-api
Version:
Lightweight node.js module for easier use of the Faceit Data API.
16 lines (15 loc) • 430 B
JavaScript
import Faceit from '../Faceit.js';
export default class Games extends Faceit {
constructor() {
super('games');
}
getAllDetailsOnAllGames(queryparams) {
return this.processRequest(null, queryparams);
}
getGameDetails(game_id) {
return this.processRequest(`/${game_id}`);
}
getAllDetailsOfTheParentGame(game_id) {
return this.processRequest(`/${game_id}/parent`);
}
}