Last active
July 28, 2021 13:28
-
-
Save ctkdev/cf3f3e36b8501a1a821f90256df27249 to your computer and use it in GitHub Desktop.
Retrieves the Access Token in the same manner as the I/O Docs API Documentation https://developer.athenahealth.com/io-docs with Basic authorization
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### Basic authorization with variables. | |
| ### https://api.athenahealth.com/oauthpreview/token | |
| ### Retrieves the Access Token in the same manner as the I/O Docs API Documentation https://developer.athenahealth.com/io-docs | |
| POST https://api.athenahealth.com/oauthpreview/token | |
| Authorization: Basic YourAthenaClientID YourAthenaClientSecret | |
| Content-Type: application/x-www-form-urlencoded | |
| grant_type=client_credentials&scope=athena/service/Athenanet.MDP.* | |
| # This will trigger a POST and the following Response | |
| #POST https://api.athenahealth.com/oauthpreview/token | |
| ## | |
| ##HTTP/1.1 200 OK | |
| ##Cache-Control: no-store | |
| ##Content-Type: application/json;charset=utf-8 | |
| ##Date: Wed, 28 Jul 2021 13:11:21 GMT | |
| ##Pragma: no-cache | |
| ##Server: Mashery Proxy | |
| ##X-Mashery-Responder: prod-j-worker-us-east-1d-59.mashery.com | |
| ##Content-Length: 167 | |
| ##Connection: keep-alive | |
| ## | |
| ##{ | |
| ## "access_token": "999999999999999999999999292929", | |
| ## "token_type": "bearer", | |
| ## "expires_in": 3600, | |
| ## "refresh_token": "WWWWWWWJJJSJJSJJJJSJJJSJJ", | |
| ## "scope": "athena/service/Athenanet.MDP.*" | |
| ##} | |
| ## | |
| ##Response code: 200 (OK); Time: 502ms; Content length: 167 bytes | |
| ### Basic authorization with variables - using IDEA Environment File Params | |
| ### https://api.athenahealth.com/oauthpreview/token | |
| ### Retrieves the Access Token in the same manner as the I/O Docs API Documentation https://developer.athenahealth.com/io-docs | |
| POST https://api.athenahealth.com/oauthpreview/token | |
| Authorization: Basic {{athenaClientID}} {{athenaClientSecret}} | |
| Content-Type: application/x-www-form-urlencoded | |
| grant_type=client_credentials&scope=athena/service/Athenanet.MDP.* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment