lol-api-client
Version:
A Node client for interfacing with the League of Legends API
22 lines (18 loc) • 683 B
JavaScript
const ChampionMastery = require('./lib/champion-mastery')
const Champions = require('./lib/champions')
const Games = require('./lib/Games')
const Matches = require('./lib/matches')
const Stats = require('./lib/stats')
const Summoners = require('./lib/summoners')
class Client {
constructor (apiKey, region, platformId) {
this.championMastery = new ChampionMastery(apiKey, platformId)
this.champions = new Champions(apiKey, region)
this.games = new Games(apiKey, region, platformId)
this.matches = new Matches(apiKey, region)
this.stats = new Stats(apiKey, region)
this.summoners = new Summoners(apiKey, region)
}
}
module.exports = Client