Refresing the Access Token

When Access Token expired after the time indicated by the parameter expires_in, it will be considered invalid and will be useless for request operations in topoos API.

To continue using the platform, the app must regenerate the access_token and discard the old one.

If the OAuth flow that your app used provided a Refresh Token and your app stored it, you can use it for this purpose.

To refresh th Access Token and get a new one, we must pass through POST method the following parameters to Access Token Endpoint:

POST oauth/accesstoken HTTP/1.1
Content-Type: application/x-www-form-urlencoded

&client_secret= YOUR_CLIENT_SECRET

If both the credentials as refresh_token with valid, then you will receive a new access_token response in JSON format:

    "Access_token": "72AB1F0F-128B-4701-9902-86A8D8727C48",
    "expires_in": 600,
    "refresh_token": "A2D5985D-5A05-4283-9DF4-ACAE17978603"

If there was any problem in the process, an error will be provided by the service using the same method.