Search Results for

    Show / Hide Table of Contents

    Interface ISynchronousClient

    Contract for Synchronous RESTful API interactions.

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

    Namespace: mailslurp.Client
    Assembly: mailslurp.dll
    Syntax
    public interface ISynchronousClient

    Methods

    View Source

    Delete<T>(string, RequestOptions, IReadableConfiguration)

    Executes a blocking call to some path using the DELETE http verb.

    Declaration
    ApiResponse<T> Delete<T>(string path, RequestOptions options, IReadableConfiguration configuration = null)
    Parameters
    Type Name Description
    string path

    The relative path to invoke.

    RequestOptions options

    The request parameters to pass along to the client.

    IReadableConfiguration configuration

    Per-request configurable settings.

    Returns
    Type Description
    ApiResponse<T>

    The response data, decorated with ApiResponse<T>

    Type Parameters
    Name Description
    T

    The return type.

    View Source

    Get<T>(string, RequestOptions, IReadableConfiguration)

    Executes a blocking call to some path using the GET http verb.

    Declaration
    ApiResponse<T> Get<T>(string path, RequestOptions options, IReadableConfiguration configuration = null)
    Parameters
    Type Name Description
    string path

    The relative path to invoke.

    RequestOptions options

    The request parameters to pass along to the client.

    IReadableConfiguration configuration

    Per-request configurable settings.

    Returns
    Type Description
    ApiResponse<T>

    The response data, decorated with ApiResponse<T>

    Type Parameters
    Name Description
    T

    The return type.

    View Source

    Head<T>(string, RequestOptions, IReadableConfiguration)

    Executes a blocking call to some path using the HEAD http verb.

    Declaration
    ApiResponse<T> Head<T>(string path, RequestOptions options, IReadableConfiguration configuration = null)
    Parameters
    Type Name Description
    string path

    The relative path to invoke.

    RequestOptions options

    The request parameters to pass along to the client.

    IReadableConfiguration configuration

    Per-request configurable settings.

    Returns
    Type Description
    ApiResponse<T>

    The response data, decorated with ApiResponse<T>

    Type Parameters
    Name Description
    T

    The return type.

    View Source

    Options<T>(string, RequestOptions, IReadableConfiguration)

    Executes a blocking call to some path using the OPTIONS http verb.

    Declaration
    ApiResponse<T> Options<T>(string path, RequestOptions options, IReadableConfiguration configuration = null)
    Parameters
    Type Name Description
    string path

    The relative path to invoke.

    RequestOptions options

    The request parameters to pass along to the client.

    IReadableConfiguration configuration

    Per-request configurable settings.

    Returns
    Type Description
    ApiResponse<T>

    The response data, decorated with ApiResponse<T>

    Type Parameters
    Name Description
    T

    The return type.

    View Source

    Patch<T>(string, RequestOptions, IReadableConfiguration)

    Executes a blocking call to some path using the PATCH http verb.

    Declaration
    ApiResponse<T> Patch<T>(string path, RequestOptions options, IReadableConfiguration configuration = null)
    Parameters
    Type Name Description
    string path

    The relative path to invoke.

    RequestOptions options

    The request parameters to pass along to the client.

    IReadableConfiguration configuration

    Per-request configurable settings.

    Returns
    Type Description
    ApiResponse<T>

    The response data, decorated with ApiResponse<T>

    Type Parameters
    Name Description
    T

    The return type.

    View Source

    Post<T>(string, RequestOptions, IReadableConfiguration)

    Executes a blocking call to some path using the POST http verb.

    Declaration
    ApiResponse<T> Post<T>(string path, RequestOptions options, IReadableConfiguration configuration = null)
    Parameters
    Type Name Description
    string path

    The relative path to invoke.

    RequestOptions options

    The request parameters to pass along to the client.

    IReadableConfiguration configuration

    Per-request configurable settings.

    Returns
    Type Description
    ApiResponse<T>

    The response data, decorated with ApiResponse<T>

    Type Parameters
    Name Description
    T

    The return type.

    View Source

    Put<T>(string, RequestOptions, IReadableConfiguration)

    Executes a blocking call to some path using the PUT http verb.

    Declaration
    ApiResponse<T> Put<T>(string path, RequestOptions options, IReadableConfiguration configuration = null)
    Parameters
    Type Name Description
    string path

    The relative path to invoke.

    RequestOptions options

    The request parameters to pass along to the client.

    IReadableConfiguration configuration

    Per-request configurable settings.

    Returns
    Type Description
    ApiResponse<T>

    The response data, decorated with ApiResponse<T>

    Type Parameters
    Name Description
    T

    The return type.

    • View Source
    In This Article
    Back to top See MailSlurp website for more information.