Interface: InternalRequestOptions
Defined in: rest/v2/oauth2/rest/options.ts:220
Extends
Properties
accessToken?
optional
accessToken:string
Defined in: rest/v2/oauth2/rest/options.ts:172
For authenticated requests, the token to use.
Default
undefined
Throws
if the request is authenticated but no token is given
Inherited from
api?
optional
api:string
Defined in: rest/v2/oauth2/rest/options.ts:141
The base url of the Patreon API
Default
'https://patreon.com/api/oauth2/v2'
Inherited from
auth?
optional
auth:boolean
Defined in: rest/v2/oauth2/rest/options.ts:159
Whether this request should include an authorization header
Default
true
Inherited from
authPrefix?
optional
authPrefix:string
Defined in: rest/v2/oauth2/rest/options.ts:165
The authentication prefix for this request to use
Default
'Bearer'
Inherited from
body?
optional
body:string
Defined in: rest/v2/oauth2/rest/options.ts:178
The stringified request body
Default
undefined
Inherited from
fetch?
optional
fetch:RestFetcher
Defined in: rest/v2/oauth2/rest/options.ts:196
The fetch function to use for making this request
Default
globalThis.fetch
Inherited from
headers?
optional
headers:Record
<string
,string
>
Defined in: rest/v2/oauth2/rest/options.ts:184
Headers to add on this request
Default
{}
Inherited from
method?
optional
method:"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?
optional
query:string
Defined in: rest/v2/oauth2/rest/options.ts:153
The final query string
Default
''
Inherited from
route?
optional
route:string
Defined in: rest/v2/oauth2/rest/options.ts:147
Replace the api base, path and query with a different route
Default
undefined
Inherited from
signal?
optional
signal:AbortSignal
Defined in: rest/v2/oauth2/rest/options.ts:202
The abort signal for this request
Default
undefined
Inherited from
timeout?
optional
timeout:number
Defined in: rest/v2/oauth2/rest/options.ts:190
The time in ms after the request will be aborted
Default
15_000