Constructors

Properties

Methods

Constructors

Properties

anonymous: boolean = false
apiLocation: string
credentials: Promise<null | Credentials>

Methods

  • Call the API and return the results as deserialized JSON or Arrow.

    Parameters

    • endpoint: string

      The nomic API endpoint to call. If it doesn't begin with a slash, it will be added.

    • method: "GET" | "POST" = 'GET'

      POST or GET

    • payload: Payload = null

      The binary or JSON payload sent with the request.

    • headers: null | Record<string, string> = null

      Additional headers to send with the request

    • options: ApiCallOptions = ...

    Returns Promise<null | string | any[] | Record<string, any> | Uint8Array | Table<any>>