Created
January 5, 2022 17:34
-
-
Save dillonstreator/279ac40ce1a365b395559bec8575dc7b to your computer and use it in GitHub Desktop.
athenahealth get bearer token from ATHENA_CLIENT_ID and ATHENA_SECRET zsh command
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
athena-bearer() { | |
curl -H "Authorization: Basic $(echo -n "${ATHENA_CLIENT_ID}:${ATHENA_SECRET}" | base64)" -H 'Content-Type: application/x-www-form-urlencoded' -d "grant_type=client_credentials&scope=athena/service/Athenanet.MDP.*" "${ATHENA_BASE_URL}/oauth2/v1/token" | |
} |
Author
dillonstreator
commented
Jan 5, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment