private app API using 'curl'

98 views
Skip to first unread message

Max

unread,
Sep 5, 2012, 8:04:08 AM9/5/12
to shopify-a...@googlegroups.com
i am trying to use  "curl" and private app API and have successed to access to my shop but got an error message to modify current product using 'curl' in php below is the code how i used plz correct me... thanks....(i put xml file as input.xml which included modify detail and tried sku using product i.d)
and also is there any where keep modifying more than 250 product on one click? 

//php
curl -v -X PUT -d @input.xml -H 'Content-Type: application/xml' 'https://apikey:password@myshopdomain/admin/products/producti.d.xml'
//
  

David Underwood

unread,
Sep 5, 2012, 4:23:36 PM9/5/12
to shopify-a...@googlegroups.com
Hey Max,

Technical questions like this should be posted on Stack Overflow and tagged as Shopify.

For the curl you pasted, the url looks malformed. Specifically, check the 'producti.d.xml' portion at the end and make sure that you're using the myshopify version of the url.

Additionally, it would help if you could post the contents of the xml file you're trying to upload as well as the error you're receiving. Thanks!

-David Underwood
 Developer Advocate, Shopify

  

--
 
 
 

Reply all
Reply to author
Forward
0 new messages