Last active
April 19, 2016 20:02
-
-
Save timhodson/db7f899bbdea2ffb78c8996437e3e04b to your computer and use it in GitHub Desktop.
Use the persona-token script in a sub shell to get the token for your request.
This file contains 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
# Here we assume that $TALIS_API_CLIENT_ID and $TALIS_API_CLIENT_SECRET are set in your environment | |
# A sub shell runs the persona-token script and will return the token we need in the Authorization Bearer header. | |
curl -v -X GET -H "Authorization: Bearer $(persona-token $TALIS_API_CLIENT_ID $TALIS_API_CLIENT_SECRET)"\ | |
-H "Cache-Control: no-cache"\ | |
"https://rl.talis.com/2/$TENANT_SHORT_CODE/lists/$LIST_GUID" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment