A client for an API-X server.

This object serves as a vanilla client that to reach API-X-based APIs.

Making API-X Requests

  • Creates a new DELETE request object that can be used to reach an API-X-based API.

    Parameters

    • url: URL

      The URL of the API-X endpoint.

    • Optionaldata: ApiXJsonObject

      The request JSON Body, if any.

    Returns ApiXRequest

    An ApiXRequest object that can be used to make a request.

  • Creates a new GET request object that can be used to reach an API-X-based API.

    Parameters

    • url: URL

      The URL of the API-X endpoint.

    Returns ApiXRequest

    An ApiXRequest object that can be used to make a request.

  • Creates a new PATCH request object that can be used to reach an API-X-based API.

    Parameters

    • url: URL

      The URL of the API-X endpoint.

    • Optionaldata: ApiXJsonObject

      The request JSON Body, if any.

    Returns ApiXRequest

    An ApiXRequest object that can be used to make a request.

  • Creates a new POST request object that can be used to reach an API-X-based API.

    Parameters

    • url: URL

      The URL of the API-X endpoint.

    • Optionaldata: ApiXJsonObject

      The request JSON Body, if any.

    Returns ApiXRequest

    An ApiXRequest object that can be used to make a request.

  • Creates a new PUT request object that can be used to reach an API-X-based API.

    Parameters

    • url: URL

      The URL of the API-X endpoint.

    • Optionaldata: ApiXJsonObject

      The request JSON Body, if any.

    Returns ApiXRequest

    An ApiXRequest object that can be used to make a request.

  • Creates a new request object that can be used to reach an API-X-based API.

    Parameters

    • url: URL

      The URL of the API-X endpoint.

    • httpMethod: ApiXHttpMethod = 'GET'

      The HTTP Method to use.

    • Optionaldata: ApiXJsonObject

      The request JSON Body, if any.

    Returns ApiXRequest

    An ApiXRequest object that can be used to make a request.

  • Makes a DELETE request to an API-X-based API.

    Parameters

    • url: URL

      The URL of the API-X endpoint.

    • Optionaldata: ApiXJsonObject

      The request JSON Body, if any.

    Returns Promise<ApiXResponse>

    An ApiXRequest object that can be used to make a request.

    May throw errors that need to be caught.

  • Makes a GET request to an API-X-based API.

    Parameters

    • url: URL

      The URL of the API-X endpoint.

    Returns Promise<ApiXResponse>

    An ApiXRequest object that can be used to make a request.

    May throw errors that need to be caught.

  • Makes a PATCH request to an API-X-based API.

    Parameters

    • url: URL

      The URL of the API-X endpoint.

    • Optionaldata: ApiXJsonObject

      The request JSON Body, if any.

    Returns Promise<ApiXResponse>

    An ApiXRequest object that can be used to make a request.

    May throw errors that need to be caught.

  • Makes a POST request to an API-X-based API.

    Parameters

    • url: URL

      The URL of the API-X endpoint.

    • Optionaldata: ApiXJsonObject

      The request JSON Body, if any.

    Returns Promise<ApiXResponse>

    An ApiXRequest object that can be used to make a request.

    May throw errors that need to be caught.

  • Makes a PUT request to an API-X-based API.

    Parameters

    • url: URL

      The URL of the API-X endpoint.

    • Optionaldata: ApiXJsonObject

      The request JSON Body, if any.

    Returns Promise<ApiXResponse>

    An ApiXRequest object that can be used to make a request.

    May throw errors that need to be caught.

  • Makes a request to an API-X-based API.

    Parameters

    • url: URL

      The URL of the API-X endpoint.

    • httpMethod: ApiXHttpMethod = 'GET'

      The HTTP Method to use.

    • Optionaldata: ApiXJsonObject

      The request JSON Body, if any.

    Returns Promise<ApiXResponse>

    An ApiXRequest object that can be used to make a request.

    May throw errors that need to be caught.

Other

  • Creates a new instance of an API-X Client.

    Parameters

    • apiKey: string

      The application API Key.

    • appKey: string

      The application signing key.

    Returns ApiXClient