leagueapi
Version:
Wrapper for the League of Legends API
17 lines (14 loc) • 424 B
JavaScript
var LolApi = require('./lib/lolapi');
//console.log(LoLApi);
LolApi.init('aee0b50d-21b0-4e36-b864-75daa2f5df48', 'na');
options = {}
options.beginTime = 0;
options.endTime = 1;
LolApi.getMatchHistory(22991783, options, function(err, champs) {
console.log(err);
console.log(champs);
});
//LolApi.Summoner.getByName('Yolo Swag 5ever', function(err, champs) {
//console.log(err);
//console.log(champs);
//});