Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ctkdev/cf3f3e36b8501a1a821f90256df27249 to your computer and use it in GitHub Desktop.

Select an option

Save ctkdev/cf3f3e36b8501a1a821f90256df27249 to your computer and use it in GitHub Desktop.

Revisions

  1. ctkdev revised this gist Jul 28, 2021. 1 changed file with 10 additions and 3 deletions.
    Original 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
    ##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.*
  2. ctkdev renamed this gist Jul 28, 2021. 1 changed file with 0 additions and 0 deletions.
  3. ctkdev created this gist Jul 28, 2021.
    Original 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