lobobot-riot-api
v0.1.1
Published
Riot API Wrapper in NodeJS
Downloads
5
Readme
lobobot-riot-api
Another NodeJS wrapper for Riot API
Features
- Multiple key support for LOL, LOR, TFT and VALORANT
- Rate limiting with https://github.com/Colorfulstan/RiotRateLimiter-node
Installation
npm i -S lobobot-riot-api
Usage
const RiotAPI = require('lobobot-riot-api');
const api = RiotAPI({
keys: {
lolKey: 'XXXX',
tftKey: 'XXXX',
lorKey: 'XXXX',
valKey: 'XXXX',
}
});
api.tft.summonerV1.byName('EUW', 'Lobo Bot')
.then((data) => {
/*
{
id: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
accountId: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
puuid: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
name: 'Lobo Bot',
profileIconId: 773,
revisionDate: 1589927796000,
summonerLevel: 97
}
*/
});