Interface DonationAlertsApiCallOptions

Options for a single API call.

Hierarchy

  • DonationAlertsApiCallOptions

Properties

auth?: boolean

Whether OAuth credentials should be generated and sent with the request.

Default Value

true

formBody?: object

The form URL encoded body to send with the API call.

jsonBody?: object

The JSON body to send with the API call.

method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE"

The HTTP method to use.

Default Value

GET

query?: Record<string, undefined | string | number | string[] | number[]>

The query parameters to send with the API call.

scope?: string

The scope that the request needs.

The endpoint to call. Can be api, auth, or custom.

Remarks

  • If this is set to auth, the base URL resolves to https://www.donationalerts.com/oauth with joined endpoint specified in url.

  • If this is set to api the base URL resolves to https://www.donationalerts.com/api/v1 with joined endpoint, specified in url.

  • If this is set to custom, the URL exactly resolves to value, specified in url. In this case, the URL in url must be full and valid.

Default Value

api

url: string

The URL to request.

Remarks

If type set to api or auth, this property must contain only API endpoint without the base URL.

If type set to custom, this parameter must be a full valid URL.

Generated using TypeDoc