【发布时间】:2017-12-04 14:30:58
【问题描述】:
我一直在使用面向市场的 walmart API,并且一切正常。现在在 DVS 上它对我不起作用。我正在获得身份验证和所有内容,但是当我尝试提取当前列表的列表时,它告诉我没有找到任何东西。对市场的相同调用工作正常。 有什么想法可能会丢失吗?
我在 PHP 中使用 curl:
$curl = curl_init();
curl_setopt($curl, CURLOPT_HTTPHEADER, $apiheaders);
curl_setopt($curl, CURLOPT_URL,$url);
curl_setopt($curl, CURLOPT_VERBOSE, 1);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 0);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "GET");
$response = curl_exec($curl);
获取网址:https://api-gateway.walmart.com/v3/items?limit=10
标题:
[0] => WM_SVC.NAME: Drop Ship Vendor Services
[1] => WM_QOS.CORRELATION_ID: xxxxxx
[2] => WM_SEC.TIMESTAMP:xxxxxx
[3] => WM_SEC.AUTH_SIGNATURE:xxxxxx
[4] => WM_CONSUMER.CHANNEL.TYPE: xxxxxxx
[5] => WM_CONSUMER.ID: xxxxxxxx
[6] => Accept: application/xml
我回来了:
[error] => SimpleXMLElement Object
(
[code] => CONTENT_NOT_FOUND.GMP_ITEM_QUERY_API
[description] => No item found
[info] => Requested content could not be found.
[severity] => INFO
[category] => APPLICATION
)
【问题讨论】: