docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PlayerAuthenticationAdminApi

    Represents a collection of functions to interact with the API endpoints

    Inheritance
    object
    PlayerAuthenticationAdminApi
    Implements
    IPlayerAuthenticationAdminApi
    IApiAccessor
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Services.Apis.Admin.PlayerAuthentication
    Assembly: Unity.Services.Apis.dll
    Syntax
    public class PlayerAuthenticationAdminApi : IPlayerAuthenticationAdminApi, IApiAccessor

    Constructors

    PlayerAuthenticationAdminApi(IApiClient)

    Initializes a new instance of the PlayerAuthenticationAdminApi class using a Configuration object and client instance.

    Declaration
    public PlayerAuthenticationAdminApi(IApiClient apiClient)
    Parameters
    Type Name Description
    IApiClient apiClient

    The client interface for synchronous API access.

    PlayerAuthenticationAdminApi(IApiClient, IApiConfiguration)

    Initializes a new instance of the PlayerAuthenticationAdminApi class using a Configuration object and client instance.

    Declaration
    public PlayerAuthenticationAdminApi(IApiClient apiClient, IApiConfiguration apiConfiguration)
    Parameters
    Type Name Description
    IApiClient apiClient

    The client interface for synchronous API access.

    IApiConfiguration apiConfiguration

    The configuration object.

    Properties

    Client

    The client for accessing this underlying API asynchronously.

    Declaration
    public IApiClient Client { get; }
    Property Value
    Type Description
    IApiClient

    Configuration

    Gets the configuration object

    Declaration
    public IApiConfiguration Configuration { get; }
    Property Value
    Type Description
    IApiConfiguration

    An instance of the Configuration

    Methods

    ChangePassword(string, string, PlayerAuthChangePasswordRequest, CancellationToken)

    Change Password Change Username Password account password

    Declaration
    public ApiOperation ChangePassword(string playerId, string projectId, PlayerAuthChangePasswordRequest playerAuthChangePasswordRequest = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string playerId

    This is the player Id.

    string projectId

    Id of the project.

    PlayerAuthChangePasswordRequest playerAuthChangePasswordRequest

    (optional)

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation

    The operation

    DeletePlayer(string, string, CancellationToken)

    Delete Player Delete a player. [WARNING] The account deletion API only deletes the player's Unity Authentication account. It is your obligation to ensure that you delete all associated player data that is connected to the player's Unity Authentication account and other UGS services you use, such as Economy and Cloud Save.

    Declaration
    public ApiOperation<object> DeletePlayer(string playerId, string projectId, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string playerId

    This is the player Id.

    string projectId

    Id of the project.

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<object>

    The operation

    DisablePlayer(string, string, CancellationToken)

    Disable Player Disable the player.

    Declaration
    public ApiOperation<PlayerAuthPlayerProjectResponse> DisablePlayer(string playerId, string projectId, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string playerId

    This is the player Id.

    string projectId

    Id of the project.

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<PlayerAuthPlayerProjectResponse>

    The operation

    EnablePlayer(string, string, CancellationToken)

    Enable Player Enable the player.

    Declaration
    public ApiOperation<PlayerAuthPlayerProjectResponse> EnablePlayer(string playerId, string projectId, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string playerId

    This is the player Id.

    string projectId

    Id of the project.

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<PlayerAuthPlayerProjectResponse>

    The operation

    GetBasePath()

    Gets the base path of the API client.

    Declaration
    public string GetBasePath()
    Returns
    Type Description
    string

    The base path

    GetPlayer(string, string, CancellationToken)

    Get Player Get the current player's information.

    Declaration
    public ApiOperation<PlayerAuthPlayerProjectResponse> GetPlayer(string playerId, string projectId, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string playerId

    This is the player Id.

    string projectId

    Id of the project.

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<PlayerAuthPlayerProjectResponse>

    The operation

    ListPlayers(string, int?, string, string, string, string, CancellationToken)

    List Players Return a list of the project's players and their information.

    Declaration
    public ApiOperation<PlayerAuthListProjectUserResponse> ListPlayers(string projectId, int? limit = null, string page = null, string username = null, string externalId = null, string idProvider = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string projectId

    Id of the project.

    int? limit

    The number of players to return. (optional)

    string page

    (Optional) The next page token. If not set, returns players without any offset. (optional)

    string username

    Username of the player. (optional)

    string externalId

    External Provider player id. (optional)

    string idProvider

    External provider name among the supported ones. (optional)

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<PlayerAuthListProjectUserResponse>

    The operation

    Implements

    IPlayerAuthenticationAdminApi
    IApiAccessor
    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)