0.0.1 • Published 4 years ago
riotgamez-api v0.0.1
riotgames-api
Hi this is just a wrapper for riot api. Everything was built using riot api routes to make life easier for you to make api calls to riot!
Installation
Install npm package
npm install riot-api --save
Then get api key here Riot!
PLATFORM | PLATFORM-HOST | REGION | REGION-HOST |
---|---|---|---|
BR | br1.api.riotgames.com | AMERICAS | americas.api.riotgames.com |
EUN | eun1.api.riotgames.com | EUROPE | europe.api.riotgames.com |
EUW | euw1.api.riotgames.com | EUROPE | europe.api.riotgames.com |
JP | jp1.api.riotgames.com | ASIA | asia.api.riotgames.com |
KR | kr.api.riotgames.com | ASIA | asia.api.riotgames.com |
LAN | la1.api.riotgames.com | AMERICAS | americas.api.riotgames.com |
LAS | la2.api.riotgames.com | AMERICAS | americas.api.riotgames.com |
NA | na1.api.riotgames.com | AMERICAS | americas.api.riotgames.com |
OCE | oc1.api.riotgames.com | AMERICAS | americas.api.riotgames.com |
TR | tr1.api.riotgames.com | EUROPE | europe.api.riotgames.com |
RU | ru.api.riotgames.com | EUROPE | europe.api.riotgames.com |
const { Lol } = require('riotgames-api');
const lol = new Lol({ region: 'KR', apikey: 'YOUR API KEY' });
const summonerName = 'Hide on Bush';
// Get League Of Legends Summoner Info By Name
async function getLolSummonerByName(name) {
const response = await lol.Summoner.summonerByName(name);
console.log(response);
}
getLolSummonerByName(summonerName);
const { Tft } = require('riotgames-api');
const tft = new Tft({ region: 'NA', apikey: 'YOUR API KEY' });
const summonerName = 'Giuttony';
// Get League Of Legends Summoner Info By Name
async function getTftSummonerByName(name) {
const response = await tft.Summoner.summonerByName(name);
console.log(response);
}
getTftSummonerByName(summonerName);
- tft.
- Summoner.
- Match.
- League.
const { Lor } = require('riotgames-api');
const lor = new lor({ region: 'NA', apikey: 'YOUR API KEY' });
// Get League Of Legends Summoner Info By Name
async function getLorRanked() {
const response = await lor.Ranked.leaderboards();
console.log(response);
}
getLorRanked();
- lor.
- Ranked.
- Match.
Contributing
If you want to join and help out. Message me and I can add you to the team! Always willing to get more help to evolve and make it better!
Issues
Report any bug or improvements! Willing to take suggesting too!
Future updates
- ddragon for image
- league of legend oauth
Thank You!
0.0.1
4 years ago