lol-api-client
Version:
A Node client for interfacing with the League of Legends API
23 lines (18 loc) • 444 B
JavaScript
const Stats = require('../lib/stats')
require('dotenv').config({ silent: true })
const stats = new Stats(process.env.RIOT_API_KEY, 'na')
const SUMMONER_ID = 5908
exports.getSummary = function (test) {
stats.getSummary(SUMMONER_ID)
.then((data) => {
test.ok(data)
test.done()
})
}
exports.getRanked = function (test) {
stats.getRanked(SUMMONER_ID)
.then((data) => {
test.ok(data)
test.done()
})
}