Skip to content

Instantly share code, notes, and snippets.

@austo
Created December 6, 2013 05:29
Show Gist options
  • Select an option

  • Save austo/7819029 to your computer and use it in GitHub Desktop.

Select an option

Save austo/7819029 to your computer and use it in GitHub Desktop.
curl-xargs
$ 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