krapio
Library referenceClasses

AppStatsApi

lifetime stats, the ranked profile and challenge progress; scope stats:read

Constructors

Constructor

new AppStatsApi(gapi, auth): AppStatsApi;

Parameters

ParameterType
gapiKrunkerClient
authRecord<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

ParameterType
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

ParameterType
season?number

Returns

Promise<AppRankedStats>

On this page