Skip to main content
class RiotClient
implements RiotInterface
import { RiotClient } from "https://deno.land/x/deno_tft@1.0.0/mods.ts";

Constructors

new
RiotClient(
RIOT_API_KEY?: string | undefined,
REGION_URL?: RegionalUrls | string,
PLATFORM_URL?: PlatformUrls | string,
)

Properties

private
RIOT_API_KEY: string | undefined

Methods

private
makeFetchOptions(
method?: HTTP,
AcceptLanguage?: string,
AcceptCharSet?: string,
)
getAllTftMatchesByPuuid(encryptedPUUID?: string, count?): Promise<Array<string>>
getTftAdvLeague(leagueName?: AdvLeague | string): Promise<LeagueListDTO>

********************** LEAGUE *************************


getTftByMatchId(matchId?: string): Promise<TFTMatch>

*************************** MATCH DATA ********************************


getTftEntriesByTier(tier?: Tier | string, division?: Division | string): Promise<LeagueEntryDTO>
getTftLeagueById(leagueId: string): Promise<LeagueListDTO>
getTftMatches(encryptedSummonerId: string): Promise<LeagueListDTO>
getTftSummonerByAccount(accountId?: string): Promise<SummonerObj>
getTftSummonerById(id?: string): Promise<SummonerObj>
getTftSummonerByName(summonerName?: string): Promise<SummonerObj>

************************ SUMMONER DATA ********************************


getTftSummonerByPuuid(puuId?: string): Promise<SummonerObj>
setAPIKey(NEW_API_KEY: string)