The HTTP REST API client for foxogram.js

Constructors

Properties

client: AxiosInstance

Internal client sending requests.

options: RESTOptions

Configuration options for this instance.

Methods

  • Sends a DELETE request to the API.

    Type Parameters

    • B = unknown
    • R = unknown
    • Q = unknown

    Parameters

    Returns Promise<R>

  • Sends a GET request to the API.

    Type Parameters

    • R = unknown
    • Q = unknown

    Parameters

    Returns Promise<R>

  • Sends a PATCH request to the API.

    Type Parameters

    • B = unknown
    • R = unknown
    • Q = unknown

    Parameters

    Returns Promise<R>

  • Sends a POST request to the API.

    Type Parameters

    • B = unknown
    • R = unknown
    • Q = unknown

    Parameters

    Returns Promise<R>

  • Sends a PUT request to the API.

    Type Parameters

    • B = unknown
    • R = unknown
    • Q = unknown

    Parameters

    Returns Promise<R>

  • Sets the authorization token that should be used for requests.

    Parameters

    • token: null | string

    Returns null | string