League of legends api wrapper
LOL:
import { Riot, Region } from 'https://deno.land/x/deno_riot/mod.ts';
const riot = new Riot("API_KEY");
riot.summoner.getSummonerByName("Plankson", Region.BR1).then((data) => {
console.log(data);
});
Everything should be in the same order as in the official docs.
-
Get players by summoner id
-
Get team
-
Get tournaments
-
Get tournaments by team id
-
Get tournament by id
-
Get all champion mastery entries sorted by number of champion points descending.
-
Get a champion mastery by player ID and champion ID.
-
Get a player's total champion mastery score, which is the sum of individual champion mastery levels.
-
Retrieve all champions.
-
Retrieve champion by ID.
-
Get matches id by tournament code
-
Get match by id
-
Get match by tournament code
-
Get matches by summoner id
-
Get match timeline by id
-
Get the challenger league for given queue.
-
Get league entries in all queues for a given summoner ID.
-
Get all the league entries.
-
Get the grandmaster league of a specific queue.
-
Get league with given ID, including inactive entries.
-
Get the master league for given queue.
-
Get all the league entries
-
Get League of Legends status for the given shard.
-
Get current game information for the given summoner ID.
-
Get list of featured games.
-
Get a summoner by account ID.
-
Get a summoner by summoner name.
-
Get a summoner by PUUID.
-
Get a summoner by summoner ID.
-
Create a mock tournament code for the given tournament.
-
Gets a mock list of lobby events by tournament code.
-
Creates a mock tournament provider and returns its ID.
-
Creates a mock tournament and returns its ID.
-
Create a tournament code for the given tournament.
-
Returns the tournament code DTO associated with a tournament code string.
-
Update the pick type, map, spectator type, or allowed summoners for a code.
-
Gets a list of lobby events by tournament code.
-
Creates a tournament provider and returns its ID.
-
Creates a tournament and returns its ID.
-
Get a summoner by account ID.
-
Get a summoner by summoner name.
-
Get a summoner by PUUID.
-
Get a summoner by summoner ID.
-
Get match list by summoner PUUID.
-
Get match list details.
-
Get the challenger league for given queue.
-
Get league entries in all queues for a given summoner ID.
-
Get all the league entries.
-
Get league with given ID, including inactive entries.
-
Get the master league for given queue.