Library referenceClasses
AppStatsApi
lifetime stats, the ranked profile and challenge progress; scope stats:read
Constructors
Constructor
new AppStatsApi(gapi, auth): AppStatsApi;Parameters
| Parameter | Type |
|---|---|
gapi | KrunkerClient |
auth | Record<string, string> |
Returns
AppStatsApi
Methods
challenges()
challenges(query?): Promise<AppPage<AppChallenge>>;GET /app/v1/stats/challenges (stats:read), active challenges with the player's progress
Parameters
| Parameter | Type |
|---|---|
query? | AppChallengesQuery |
Returns
Promise<AppPage<AppChallenge>>
get()
get(): Promise<AppStats>;GET /app/v1/stats (stats:read), lifetime stats; KR and other currencies are not in it
Returns
Promise<AppStats>
ranked()
ranked(season?): Promise<AppRankedStats>;GET /app/v1/stats/ranked (stats:read), the ranked profile per region; the current season when omitted
Parameters
| Parameter | Type |
|---|---|
season? | number |
Returns
Promise<AppRankedStats>