1

我正在尝试使用curl私有应用程序 API,并已成功访问我的商店,但收到一条错误消息,要求curl在 PHP 中修改当前产品。下面是我使用的代码

(我将 xml 文件作为 input.xml 包含修改详细信息并使用产品 id 尝试了 sku)是否有任何地方可以一键修改超过 250 个产品?

//php
curl -v -X PUT -d @input.xml -H 'Content-Type: application/xml'(<-- this is line 2) 
'https://myapikey:mypassword@myshopdomain/admin/products/product_id.xml'

// and i got this error message 
"Parse error: syntax error, unexpected T_STRING in /home/content/s/o/n/song2660/html/curltest.php on line 2"
4

0 回答 0