Exchanging an auth code for an Access Token
You can take the code received as the response to a permissions request and make a request to exchange for an Access Token and Refresh Token. To excxhange your authorizationcode for an access token, make a request to https://uni.staging.fluzapp.com/token/exchange with the following query params:
Additionally, set an Authorization header that is a base64 encoded string that is a combination of your client_id:app_secret. This is a Basic auth header, and so should follow the following format:
Authorization: Basic <base64 encoded CLIENT_ID:CLIENT_SECRET>
For example, if your client_id is abc123 and your client_secret from the OAuth configuration is def456, the base64 encoded value would be YWJjMTIzOmRlZjQ1Ng==.
The client_id and client_secret can be found in the Overview tab of the Configure OAuth App.
Here is an example cURL command:
Here is an example of a full response: