docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IApiClient

    Contract for Asynchronous RESTful API interactions.

    This interface allows consumers to provide a custom API accessor client.

    Namespace: Unity.Services.Apis.Shared
    Assembly: solution.dll
    Syntax
    public interface IApiClient

    Methods

    Delete(string, ApiRequestOptions, IApiConfiguration, CancellationToken)

    Executes a call to path using the DELETE http verb.

    Declaration
    ApiOperation Delete(string path, ApiRequestOptions options, IApiConfiguration configuration, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string path

    The relative path to invoke.

    ApiRequestOptions options

    The request parameters to pass along to the client.

    IApiConfiguration configuration

    Per-request configurable settings.

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation

    The operation

    Delete<T>(string, ApiRequestOptions, IApiConfiguration, CancellationToken)

    Executes a call to path using the DELETE http verb.

    Declaration
    ApiOperation<T> Delete<T>(string path, ApiRequestOptions options, IApiConfiguration configuration, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string path

    The relative path to invoke.

    ApiRequestOptions options

    The request parameters to pass along to the client.

    IApiConfiguration configuration

    Per-request configurable settings.

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<T>

    The operation

    Type Parameters
    Name Description
    T

    The return type.

    Get(string, ApiRequestOptions, IApiConfiguration, CancellationToken)

    Executes a call to path using the GET http verb.

    Declaration
    ApiOperation Get(string path, ApiRequestOptions options, IApiConfiguration configuration, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string path

    The relative path to invoke.

    ApiRequestOptions options

    The request parameters to pass along to the client.

    IApiConfiguration configuration

    Per-request configurable settings.

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation

    The operation

    Get<T>(string, ApiRequestOptions, IApiConfiguration, CancellationToken)

    Executes a call to path using the GET http verb.

    Declaration
    ApiOperation<T> Get<T>(string path, ApiRequestOptions options, IApiConfiguration configuration, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string path

    The relative path to invoke.

    ApiRequestOptions options

    The request parameters to pass along to the client.

    IApiConfiguration configuration

    Per-request configurable settings.

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<T>

    The operation

    Type Parameters
    Name Description
    T

    The return type.

    Head(string, ApiRequestOptions, IApiConfiguration, CancellationToken)

    Executes a call to path using the HEAD http verb.

    Declaration
    ApiOperation Head(string path, ApiRequestOptions options, IApiConfiguration configuration, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string path

    The relative path to invoke.

    ApiRequestOptions options

    The request parameters to pass along to the client.

    IApiConfiguration configuration

    Per-request configurable settings.

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation

    The operation

    Head<T>(string, ApiRequestOptions, IApiConfiguration, CancellationToken)

    Executes a call to path using the HEAD http verb.

    Declaration
    ApiOperation<T> Head<T>(string path, ApiRequestOptions options, IApiConfiguration configuration, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string path

    The relative path to invoke.

    ApiRequestOptions options

    The request parameters to pass along to the client.

    IApiConfiguration configuration

    Per-request configurable settings.

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<T>

    The operation

    Type Parameters
    Name Description
    T

    The return type.

    Options(string, ApiRequestOptions, IApiConfiguration, CancellationToken)

    Executes a call to path using the OPTIONS http verb.

    Declaration
    ApiOperation Options(string path, ApiRequestOptions options, IApiConfiguration configuration, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string path

    The relative path to invoke.

    ApiRequestOptions options

    The request parameters to pass along to the client.

    IApiConfiguration configuration

    Per-request configurable settings.

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation

    The operation

    Options<T>(string, ApiRequestOptions, IApiConfiguration, CancellationToken)

    Executes a call to path using the OPTIONS http verb.

    Declaration
    ApiOperation<T> Options<T>(string path, ApiRequestOptions options, IApiConfiguration configuration, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string path

    The relative path to invoke.

    ApiRequestOptions options

    The request parameters to pass along to the client.

    IApiConfiguration configuration

    Per-request configurable settings.

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<T>

    The operation

    Type Parameters
    Name Description
    T

    The return type.

    Patch(string, ApiRequestOptions, IApiConfiguration, CancellationToken)

    Executes a call to path using the PATCH http verb.

    Declaration
    ApiOperation Patch(string path, ApiRequestOptions options, IApiConfiguration configuration, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string path

    The relative path to invoke.

    ApiRequestOptions options

    The request parameters to pass along to the client.

    IApiConfiguration configuration

    Per-request configurable settings.

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation

    The operation

    Patch<T>(string, ApiRequestOptions, IApiConfiguration, CancellationToken)

    Executes a call to path using the PATCH http verb.

    Declaration
    ApiOperation<T> Patch<T>(string path, ApiRequestOptions options, IApiConfiguration configuration, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string path

    The relative path to invoke.

    ApiRequestOptions options

    The request parameters to pass along to the client.

    IApiConfiguration configuration

    Per-request configurable settings.

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<T>

    The operation

    Type Parameters
    Name Description
    T

    The return type.

    Post(string, ApiRequestOptions, IApiConfiguration, CancellationToken)

    Executes a call to path using the POST http verb.

    Declaration
    ApiOperation Post(string path, ApiRequestOptions options, IApiConfiguration configuration, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string path

    The relative path to invoke.

    ApiRequestOptions options

    The request parameters to pass along to the client.

    IApiConfiguration configuration

    Per-request configurable settings.

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation

    The operation

    Post<T>(string, ApiRequestOptions, IApiConfiguration, CancellationToken)

    Executes a call to path using the POST http verb.

    Declaration
    ApiOperation<T> Post<T>(string path, ApiRequestOptions options, IApiConfiguration configuration, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string path

    The relative path to invoke.

    ApiRequestOptions options

    The request parameters to pass along to the client.

    IApiConfiguration configuration

    Per-request configurable settings.

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<T>

    The operation

    Type Parameters
    Name Description
    T

    The return type.

    Put(string, ApiRequestOptions, IApiConfiguration, CancellationToken)

    Executes a call to path using the PUT http verb.

    Declaration
    ApiOperation Put(string path, ApiRequestOptions options, IApiConfiguration configuration, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string path

    The relative path to invoke.

    ApiRequestOptions options

    The request parameters to pass along to the client.

    IApiConfiguration configuration

    Per-request configurable settings.

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation

    The operation

    Put<T>(string, ApiRequestOptions, IApiConfiguration, CancellationToken)

    Executes a call to path using the PUT http verb.

    Declaration
    ApiOperation<T> Put<T>(string path, ApiRequestOptions options, IApiConfiguration configuration, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string path

    The relative path to invoke.

    ApiRequestOptions options

    The request parameters to pass along to the client.

    IApiConfiguration configuration

    Per-request configurable settings.

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<T>

    The operation

    Type Parameters
    Name Description
    T

    The return type.

    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)