Interface: Oauth2FetchOptions
Defined in: rest/v2/clients/baseMethods.ts:39
Options for the raw Oauth2 request methods
Extends
BaseFetchOptions
Properties
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
BaseFetchOptions.api
auth?
optionalauth:boolean
Defined in: rest/v2/oauth2/rest/options.ts:174
Whether this request should include an authorization header
Default
trueInherited from
BaseFetchOptions.auth
authPrefix?
optionalauthPrefix:string
Defined in: rest/v2/oauth2/rest/options.ts:180
The authentication prefix for this request to use
Default
'Bearer'Inherited from
BaseFetchOptions.authPrefix
body?
optionalbody:string
Defined in: rest/v2/oauth2/rest/options.ts:193
The stringified request body
Default
undefinedInherited from
BaseFetchOptions.body
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
BaseFetchOptions.fetch
headers?
optionalheaders:Record<string,string>
Defined in: rest/v2/oauth2/rest/options.ts:199
Headers to add on this request
Default
{}Inherited from
BaseFetchOptions.headers
method?
optionalmethod:"DELETE"|"GET"|"PATCH"|"POST"|RequestMethod
Defined in: rest/v2/clients/baseMethods.ts:51
Overwrite the method of the request. If you are using a function to write, update or delete resources this will be already set.
Default
'GET'signal?
optionalsignal:AbortSignal
Defined in: rest/v2/oauth2/rest/options.ts:217
The abort signal for this request
Default
undefinedInherited from
BaseFetchOptions.signal
timeout?
optionaltimeout:number
Defined in: rest/v2/oauth2/rest/options.ts:205
The time in ms after the request will be aborted
Default
15_000Inherited from
BaseFetchOptions.timeout
token?
optionaltoken:string|Oauth2CreatorToken|Oauth2StoredToken
Defined in: rest/v2/clients/baseMethods.ts:44
Overwrite the client token with a new (access) token
Default
undefined