Created
May 5, 2014 11:06
-
-
Save jurikern/a5a7e51add1135a7ba00 to your computer and use it in GitHub Desktop.
chee_request_example
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 -X POST -H "Content-Type: application/json" -d \ | |
'{"deals":[{"id":"1023410623", "quantity":"3"}, {"id":"1023410633", "choices":"1023413223"}], \ | |
"delivery": "smartpost", "delivery_info": { "smartpost": {"deliveryLocationID": "133"}}, \ | |
"user": {"email": "[email protected]", "username": "Juri Semjonov", "phone": "55687059"}, \ | |
"purchase": {}}' \ | |
http://localhost:3000/api/v1/api_key/api_secret/purchases | |
=== | |
{"success":true,"message":"Purchase successfully saved","url":"/en/cart/completed?hash=52b0acfb7bbd10c44f575f0db121fdd2&id=150995149","errors":[]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment