Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • RequestHandler

Index

Constructors

Properties

Methods

Constructors

Properties

client: Client

Methods

  • request(endpoint: string, method: Method, query?: unknown, body?: unknown): Promise<any>
  • Parameters

    • endpoint: string

      The endpoint to fetch

    • method: Method

      The HTTP method to use

    • query: unknown = {}

      Any query strings to add

    • body: unknown = {}

      The HTTP body to send

    Returns Promise<any>

    The response from the endpoint

Generated using TypeDoc