lol-api-client
Version:
A Node client for interfacing with the League of Legends API
23 lines (18 loc) • 475 B
JavaScript
const Matches = require('../lib/matches')
require('dotenv').config({ silent: true })
const matches = new Matches(process.env['RIOT_API_KEY'], 'na')
exports.getById = function (test) {
matches.getById(2169638218)
.then((match) => {
test.ok(match)
test.done()
})
}
exports.getMatchListBySummonerId = function (test) {
matches.getMatchListBySummonerId(5908)
.then((matchList) => {
test.ok(matchList)
test.done()
})
}