Interface: RequestOptions
Defined in: rest/v2/oauth2/rest/options.ts:175
Extended by
Properties
| Property | Type | Description |
|---|---|---|
accessToken? | string | For authenticated requests, the token to use. Default undefined Throws if the request is authenticated but no token is given |
api? | string | The base url of the Patreon API Default 'https://patreon.com/api/oauth2/v2' |
auth? | boolean | Whether this request should include an authorization header Default true |
authPrefix? | string | The authentication prefix for this request to use Default 'Bearer' |
body? | string | The stringified request body Default undefined |
fetch? | RestFetcher | The fetch function to use for making this request Default globalThis.fetch |
headers? | Record<string, string> | Headers to add on this request Default {} |
query? | string | The final query string Default '' |
route? | string | Replace the api base, path and query with a different route Default undefined |
signal? | AbortSignal | The abort signal for this request Default undefined |
timeout? | number | The time in ms after the request will be aborted Default 15_000 |