Last active
July 28, 2021 13:28
-
-
Save ctkdev/cf3f3e36b8501a1a821f90256df27249 to your computer and use it in GitHub Desktop.
Revisions
-
ctkdev revised this gist
Jul 28, 2021 . 1 changed file with 10 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -7,8 +7,6 @@ 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 ## @@ -30,4 +28,13 @@ grant_type=client_credentials&scope=athena/service/Athenanet.MDP.* ## "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.* -
ctkdev renamed this gist
Jul 28, 2021 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
ctkdev created this gist
Jul 28, 2021 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,33 @@ ### 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