Giter Site home page Giter Site logo

riot-api-nodejs's Introduction

build download per month version coverage

riot-api-nodejs

V2.1.0

description

A nodeJS library for the Riot Games Api

install

$ npm install riot-api-nodejs

Dev install

// clone
$ git clone https://github.com/ZafixLRP/riot-api-nodejs.git

// install
$ npm run dev-install

// build
$ npm run build

Usage

var riotApi = require("riot-api-nodejs");

var ClassicAPI = new riotApi.ClassicAPI(["API-KEY1", "API-KEY2"], riotApi.region_e.EUW);

var tournamentAPI = new riotApi.TournamentAPI("API_KEY1", "API_KEY2");

ClassicAPI.getSummonerByName("zafix").then((summoner) => {
    return ClassicAPI.getChampionMasteryScore(summoner.id);
}).catch(function(err){
    //error
});

Classic API

champion-v1.2
getChampions();

getChampionById(id: number);

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

getChampionMasteryBySummoner(summonerId: number);

getChampionMasteryScore(summonerId: number);

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

getLeagueBySummonerIdEntry(summonerId: number);

getLeagueByTeamId(teamId: string);

getLeagueByTeamIdEntry(teamId: string);

getChallengers_SOLO();

getChallengers_3x3();

getChallengers_5x5();

getMasters_SOLO();

getMasters_3x3();

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

staticDataChampionById(championsId: number);

staticDataItems();

staticDataItemById(itemId: number);

staticDataLanguagesStrings();

staticDataLanguages();

staticDataMap();

staticDataMastery();

staticDataMasteryById(masteryId: number);

staticDataRealm();

staticDataRunes();

staticDataRuneById(runeId: number);

staticDataSummonerSpells();

staticDataSummonSpellById(summonerSpellId: number);

staticDataVersion();
lol-status-v1.0
getStatus();

getStatusByRegion(region: region_e);
match-v2.2
getMatch(matchId: number);

getMatchIdsByTournamentCode(tournamentCode: string);

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

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

getSummonerById(summonerId: number);

getSummonerMasteries(summonerId: number);

getSummonerName(summonerId: number);

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

getTeamById(teamId: string);

TournamentAPI

tournament-provider-v1

createTournamentCodes(tournamentId: number, count: number, params: TournamentCodeParameters);

getTournamentByCode(tournamentCode: string);

editTournamentByCode(tournamentCode: string, params: TournamentCodeUpdateParameters);

getLobbyEventByCode(tournamentCode: string);

registerProvider(region: region_e, url: string);

registerTournament(name: string, providerId: number);

Extends API

var riotApi = require("riot-api-nodejs");

class myNewApi Extends riotApi.ClassicAPI {
    // add your functions
}

let api = myNewApi(...);
api.getSummonerName("Zafix").then((...) => { ... })

Contributor(s)


Made with ♥ by Zafix

riot-api-nodejs's People

Contributors

christopher-hsieh avatar coreytrombley avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.