@benjamindendas/annie

2.0.18 • Public • Published

Annie - NodeJS API Wrapper for the RIOT API

Wrapper for the RIOT League Of Legends API, written in NODEJS.

Installing

npm install @benjamindendas/annie --save

Useage

  1. Create an instance
var annie = require('@benjamindendas/annie');
  1. Configure your API Key
annie.config.setApiKey("YOURAPIKEYHERE");
  1. Configure the region you would like to use:
annie.config.setRegion("EUW");
  1. Make the API calls using the supplied methods.

Available endpoints:

  • CHAMPION-MASTERY-V4
    • getChampionMasteriesBySummonerId
    • getChampionMasteryBySummonerIdAndChampionId
    • getMasteryScoreBySummonerId
  • CHAMPION-V3
    • getFreeChampionRotation
  • LEAGUE-V4
    • getChallengerLeaguesByQueue
    • getRankInformationBySummonerId
    • getListOfSummonersInLeagueAndDivision
    • getListOfGrandMastersInQueue
    • getLadderForLeague
    • getMasterLadderByQueue
  • LOL-STATUS-V3
    • getShardData
  • MATCH-V4
    • getMatchById
    • getMatchlistByAccount
    • getTimeLinesByMatchId
    • getMatchesByTournamentCode
    • getMatchFromTournament
  • SPECTATOR-V4
    • getFeaturedGames
  • SUMMONER-V4
    • getSummonerBySummonername
    • getSummonerByAccount
    • getSummonerByPuuid
    • getSummonerByEncryptedSummonerId

Available constants:

  • Division: containing all the divisions in League Of Legends
const {BRONZE,DIAMOND,GOLD,IRON,PLATINUM,SILVER} = annie.divisions;
  • Tier: containing all the tiers in League of Legends:
const {I, II,III,IIII} = annie.tiers;
  • modes: Containing the gamemodes used in various stats api calls, not to be confused with gamemodes
const {RANKED_FLEX_SR, RANKED_FLEX_TFT, RANKED_SOLO_5x5, RANKED_TFT} = annie.modes;
  • gamemodes:
All possible versions of League Of legends (playable modes)
  • gametypes
  • seasons
  • maps
  • queue's

Package Sidebar

Install

npm i @benjamindendas/annie

Weekly Downloads

1

Version

2.0.18

License

MIT

Unpacked Size

21 kB

Total Files

22

Last publish

Collaborators

  • benjamindendas