0.0.10 • Published 22 days ago

riot-games-api-wrapper v0.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
22 days ago

riot-games-api-wrapper

The purest wrapper over the riot games api

Feature

productapi☑️
Riot GamesACCOUNT-V1
League of LegendsSee here

Using

import RiotGamesAPI, { RiotGamesAccountRegion } from 'riot-games-api-wrapper'

const riot = new RiotGamesAPI([
    {
        token: 'RGAPI-b7957835-f168-41d2-82e8-fe75337713af',
        region: 'ru',
        product: 'LeagueOfLegends',
    },
])

riot.account.getByNameAndTag('titseх', 'snake', RiotGamesAccountRegion.EUROPE).then(console.log).catch(console.error)

riot.lol.status.get().then(console.log).catch(console.error)

Documentation

RiotGamesAPI[RiotGamesAPIOptions | RiotGamesAPIOptions[]]

  • token is required, to get it, follow the Riot Developer Portal
  • region is required, available: 'br1', 'eun1', 'euw1', 'jp1', 'kr', 'la1', 'la2', 'na1', 'oc1', 'ph1', 'ru', 'sg2', 'th2', 'tr1', 'tw2', 'vn2'
  • product is not required, available: 'LeagueOfLegends'

Disclaimer

It so happened that riot games has its own token for each product (game).

This forced us to make separate packages for each game: league-of-legends-api-wrapper

It also forced us to make non-intuitive options in the constructor of the RiotGamesAPI class.

If you need a wrapper over the API of a specific product (game), use the appropriate package.

0.0.10

22 days ago

0.0.9

22 days ago

0.0.8

30 days ago

0.0.3

3 months ago

0.0.5

3 months ago

0.0.4

3 months ago

0.0.7

3 months ago

0.0.6

3 months ago

0.0.2

3 months ago

0.0.1

3 months ago