0.0.7 • Published 4 years ago

riotgames-gg v0.0.7

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

riotgames-gg

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! This is new and if you experience something not working. Message me! Not Everything has sample demo yet. Still in working progress but the function works!

Installation

npm install riotgames-gg --save API key here!

Region

PLATFORMPLATFORM-HOSTREGIONREGION-HOST
BRbr1.api.riotgames.comAMERICASamericas.api.riotgames.com
EUNeun1.api.riotgames.comEUROPEeurope.api.riotgames.com
EUWeuw1.api.riotgames.comEUROPEeurope.api.riotgames.com
JPjp1.api.riotgames.comASIAasia.api.riotgames.com
KRkr.api.riotgames.comASIAasia.api.riotgames.com
LANla1.api.riotgames.comAMERICASamericas.api.riotgames.com
LASla2.api.riotgames.comAMERICASamericas.api.riotgames.com
NAna1.api.riotgames.comAMERICASamericas.api.riotgames.com
OCEoc1.api.riotgames.comAMERICASamericas.api.riotgames.com
TRtr1.api.riotgames.comEUROPEeurope.api.riotgames.com
RUru.api.riotgames.comEUROPEeurope.api.riotgames.com

Example

Riot

const { Riot } = require('riotgames-gg');

const riot = new Riot({ region: 'KR', apikey: 'YOUR API KEY' });

async function accountsByPuuid(puuid)(name) {
  const response = await riot.Account.accountsByPuuid(puuid);
  console.log(response);
}

getLolSummonerByName(summonerName);
List of Riot functions

League of Legends

const { Lol } = require('riotgames-gg');

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);
List of League Of Legends functions

TeamFight Tactics

const { Tft } = require('riotgames-gg');

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);
List of TeamFight Tactics functions

Legends of Runeterra

const { Lor } = require('riotgames-gg');

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();
List of Legends of Runeterra functions

Valorant

const { Val } = require('riotgames-gg');

const val = new Val({ region: 'NA', apikey: 'YOUR API KEY' });

async function getValContent() {
  const response = await val.Content.contents();
  console.log(response);
}

getLorRanked();
List of Valorant functions

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!

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago