The client to get the endpoint and other configuration from.
The request method.
The path to request.
Optional parameters.
Optionalbody?: DocumentTypeThe request body.
Optionalheaders?: Record<string, string>Headers to add to the request.
A promise resolving with the decoded response.
Perform a request to an arbitrary path on the configured endpoint.
If the
clienthas an access token configured, it will be sent in theAuthorizationheader.Note: This currently assumes the response body will always contain JSON.