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 addLeaderboardScore: AddLeaderboardScore
-
Optional options: AxiosRequestConfig<any>
Returns Promise<AxiosResponse<LeaderboardEntryWithUpdatedTime, any>>
-
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 includeMetadata: boolean
-
Optional options: AxiosRequestConfig<any>
Returns Promise<AxiosResponse<LeaderboardEntryWithUpdatedTime, any>>
-
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 includeMetadata: boolean
-
Optional offset: number
-
Optional limit: number
-
Optional options: AxiosRequestConfig<any>
Returns Promise<AxiosResponse<LeaderboardScoresPage, any>>
-
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 includeMetadata: boolean
-
Optional leaderboardPlayerIds: LeaderboardPlayerIds
-
Optional options: AxiosRequestConfig<any>
Returns Promise<AxiosResponse<LeaderboardScoresWithNotFoundPlayerIds, any>>
-
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 includeMetadata: boolean
-
Optional leaderboardPlayerIds: LeaderboardPlayerIds
-
Optional options: AxiosRequestConfig<any>
Returns Promise<AxiosResponse<LeaderboardVersionScoresByPlayerIds, any>>
-
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 includeMetadata: boolean
-
Optional offset: number
-
Optional limit: number
-
Optional options: AxiosRequestConfig<any>
Returns Promise<AxiosResponse<LeaderboardTierScoresPage, any>>
-
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 includeMetadata: boolean
-
Optional rangeLimit: number
-
Optional options: AxiosRequestConfig<any>
Returns Promise<AxiosResponse<LeaderboardScores, any>>
-
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 includeMetadata: boolean
-
Optional options: AxiosRequestConfig<any>
Returns Promise<AxiosResponse<LeaderboardVersionEntry, any>>
-
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 includeMetadata: boolean
-
Optional offset: number
-
Optional limit: number
-
Optional options: AxiosRequestConfig<any>
Returns Promise<AxiosResponse<LeaderboardVersionScoresPage, any>>
-
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 includeMetadata: boolean
-
Optional offset: number
-
Optional limit: number
-
Optional options: AxiosRequestConfig<any>
Returns Promise<AxiosResponse<LeaderboardVersionTierScoresPage, any>>
-
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 includeMetadata: boolean
-
Optional rangeLimit: number
-
Optional options: AxiosRequestConfig<any>
Returns Promise<AxiosResponse<LeaderboardVersionRange, any>>
-
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 limit: number
-
Optional options: AxiosRequestConfig<any>
Returns Promise<AxiosResponse<LeaderboardVersions, any>>
-
Add score for the specified player to the specified leaderboard.
Add Player Score
{RequiredError}
LeaderboardsApi