Skip to content

Instantly share code, notes, and snippets.

@ahoward
Created June 11, 2014 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahoward/5de00805605f560b56f7 to your computer and use it in GitHub Desktop.
Save ahoward/5de00805605f560b56f7 to your computer and use it in GitHub Desktop.
curl \
-i \
-u "$account:$token" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-X PUT \
-d@- \
"$api/v1/credit_cards/:id" <<-__
{"credit_card":{"month":7}}
__
@ahoward
Copy link
Author

ahoward commented Jun 11, 2014

with this technique, syntax, it's simple to arrange long curl commands with complex json data input in a way that's über simple to read, edit, and run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment