riotapi-int

NodeJS integration for RiotAPI


Keywords
riot, api, riotapi, league, of, legends
License
MIT
Install
npm install riotapi-int@1.0.5

Documentation

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