riotapi-int

1.0.5 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.5
    0
    • latest

Version History

Package Sidebar

Install

npm i riotapi-int

Weekly Downloads

0

Version

1.0.5

License

MIT

Unpacked Size

37.9 kB

Total Files

9

Last publish

Collaborators

  • ofelipedidio