Interface: InternalRequestOptions
Defined in: rest/v2/oauth2/rest/options.ts:220
Extends
Properties
accessToken?
optionalaccessToken:string
Defined in: rest/v2/oauth2/rest/options.ts:187
For authenticated requests, the token to use.
Default
undefinedThrows
if the request is authenticated but no token is given
Inherited from
api?
optionalapi:string
Defined in: rest/v2/oauth2/rest/options.ts:156
The base url of the Patreon API
Default
'https://patreon.com/api/oauth2/v2'Inherited from
auth?
optionalauth:boolean
Defined in: rest/v2/oauth2/rest/options.ts:174
Whether this request should include an authorization header
Default
trueInherited from
authPrefix?
optionalauthPrefix:string
Defined in: rest/v2/oauth2/rest/options.ts:180
The authentication prefix for this request to use
Default
'Bearer'Inherited from
body?
optionalbody:string
Defined in: rest/v2/oauth2/rest/options.ts:193
The stringified request body
Default
undefinedInherited from
fetch?
optionalfetch:RestFetcher
Defined in: rest/v2/oauth2/rest/options.ts:211
The fetch function to use for making this request
Default
globalThis.fetchInherited from
headers?
optionalheaders:Record<string,string>
Defined in: rest/v2/oauth2/rest/options.ts:199
Headers to add on this request
Default
{}Inherited from
method?
optionalmethod:"DELETE"|"GET"|"PATCH"|"POST"|RequestMethod
Defined in: rest/v2/oauth2/rest/options.ts:222
path
path:
string
Defined in: rest/v2/oauth2/rest/options.ts:221
query?
optionalquery:string
Defined in: rest/v2/oauth2/rest/options.ts:168
The final query string
Default
''Inherited from
route?
optionalroute:string
Defined in: rest/v2/oauth2/rest/options.ts:162
Replace the api base, path and query with a different route
Default
undefinedInherited from
signal?
optionalsignal:AbortSignal
Defined in: rest/v2/oauth2/rest/options.ts:217
The abort signal for this request
Default
undefinedInherited from
timeout?
optionaltimeout:number
Defined in: rest/v2/oauth2/rest/options.ts:205
The time in ms after the request will be aborted
Default
15_000