API Client Instances are created by calling login

Methods

  • Get data from the API

    Parameters

    • path: string

      e.g. /v1/state/system/sites

    • query_params: undefined | Record<string, string>

      Query parameters to pass

    Returns Promise<object>

    The resulting object

    Common query parameters are:

    - `{keys: true}` - Only return the names
    - `{site: "the-site-name}` - Send the request to a specific site
    
  • Internal

    Parameters

    • http: AxiosInstance
    • token: string

    Returns Client