OAuth APIs
The OAuth APIs can be used to gain authorization and access token in order to use Rover Connect. These APIs act as a dependency to all the Rover Connect APIs.
A step-by-step instruction for gaining authorization for Rover Connect can be found here.
Available APIs:
All OAuth APIs are prefixed with the following URL:
https://auth.stayntouch/oauth/
Token (token)
Description
This method is used to receive a token. Currently, only allow client_credentials grant_type
Request
The following values should be passed in the POST body:
client_id - issued when you created your app (required)
client_secret - issued when you created your app (required)
grant_type - client_credentials (required)
Response
JSON Response
{ "access_token": "79465ced575bbde8e481fa507ee831022fb7f6671aee2723ac7d5e1c48c4816a", "token_type": "bearer", "expires_in": 2591999, "created_at": 1503673005 }
Media type: application/json
Type: object
- access_token: (string)
- Use this access token to access the Rover Connect APIs
- token_type: (string)
- This is the type of token. This will always be "bearer".
- expires_in: (integer)
- The number of seconds until token expiration. This will be 30 days.
- created_at: (integer)
- Time the token was created