docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface ILeaderboardsAdminApi

    Represents a collection of functions to interact with the API endpoints

    Inherited Members
    IApiAccessor.Configuration
    IApiAccessor.GetBasePath()
    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

    LeaderboardIdConfig leaderboardIdConfig

    (optional)

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation

    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.

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation

    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

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation

    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

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation

    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)

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<LeaderboardScoresPage>

    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)

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<LeaderboardTierScoresPage>

    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)

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<BucketsPage>

    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.

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<UpdatedLeaderboardConfig>

    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)

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<LeaderboardConfigPage>

    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

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<LeaderboardEntryWithUpdatedTime>

    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)

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<LeaderboardScoresPage>

    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)

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<LeaderboardTierScoresPage>

    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)

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<LeaderboardVersionScoresPage>

    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)

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<LeaderboardVersionTierScoresPage>

    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)

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<VersionBucketsPage>

    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

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<LeaderboardVersionEntry>

    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)

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<LeaderboardVersionScoresPage>

    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)

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<LeaderboardVersionTierScoresPage>

    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)

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<LeaderboardVersionId>

    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.

    LeaderboardPatchConfig leaderboardPatchConfig

    (optional)

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation

    The operation

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)