-
-
Save ahoward/5de00805605f560b56f7 to your computer and use it in GitHub Desktop.
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
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}} | |
__ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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