Hi,
why does this curl not work?
curl -X POST https:...myshop.com/products.json --data '{"product":{"title":"BurtonCustomFreestyle151","body_html":"Goodsnowboard","vendor":"Burton","product_type":"Snowboard","images":[{"src":"http://example.com/rails_logo.gif"}]}}'
with postman it works?
Thanks
King regards
R
I have curl for Windows and the statement below worked just fine. Of course redacted the API creds in the URL.
curl -X POST "https://{api_key}:{api_secret}@diamond-cellar.myshopify.com/admin/products.json" -H "Content-Type: application/json" -d "{\"product\":{\"title\":\"BurtonCustomFreestyle151\",\"body_html\":\"Goodsnowboard\",\"vendor\":\"Burton\",\"product_type\":\"Snowboard\",\"images\":[{\"src\":\"https://twitter.com/rails/status/689480911432249345/photo/1\"}]}}"
User | Count |
---|---|
12 | |
12 | |
10 | |
7 | |
6 |