Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RiotClient

Hierarchy

  • RiotClient

Implements

  • any

Index

Constructors

constructor

Properties

PLATFORM_URL

PLATFORM_URL: PlatformUrls | string

REGION_URL

REGION_URL: RegionalUrls | string

Private RIOT_API_KEY

RIOT_API_KEY: string | undefined

Methods

getAPIKey

  • getAPIKey(): string

getAllTftMatchesByPuuid

  • getAllTftMatchesByPuuid(encryptedPUUID?: string, count?: number): Promise<Array<string>>
  • Parameters

    • Default value encryptedPUUID: string = ""
    • Default value count: number = 20

    Returns Promise<Array<string>>

getTftAdvLeague

getTftByMatchId

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

getTftEntriesByTier

getTftLeagueById

getTftMatches

  • getTftMatches(encryptedSummonerId: string): Promise<LeagueListDTO>

getTftSummonerByAccount

  • getTftSummonerByAccount(accountId?: string): Promise<SummonerObj>

getTftSummonerById

  • getTftSummonerById(id?: string): Promise<SummonerObj>

getTftSummonerByName

  • getTftSummonerByName(summonerName?: string): Promise<SummonerObj>

getTftSummonerByPuuid

  • getTftSummonerByPuuid(puuId?: string): Promise<SummonerObj>
  • Parameters

    • Default value puuId: string = "wNAH--jmUok3Ln2Gbt0VHl_qfJhk8OJEFmC5o_fWyr3eD4D1e34x2WIfeGY8i_7kfmZ9fPrQtH-hCg"

    Returns Promise<SummonerObj>

Private makeFetchOptions

  • makeFetchOptions(method?: HTTP, AcceptLanguage?: string, AcceptCharSet?: string): {} | { method: any; headers: object }
  • Parameters

    • Default value method: HTTP = HTTP.GET
    • Default value AcceptLanguage: string = "en-US,en;q=0.9"
    • Default value AcceptCharSet: string = "application/x-www-form-urlencoded; charset=UTF-8"

    Returns {} | { method: any; headers: object }

setAPIKey

  • setAPIKey(NEW_API_KEY: string): void

Generated using TypeDoc