riotapi-int
v1.0.5
Published
NodeJS integration for RiotAPI
Maintainers
Readme
RiotAPI
Simple example
const RiotAPI = require("riotapi-int");
const api = new RiotAPI("api-key-here", { region: RiotAPI.REGION.korea });
api.getSummonerV4ByName("Hide on bush", (data, error) => {
if (error) {
// Handle error ...
return;
}
// handler response ...
});Documentation
Champion Mastery V4
api.getChamptionMasteryListV4BySummonerId(id, (data, error) => {
if (error) {
// Handle error ...
return;
}
// handler response ...
});Returns ChampionMasteryV4
api.getChamptionMasteryV4BySummonerIdByChampionId(summonerId, championId, (data, error) => {
if (error) {
// Handle error ...
return;
}
// handler response ...
}
);Returns ChampionMasteryV4
api.getChamptionMasteryV4ScoreBySummonerId(id, (data, error) => {
if (error) {
// Handle error ...
return;
}
// handler response ...
});Returns Number
