2.2.0 • Published 9 years ago

riot-games-api-typescript v2.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

riot-games-api-typescript

Description

v2.2.0 - riot-games-api-typescript A League of legends Library for Riot Games Api with nodejs and typescript

Install

$ npm install riot-games-api-typescript

Usage

///<reference path="./node_modules/riot-games-api-typescript/typings/riot-games-api/riot-games-api.d.ts"/>

import * as riotApi from "riot-games-api-typescript";

let Api = new riotApi.ClassicAPI(
  ["your-APIKey-1",
  "your-APIKey-2"
], riotApi.region_e.EUW);

let TournamentApi= new riotApi.TournamentAPI("TournamentAPIKey");

//get the infos of the summoner : "zafix"
Api.getSummonerByName("Zafix", (Summoner: RiotGamesAPI.Summoner.SummonerDto) => {
  //Succes
}).catch((err: number) => {
  //Fail with errors
});

Classic API

champion-v1.2
getChampions(callback : Function);

getChampionById(id: number, callback : Function);

getFreeToPlayChampions(callback : Function);

getFreeToPlayChampions(callback : Function);
championmastery
getChampionMastery(summonerId: number, championId: number, callback: Function);

getChampionMasteryBySummoner(summonerId: number, callback: Function);

getChampionMasteryScore(summonerId: number, callback: Function);

getTopChampionMastery(summonerId, callback: Function);
current-game-v1.0
getCurrentGame(summonerId: number, callback : Function);
featured-games-v1.0
getFeaturedGame(callback : Function);
game-v1.3
getRecentGames(summonerId: number, callback : Function);
league-v2.5
getLeagueBySummonerId(summonerId: number, callback : Function);

getLeagueBySummonerIdEntry(summonerId: number, callback : Function);

getLeagueByTeamId(teamId: string, callback : Function);

getLeagueByTeamIdEntry(teamId: string, callback : Function);

getChallengers_SOLO(callback : Function);

getChallengers_3x3(callback : Function);

getChallengers_5x5(callback : Function);

getMasters_SOLO(callback : Function);

getMasters_3x3(callback : Function);

getMasters_5x5(callback : Function);
lol-static-data-v1.2
staticDataChampions(callback : Function);

staticDataChampionById(championsId: number, callback : Function);

staticDataItems(callback : Function);

staticDataItemById(itemId: number, callback : Function);

staticDataLanguagesStrings(callback : Function);

staticDataLanguages(callback : Function);

staticDataMap(callback : Function);

staticDataMastery(callback : Function);

staticDataMasteryById(masteryId: number, callback : Function);

staticDataRealm(callback : Function);

staticDataRunes(callback : Function);

staticDataRuneById(runeId: number, callback : Function);

staticDataSummonerSpells(callback : Function);

staticDataSummonSpellById(summonerSpellId: number, callback : Function);

staticDataVersion(callback : Function);
lol-status-v1.0
getSatus(callback : Function);

getSatusByRegion(region: region_e, callback : Function);
match-v2.2
getMatch(matchId: number, callback : Function);

getMatchIdsByTournamentCode(tournamentCode: string, callback: Function);

getMatchForTournament(matchId: number, callback: Function);
matchlist-v2.2
getMatchList(summonerId: number, callback : Function);
stats-v1.3
getStatsRanked(summonerId: number, callback : Function);

getStatsSummary(summonerId: number, callback : Function);
summoner-v1.4
getSummonerByName(summonerName: string, callback : Function);

getSummonerById(summonerId: number, callback : Function);

getSummonerMasteries(summonerId: number, callback : Function);

getSummonerName(summonerId: number, callback : Function);

getSummonerRunes(summonerId: number,callback : Function);
team-v2.4
getTeamsBySummoner(summonerId: number, callback : Function);

getTeamById(teamId: string, callback : Function);

TournamentAPI

tournament-provider-v1

getTournamentCodes(tournamentId: number, count: number, params: TournamentCodeParameters, callback: Fuction);

getTournamentByCode(tournamentCode: string, callback: Fuction);

editTournamentByCode(tournamentCode: string, params: TournamentCodeUpdateParameters, callback: Fuction);

getLobbyEventByCode(tournamentCode: string, callback: Fuction);

registerProvider(region: region_e, url: string, callback: Fuction);

registerTournament(name: string, providerId: number, callback: Fuction);

TO DO List

  • better error management

Contributor(s)

Made with ♥ by Zafix
2.2.0

9 years ago

2.1.0

9 years ago

2.0.3

10 years ago

2.0.2

10 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.2.0

10 years ago

1.1.4

10 years ago

1.1.3

10 years ago

1.1.2

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago