Forum Discussion
Yeah, looking at their example Python, it looks like you need to post to "/v1/authorization/token" with your username, password, and "grant_type", which should be set to "password". It looks like it returns an access token and a refresh token. So, you'll need to grab the access_token it returns because you'll need it in subsequent calls.
After that, it looks like you can do a GET with the headers "Accept":"application/json" and "Authorization":"Bearer THE_BEARER_TOKEN_FROM_THE_POST".
Looks like it's possible they may send back an error even with a 200. If they do, it appears to mean that you need to do another post to /v1/authorization/token using the refresh token, which will give you a new access_token along with a new refresh_token. It's likely this won't ever happen because you will likely be doing a single GET right after obtaining the original access_token, i.e. before it expires.
Related Content
- 8 months ago
- 17 hours ago
- 2 years agoAnonymous
- 10 months ago