Interface ILeaderboardsAdminApi
Represents a collection of functions to interact with the API endpoints
Namespace: Unity.Services.Apis.Admin.Leaderboards
Assembly: Unity.Services.Apis.dll
Syntax
public interface ILeaderboardsAdminApi : IApiAccessor
Methods
CreateLeaderboard(string, string, LeaderboardIdConfig, CancellationToken)
Create Leaderboard
Declaration
ApiOperation CreateLeaderboard(string projectId, string environmentId, LeaderboardIdConfig leaderboardIdConfig = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | projectId | The project's Project ID |
string | environmentId | The Environment ID of a project |
Leaderboard |
leaderboardIdConfig | (optional) |
Cancellation |
cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Api |
The operation |
DeleteLeaderboard(string, string, string, CancellationToken)
Delete Leaderboard
Declaration
ApiOperation DeleteLeaderboard(string projectId, string environmentId, string leaderboardId, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | projectId | The project's Project ID |
string | environmentId | The Environment ID of a project |
string | leaderboardId | ID of the leaderboard, as set by the user. IDs can be listed by retrieving the leaderboard configurations. |
Cancellation |
cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Api |
The operation |
DeleteLeaderboardPlayerScore(string, string, string, string, CancellationToken)
Delete Player Score
Declaration
ApiOperation DeleteLeaderboardPlayerScore(string projectId, string environmentId, string leaderboardId, string playerId, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | projectId | The project's Project ID |
string | environmentId | The Environment ID of a project |
string | leaderboardId | ID of the leaderboard, as set by the user. IDs can be listed by retrieving the leaderboard configurations. |
string | playerId | ID of the player |
Cancellation |
cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Api |
The operation |
DeleteLeaderboardPlayerScoreAllLiveLeaderboards(string, string, string, CancellationToken)
Delete Player Score From All Live Leaderboards
Declaration
ApiOperation DeleteLeaderboardPlayerScoreAllLiveLeaderboards(string projectId, string environmentId, string playerId, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | projectId | The project's Project ID |
string | environmentId | The Environment ID of a project |
string | playerId | ID of the player |
Cancellation |
cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Api |
The operation |
GetLeaderboardBucketScores(string, string, string, string, int?, int?, CancellationToken)
Get Bucket Scores
Declaration
ApiOperation<LeaderboardScoresPage> GetLeaderboardBucketScores(string projectId, string environmentId, string leaderboardId, string bucketId, int? offset = null, int? limit = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | projectId | The project's Project ID |
string | environmentId | The Environment ID of a project |
string | leaderboardId | ID of the leaderboard, as set by the user. IDs can be listed by retrieving the leaderboard configurations. |
string | bucketId | ID of the leaderboard bucket |
int? | offset | The number of entries to skip when retrieving the leaderboard bucket scores. Defaults to 0 (optional) |
int? | limit | The number of leaderboard bucket scores to return. Defaults to 10 (optional) |
Cancellation |
cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Api |
The operation |
GetLeaderboardBucketScoresByTier(string, string, string, string, string, int?, int?, CancellationToken)
Get Bucket Scores By Tier
Declaration
ApiOperation<LeaderboardTierScoresPage> GetLeaderboardBucketScoresByTier(string projectId, string environmentId, string leaderboardId, string bucketId, string tierId, int? offset = null, int? limit = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | projectId | The project's Project ID |
string | environmentId | The Environment ID of a project |
string | leaderboardId | ID of the leaderboard, as set by the user. IDs can be listed by retrieving the leaderboard configurations. |
string | bucketId | ID of the leaderboard bucket |
string | tierId | ID of the leaderboard tier. |
int? | offset | The number of entries to skip when retrieving the leaderboard bucket scores. Defaults to 0 (optional) |
int? | limit | The number of leaderboard bucket scores to return. Defaults to 10 (optional) |
Cancellation |
cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Api |
The operation |
GetLeaderboardBuckets(string, string, string, int?, int?, CancellationToken)
Get Bucket IDs
Declaration
ApiOperation<BucketsPage> GetLeaderboardBuckets(string projectId, string environmentId, string leaderboardId, int? offset = null, int? limit = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | projectId | The project's Project ID |
string | environmentId | The Environment ID of a project |
string | leaderboardId | ID of the leaderboard, as set by the user. IDs can be listed by retrieving the leaderboard configurations. |
int? | offset | The number of buckets to skip when retrieving the leaderboard bucket IDs. Defaults to 0 (optional) |
int? | limit | The maximum number of leaderboard bucket IDs to return. Defaults to 10 (optional) |
Cancellation |
cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Api |
The operation |
GetLeaderboardConfig(string, string, string, CancellationToken)
Get Leaderboard Config
Declaration
ApiOperation<UpdatedLeaderboardConfig> GetLeaderboardConfig(string projectId, string environmentId, string leaderboardId, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | projectId | The project's Project ID |
string | environmentId | The Environment ID of a project |
string | leaderboardId | ID of the leaderboard, as set by the user. IDs can be listed by retrieving the leaderboard configurations. |
Cancellation |
cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Api |
The operation |
GetLeaderboardConfigs(string, string, string, int?, CancellationToken)
Get Leaderboard Configs
Declaration
ApiOperation<LeaderboardConfigPage> GetLeaderboardConfigs(string projectId, string environmentId, string cursor = null, int? limit = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | projectId | The project's Project ID |
string | environmentId | The Environment ID of a project |
string | cursor | The ID of the leaderboard that listing should start after, i.e. the last leaderboard returned from the previous page when paging (optional) |
int? | limit | The number of leaderboards to return. Defaults to 10 (optional) |
Cancellation |
cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Api |
The operation |
GetLeaderboardPlayerScore(string, string, string, string, CancellationToken)
Get Player Score
Declaration
ApiOperation<LeaderboardEntryWithUpdatedTime> GetLeaderboardPlayerScore(string projectId, string environmentId, string leaderboardId, string playerId, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | projectId | The project's Project ID |
string | environmentId | The Environment ID of a project |
string | leaderboardId | ID of the leaderboard, as set by the user. IDs can be listed by retrieving the leaderboard configurations. |
string | playerId | ID of the player |
Cancellation |
cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Api |
The operation |
GetLeaderboardScores(string, string, string, int?, int?, CancellationToken)
Get Scores
Declaration
ApiOperation<LeaderboardScoresPage> GetLeaderboardScores(string projectId, string environmentId, string leaderboardId, int? offset = null, int? limit = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | projectId | The project's Project ID |
string | environmentId | The Environment ID of a project |
string | leaderboardId | ID of the leaderboard, as set by the user. IDs can be listed by retrieving the leaderboard configurations. |
int? | offset | The number of entries to skip when retrieving the leaderboard scores. Defaults to 0 (optional) |
int? | limit | The number of leaderboard scores to return. Defaults to 10 (optional) |
Cancellation |
cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Api |
The operation |
GetLeaderboardScoresByTier(string, string, string, string, int?, int?, CancellationToken)
Get Scores By Tier
Declaration
ApiOperation<LeaderboardTierScoresPage> GetLeaderboardScoresByTier(string projectId, string environmentId, string leaderboardId, string tierId, int? offset = null, int? limit = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | projectId | The project's Project ID |
string | environmentId | The Environment ID of a project |
string | leaderboardId | ID of the leaderboard, as set by the user. IDs can be listed by retrieving the leaderboard configurations. |
string | tierId | ID of the leaderboard tier. |
int? | offset | The number of entries to skip when retrieving the leaderboard scores. Defaults to 0 (optional) |
int? | limit | The number of leaderboard scores to return. Defaults to 10 (optional) |
Cancellation |
cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Api |
The operation |
GetLeaderboardVersionBucketScores(string, string, string, string, string, int?, int?, CancellationToken)
Get Version Bucket Scores
Declaration
ApiOperation<LeaderboardVersionScoresPage> GetLeaderboardVersionBucketScores(string projectId, string environmentId, string leaderboardId, string versionId, string bucketId, int? offset = null, int? limit = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | projectId | The project's Project ID |
string | environmentId | The Environment ID of a project |
string | leaderboardId | ID of the leaderboard, as set by the user. IDs can be listed by retrieving the leaderboard configurations. |
string | versionId | ID of the leaderboard version |
string | bucketId | ID of the leaderboard bucket |
int? | offset | The number of entries to skip when retrieving the leaderboard version bucket scores. Defaults to 0 (optional) |
int? | limit | The number of leaderboard version bucket scores to return. Defaults to 10 (optional) |
Cancellation |
cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Api |
The operation |
GetLeaderboardVersionBucketScoresByTier(string, string, string, string, string, string, int?, int?, CancellationToken)
Get Version Bucket Scores By Tier
Declaration
ApiOperation<LeaderboardVersionTierScoresPage> GetLeaderboardVersionBucketScoresByTier(string projectId, string environmentId, string leaderboardId, string versionId, string bucketId, string tierId, int? offset = null, int? limit = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | projectId | The project's Project ID |
string | environmentId | The Environment ID of a project |
string | leaderboardId | ID of the leaderboard, as set by the user. IDs can be listed by retrieving the leaderboard configurations. |
string | versionId | ID of the leaderboard version |
string | bucketId | ID of the leaderboard bucket |
string | tierId | ID of the leaderboard tier. |
int? | offset | The number of entries to skip when retrieving the leaderboard version bucket scores. Defaults to 0 (optional) |
int? | limit | The number of leaderboard version bucket scores to return. Defaults to 10 (optional) |
Cancellation |
cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Api |
The operation |
GetLeaderboardVersionBuckets(string, string, string, string, int?, int?, CancellationToken)
Get Version Bucket IDs
Declaration
ApiOperation<VersionBucketsPage> GetLeaderboardVersionBuckets(string projectId, string environmentId, string leaderboardId, string versionId, int? offset = null, int? limit = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | projectId | The project's Project ID |
string | environmentId | The Environment ID of a project |
string | leaderboardId | ID of the leaderboard, as set by the user. IDs can be listed by retrieving the leaderboard configurations. |
string | versionId | ID of the leaderboard version |
int? | offset | The number of entries to skip when retrieving the leaderboard version bucket IDs. Defaults to 0 (optional) |
int? | limit | The number of leaderboard version bucket IDs to return. Defaults to 10 (optional) |
Cancellation |
cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Api |
The operation |
GetLeaderboardVersionPlayerScore(string, string, string, string, string, CancellationToken)
Get Version Player Score
Declaration
ApiOperation<LeaderboardVersionEntry> GetLeaderboardVersionPlayerScore(string projectId, string environmentId, string leaderboardId, string versionId, string playerId, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | projectId | The project's Project ID |
string | environmentId | The Environment ID of a project |
string | leaderboardId | ID of the leaderboard, as set by the user. IDs can be listed by retrieving the leaderboard configurations. |
string | versionId | ID of the leaderboard version |
string | playerId | ID of the player |
Cancellation |
cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Api |
The operation |
GetLeaderboardVersionScores(string, string, string, string, int?, int?, CancellationToken)
Get Version Scores
Declaration
ApiOperation<LeaderboardVersionScoresPage> GetLeaderboardVersionScores(string projectId, string environmentId, string leaderboardId, string versionId, int? offset = null, int? limit = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | projectId | The project's Project ID |
string | environmentId | The Environment ID of a project |
string | leaderboardId | ID of the leaderboard, as set by the user. IDs can be listed by retrieving the leaderboard configurations. |
string | versionId | ID of the leaderboard version |
int? | offset | The number of entries to skip when retrieving the leaderboard version scores. Defaults to 0 (optional) |
int? | limit | The number of leaderboard version scores to return. Defaults to 10 (optional) |
Cancellation |
cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Api |
The operation |
GetLeaderboardVersionScoresByTier(string, string, string, string, string, int?, int?, CancellationToken)
Get Version Scores By Tier
Declaration
ApiOperation<LeaderboardVersionTierScoresPage> GetLeaderboardVersionScoresByTier(string projectId, string environmentId, string leaderboardId, string versionId, string tierId, int? offset = null, int? limit = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | projectId | The project's Project ID |
string | environmentId | The Environment ID of a project |
string | leaderboardId | ID of the leaderboard, as set by the user. IDs can be listed by retrieving the leaderboard configurations. |
string | versionId | ID of the leaderboard version |
string | tierId | ID of the leaderboard tier. |
int? | offset | The number of entries to skip when retrieving the leaderboard version scores. Defaults to 0 (optional) |
int? | limit | The number of leaderboard version scores to return. Defaults to 10 (optional) |
Cancellation |
cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Api |
The operation |
ResetLeaderboardScores(string, string, string, bool?, CancellationToken)
Reset Scores
Declaration
ApiOperation<LeaderboardVersionId> ResetLeaderboardScores(string projectId, string environmentId, string leaderboardId, bool? archive = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | projectId | The project's Project ID |
string | environmentId | The Environment ID of a project |
string | leaderboardId | ID of the leaderboard, as set by the user. IDs can be listed by retrieving the leaderboard configurations. |
bool? | archive | Whether or not to archive the current set of scores before resetting the leaderboard (optional) |
Cancellation |
cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Api |
The operation |
UpdateLeaderboardConfig(string, string, string, LeaderboardPatchConfig, CancellationToken)
Update Leaderboard Config
Declaration
ApiOperation UpdateLeaderboardConfig(string projectId, string environmentId, string leaderboardId, LeaderboardPatchConfig leaderboardPatchConfig = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | projectId | The project's Project ID |
string | environmentId | The Environment ID of a project |
string | leaderboardId | ID of the leaderboard, as set by the user. IDs can be listed by retrieving the leaderboard configurations. |
Leaderboard |
leaderboardPatchConfig | (optional) |
Cancellation |
cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Api |
The operation |