Interface: RequestOptions
Defined in: rest/v2/oauth2/rest/options.ts:151
Extended by
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
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'auth?
optionalauth:boolean
Defined in: rest/v2/oauth2/rest/options.ts:174
Whether this request should include an authorization header
Default
trueauthPrefix?
optionalauthPrefix:string
Defined in: rest/v2/oauth2/rest/options.ts:180
The authentication prefix for this request to use
Default
'Bearer'body?
optionalbody:string
Defined in: rest/v2/oauth2/rest/options.ts:193
The stringified request body
Default
undefinedfetch?
optionalfetch:RestFetcher
Defined in: rest/v2/oauth2/rest/options.ts:211
The fetch function to use for making this request
Default
globalThis.fetchheaders?
optionalheaders:Record<string,string>
Defined in: rest/v2/oauth2/rest/options.ts:199
Headers to add on this request
Default
{}query?
optionalquery:string
Defined in: rest/v2/oauth2/rest/options.ts:168
The final query string
Default
''route?
optionalroute:string
Defined in: rest/v2/oauth2/rest/options.ts:162
Replace the api base, path and query with a different route
Default
undefinedsignal?
optionalsignal:AbortSignal
Defined in: rest/v2/oauth2/rest/options.ts:217
The abort signal for this request
Default
undefinedtimeout?
optionaltimeout:number
Defined in: rest/v2/oauth2/rest/options.ts:205
The time in ms after the request will be aborted
Default
15_000