LeaderboardsApi
Import
Import
Constructors
Constructor
-
Parameters
-
Optional configuration: Configuration
-
basePath: string = ...
-
axios: AxiosInstance = ...
Returns LeaderboardsApi
-
Methods
Add Leaderboard Player Score
-
Parameters
-
projectId: string
The project's Project ID
-
leaderboardId: string
ID of the leaderboard
-
playerId: string
ID of the player
-
Optional leaderboardScore: LeaderboardScore
-
Optional options: AxiosRequestConfig
Returns Promise<AxiosResponse<void>>
-
Get Leaderboard Player Score
-
Get score and rank for the specified player in the specified leaderboard.
Parameters
-
projectId: string
The project's Project ID
-
leaderboardId: string
ID of the leaderboard
-
playerId: string
ID of the player
-
Optional options: AxiosRequestConfig
Returns Promise<AxiosResponse<LeaderboardEntry>>
-
Get Leaderboard Scores
-
Get list of scores and ranks for the specified leaderboard, with specified pagination.
Parameters
-
projectId: string
The project's Project ID
-
leaderboardId: string
ID of the leaderboard
-
Optional offset: number
-
Optional limit: number
-
Optional options: AxiosRequestConfig
Returns Promise<AxiosResponse<LeaderboardScoresPage>>
-
Get Leaderboard Scores By Player Ids
-
Get list of scores and ranks for the specified leaderboard, with specified playerIds.
Parameters
-
projectId: string
The project's Project ID
-
leaderboardId: string
ID of the leaderboard
-
Optional leaderboardPlayerIds: LeaderboardPlayerIds
-
Optional options: AxiosRequestConfig
Returns Promise<AxiosResponse<LeaderboardScoresWithNotFoundPlayerIds>>
-
Get Leaderboard Scores By Player Ids Archive Version
-
Get list of scores and ranks for an archived leaderboard, with specified playerIds.
Parameters
-
projectId: string
The project's Project ID
-
leaderboardId: string
ID of the leaderboard
-
versionId: string
ID of the leaderboard version
-
Optional leaderboardPlayerIds: LeaderboardPlayerIds
-
Optional options: AxiosRequestConfig
Returns Promise<AxiosResponse<LeaderboardVersionScoresByPlayerIds>>
-
Get Leaderboard Scores By Tier
-
Get list of scores and ranks for the specified leaderboard, within the specified tier, with specified pagination.
Parameters
-
projectId: string
The project's Project ID
-
leaderboardId: string
ID of the leaderboard
-
tierId: string
ID of the leaderboard tier.
-
Optional offset: number
-
Optional limit: number
-
Optional options: AxiosRequestConfig
Returns Promise<AxiosResponse<LeaderboardTierScoresPage>>
-
Get Leaderboard Scores Player Range
-
Get the list of neighbouring players for the specified player Id.
Parameters
-
projectId: string
The project's Project ID
-
leaderboardId: string
ID of the leaderboard
-
playerId: string
ID of the player
-
Optional rangeLimit: number
-
Optional options: AxiosRequestConfig
Returns Promise<AxiosResponse<LeaderboardScores>>
-
Get Leaderboard Version Player Score
-
Get score and rank for the specified player in the specified archived leaderboard version.
Parameters
-
projectId: string
The project's Project ID
-
leaderboardId: string
ID of the leaderboard
-
versionId: string
ID of the leaderboard version
-
playerId: string
ID of the player
-
Optional options: AxiosRequestConfig
Returns Promise<AxiosResponse<LeaderboardVersionEntry>>
-
Get Leaderboard Version Scores
-
Get list of scores and ranks for the specified archived leaderboard version, with specified pagination.
Parameters
-
projectId: string
The project's Project ID
-
leaderboardId: string
ID of the leaderboard
-
versionId: string
ID of the leaderboard version
-
Optional offset: number
-
Optional limit: number
-
Optional options: AxiosRequestConfig
Returns Promise<AxiosResponse<LeaderboardVersionScoresPage>>
-
Get Leaderboard Version Scores By Tier
-
Get list of scores and ranks for the specified archived leaderboard version, within the specified tier, with specified pagination.
Parameters
-
projectId: string
The project's Project ID
-
leaderboardId: string
ID of the leaderboard
-
versionId: string
ID of the leaderboard version
-
tierId: string
ID of the leaderboard tier.
-
Optional offset: number
-
Optional limit: number
-
Optional options: AxiosRequestConfig
Returns Promise<AxiosResponse<LeaderboardVersionTierScoresPage>>
-
Get Leaderboard Version Scores Player Range
-
Get the list of neighbouring players for the specified player Id for an archived Leaderboard.
Parameters
-
projectId: string
The project's Project ID
-
leaderboardId: string
ID of the leaderboard
-
versionId: string
ID of the leaderboard version
-
playerId: string
ID of the player
-
Optional rangeLimit: number
-
Optional options: AxiosRequestConfig
Returns Promise<AxiosResponse<LeaderboardVersionRange>>
-
Get Leaderboard Versions
-
Get list of archived leaderboard versions for the specified leaderboard, with specified pagination.
Parameters
-
projectId: string
The project's Project ID
-
leaderboardId: string
ID of the leaderboard
-
Optional options: AxiosRequestConfig
Returns Promise<AxiosResponse<LeaderboardVersions>>
-
Add score for the specified player to the specified leaderboard.
Add Leaderboard Player Score
{RequiredError}
LeaderboardsApi