Methods
# async inner getToken(env, query) → {Promise.<AccessToken>}
Get an oauth access token in xMatters
https://help.xmatters.com/xmapi/index.html#obtain-an-access-token-and-refresh-token
https://help.xmatters.com/xmapi/index.html#obtain-an-access-token-and-refresh-token
Parameters:
Name | Type | Description |
---|---|---|
env |
module:environments.xMattersEnvironment | The xmtoolbox representation of an xMatters instance. |
query |
Object | A json object representing the query string parameters for this request. |
AccessToken Object Requested
Promise.<AccessToken>
# async inner refreshToken(env, query) → {Promise.<AccessToken>}
Refresh the oauth token in xMatters
https://help.xmatters.com/xmapi/index.html#refresh-an-access-token
https://help.xmatters.com/xmapi/index.html#refresh-an-access-token
Parameters:
Name | Type | Description |
---|---|---|
env |
module:environments.xMattersEnvironment | The xmtoolbox representation of an xMatters instance. |
query |
Object | A json object representing the query string parameters for this request. |
AccessToken Object Requested
Promise.<AccessToken>