Created
December 6, 2013 05:29
-
-
Save austo/7819029 to your computer and use it in GitHub Desktop.
curl-xargs
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
| $ curl --user 'officialApiClient:C0FFEE' http://localhost:8181/token -d 'grant_type=client_credentials' | \ | |
| json access_token | xargs -I tok curl -H "Authorization: Bearer tok" http://localhost:8181/secret | json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment