Search
Preparing search index...
The search index is not available
node-tft - v0.2.0
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
Riot
Class Riot
Hierarchy
Riot
Implements
RiotInterface
Index
Constructors
constructor
Properties
PLATFORM_
URL
REGION_
URL
RIOT_
API_
KEY
Methods
getAPIKey
get
All
Tft
Matches
ByPuuid
get
Tft
Adv
League
get
Tft
ByMatch
Id
get
Tft
Entries
ByTier
get
Tft
League
ById
get
Tft
Matches
get
Tft
Summoner
ByAccount
get
Tft
Summoner
ById
get
Tft
Summoner
ByName
get
Tft
Summoner
ByPuuid
make
Fetch
Options
setAPIKey
Constructors
constructor
new
Riot
(
RIOT_API_KEY
?:
string
, REGION_URL
?:
RegionalUrls
|
string
, PLATFORM_URL
?:
PlatformUrls
|
string
)
:
Riot
Parameters
Default value
RIOT_API_KEY:
string
= process.env.RIOT_API_KEY
Default value
REGION_URL:
RegionalUrls
|
string
= RegionalUrls.AMERICAS
Default value
PLATFORM_URL:
PlatformUrls
|
string
= PlatformUrls.NA1
Returns
Riot
Properties
PLATFORM_
URL
PLATFORM_
URL
:
PlatformUrls
|
string
REGION_
URL
REGION_
URL
:
RegionalUrls
|
string
Private
RIOT_
API_
KEY
RIOT_
API_
KEY
:
string
Methods
getAPIKey
getAPIKey
(
)
:
string
Returns
string
get
All
Tft
Matches
ByPuuid
get
All
Tft
Matches
ByPuuid
(
encryptedPUUID
?:
string
)
:
Promise
<
Array
<
number
>
>
Parameters
Default value
encryptedPUUID:
string
= null
Returns
Promise
<
Array
<
number
>
>
get
Tft
Adv
League
get
Tft
Adv
League
(
leagueName
?:
AdvLeague
|
string
)
:
Promise
<
LeagueListDTO
>
**
LEAGUE
*****
Parameters
Default value
leagueName:
AdvLeague
|
string
= AdvLeague.challenger
Returns
Promise
<
LeagueListDTO
>
get
Tft
ByMatch
Id
get
Tft
ByMatch
Id
(
matchId
?:
string
)
:
Promise
<
TFTMatch
>
***
MATCH DATA
****
Parameters
Default value
matchId:
string
= null
Returns
Promise
<
TFTMatch
>
get
Tft
Entries
ByTier
get
Tft
Entries
ByTier
(
tier
?:
Tier
|
string
, division
?:
Division
|
string
)
:
Promise
<
LeagueEntryDTO
>
Parameters
Default value
tier:
Tier
|
string
= Tier.DIAMOND
Default value
division:
Division
|
string
= Division.I
Returns
Promise
<
LeagueEntryDTO
>
get
Tft
League
ById
get
Tft
League
ById
(
leagueId
:
string
)
:
Promise
<
LeagueListDTO
>
Parameters
leagueId:
string
Returns
Promise
<
LeagueListDTO
>
get
Tft
Matches
get
Tft
Matches
(
encryptedSummonerId
:
string
)
:
Promise
<
LeagueListDTO
>
Parameters
encryptedSummonerId:
string
Returns
Promise
<
LeagueListDTO
>
get
Tft
Summoner
ByAccount
get
Tft
Summoner
ByAccount
(
accountId
?:
string
)
:
Promise
<
SummonerObj
>
Parameters
Default value
accountId:
string
= "VYHdpIsp43b0woR8kx0_crrwd5lMfP4H0ot6290JlTpOjus"
Returns
Promise
<
SummonerObj
>
get
Tft
Summoner
ById
get
Tft
Summoner
ById
(
id
?:
string
)
:
Promise
<
SummonerObj
>
Parameters
Default value
id:
string
= "0D5n4exiMYZSO4V9FK_W8Pia_GPZyQyKheDLuKGN94YTP24"
Returns
Promise
<
SummonerObj
>
get
Tft
Summoner
ByName
get
Tft
Summoner
ByName
(
summonerName
?:
string
)
:
Promise
<
SummonerObj
>
****
SUMMONER DATA
****
Parameters
Default value
summonerName:
string
= "AnimeGrillPlayer"
Returns
Promise
<
SummonerObj
>
get
Tft
Summoner
ByPuuid
get
Tft
Summoner
ByPuuid
(
puuId
?:
string
)
:
Promise
<
SummonerObj
>
Parameters
Default value
puuId:
string
= "wNAH--jmUok3Ln2Gbt0VHl_qfJhk8OJEFmC5o_fWyr3eD4D1e34x2WIfeGY8i_7kfmZ9fPrQtH-hCg"
Returns
Promise
<
SummonerObj
>
Private
make
Fetch
Options
make
Fetch
Options
(
method
?:
HTTP
, AcceptLanguage
?:
string
, AcceptCharSet
?:
string
)
:
object
|
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
object
|
object
setAPIKey
setAPIKey
(
NEW_API_KEY
:
string
)
:
void
Parameters
NEW_API_KEY:
string
Returns
void
Globals
Adv
League
Division
HTTP
Platform
Urls
Regional
Urls
Tier
Riot
constructor
PLATFORM_
URL
REGION_
URL
RIOT_
API_
KEY
getAPIKey
get
All
Tft
Matches
ByPuuid
get
Tft
Adv
League
get
Tft
ByMatch
Id
get
Tft
Entries
ByTier
get
Tft
League
ById
get
Tft
Matches
get
Tft
Summoner
ByAccount
get
Tft
Summoner
ById
get
Tft
Summoner
ByName
get
Tft
Summoner
ByPuuid
make
Fetch
Options
setAPIKey
Companion
League
EntryDTO
League
ItemDTO
League
ListDTO
Match
Info
Match
Meta
Data
Match
Participant
Mini
SeriesDTO
Riot
Interface
Summoner
Obj
TFTMatch
Traits
Unit
Generated using
TypeDoc
** LEAGUE *****