沃尔玛DVS API不归还产品

时间:2017-12-04 14:30:59

标签: php api curl

我一直在为市场开发沃尔玛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
        )

1 个答案:

答案 0 :(得分:0)

我联系了沃尔玛的支持,显然V3 / AP的项目还没有完成。 他们的回答是:

  

感谢您的邮件,不幸的是GET Item API目前   无法使用因此您将收到Content Not Found响应。

     

我们将尽快使用更新的API详细信息更新开发人员门户网站

相关问题