@benjamindendas/annie
v2.0.18
Published
League of legends node API Wrapper
Downloads
55
Maintainers
Readme
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
- Create an instance
var annie = require('@benjamindendas/annie');
- Configure your API Key
annie.config.setApiKey("YOURAPIKEYHERE");
- Configure the region you would like to use:
annie.config.setRegion("EUW");
- 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