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