riotapi

2.0.0 • Public • Published

RiotAPI

Simple example

const RiotAPI = require('riotapi');
 
const api = new RiotAPI('api-key-here', { region: RiotAPI.REGION.korea });
 
api
  .getSummonerV4ByName('Hide on bush')
  .then(console.log)
  .catch(console.error);

Documentation

WORK IN PROGRESS

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

Package Sidebar

Install

npm i riotapi

Weekly Downloads

1

Version

2.0.0

License

MIT

Unpacked Size

38.7 kB

Total Files

10

Last publish

Collaborators

  • jemiloii