oAuth
Last updated
Last updated
vendor/Oauth.js
Class containing methods to authenticate and make authenticated requests with a third party API
Parameters
Name | Type | Description | |
---|---|---|---|
Examples
Returns
Void
Parameters
Returns
Void
Init the access token
Returns
Void
Request method with the refresh token retry if fails.
Parameters
Returns
object
Make a GET request to an external Rest API
Parameters
Returns
object
Make a POST request to an external Rest API.
Parameters
Returns
object
Make a PUT request to an external Rest API.
Parameters
Returns
object
Make a PATCH request to an external Rest API.
Parameters
Returns
object
Make a DELETE request to an external Rest API.
Parameters
Returns
object
Name | Type | Description | |
---|---|---|---|
Name | Type | Description | |
---|---|---|---|
Name | Type | Description | |
---|---|---|---|
Name | Type | Description | |
---|---|---|---|
Name | Type | Description | |
---|---|---|---|
Name | Type | Description | |
---|---|---|---|
Name | Type | Description | |
---|---|---|---|
grantType
string
Oauth grant type. One of: refresh_token
, password
, or custom
.
tokenKey
string
The key of the secret containing the oAuth token information.
grantType
string
tokenKey
string
hasHeaders
boolean
method
string
Request method.
path
string
Request path.
data
object
options
Types.RequestOptions
Additional configuration for Oauth calls
path
string
Request path
options
Types.RequestOptions
Additional configuration for Oauth calls
Optional
path
string
Request path
data
object
Request payload
options
Types.RequestOptions
Additional configuration for Oauth calls
Optional
path
string
Request path
data
object
Request payload
options
Types.RequestOptions
Additional configuration for Oauth calls
Optional
path
string
Request path
data
object
Request payload
options
Types.RequestOptions
Additional configuration for Oauth calls
Optional
path
string
Request path
options
Types.RequestOptions
Additional configuration for Oauth calls
Optional