docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ProxyApi

    Represents a collection of functions to interact with the API endpoints

    Inheritance
    object
    ProxyApi
    Implements
    IProxyApi
    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.Proxy
    Assembly: Unity.Services.Apis.dll
    Syntax
    public class ProxyApi : IProxyApi, IApiAccessor

    Constructors

    ProxyApi(IApiClient)

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

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

    The client interface for synchronous API access.

    ProxyApi(IApiClient, IApiConfiguration)

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

    Declaration
    public ProxyApi(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

    GetBasePath()

    Gets the base path of the API client.

    Declaration
    public string GetBasePath()
    Returns
    Type Description
    string

    The base path

    GetToken(CancellationToken)

    Get Token (V4) Retrieve a token through a local proxy

    Declaration
    public ApiOperation<TokenResponse> GetToken(CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<TokenResponse>

    The operation

    Implements

    IProxyApi
    IApiAccessor
    In This Article
    Back to top
    Copyright © 2025 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)