dpzzkfb1244 2015-08-11 19:09
浏览 64
已采纳

ebay API:通过PHP中的卖家ID获取所有卖家商品返回500错误

I am trying to build a method to pull all active auctions by a seller by ID. It seems like it should be a simple thing to me. Getting items by keyword is easy, and I am using the following:

public function findItems($keyword = '', $limit = 2){

$url    = $this->url . '?';
$url .= 'operation-name=findItemsByKeywords';
$url .= '&service-version=' . $this->version;
$url .= '&keywords=' . urlencode($keyword);
$url .= '&paginationInput.entriesPerPage=' . $limit;

$url .= '&security-appname='. $this->app_id;
$url .= '&response-data-format=' . $this->format;

return json_decode(file_get_contents($url), true);

} // findItems()

This is part of a class building tutorial at: http://wern-ancheta.com/blog/2013/04/03/getting-started-with-ebay-finding-api/

I've tried substituting the operation name with GetSellerList and using the userID to get a specific seller's goods list, but every combination I've tried using all of the required arguments comes back with a 500 error (from eBay's servers).

http://developer.ebay.com/devzone/xml/docs/reference/ebay/GetSellerList.html

This seems like it should be a very basic and simple process.

  • 写回答

1条回答 默认 最新

  • duan19913 2015-08-13 09:09
    关注

    The tutorial used in the blog post is for the Finding api.

    The GetSellerList call is part of the Trading api. The trading api is much more complicated to use as it requires an XML or SOAP request.

    Once you get used to making SOAP requests it isn't that difficult to use. Here is an example of the my eBay SOAP client.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 暴力法无法解出,可能要使用dp和数学知识
  • ¥15 wpf通过绑定控件自身的值,来实现背景颜色的切换
  • ¥15 CDH6.3 运行hive -e hive -e "show databases;"报错:hive-env.sh:行24: hbase-common.jar: 权限不够
  • ¥15 SSRS制作的报表打开报错,无法正常显示网页
  • ¥15 乌班图ip地址配置及远程SSH
  • ¥15 怎么让点阵屏显示静态爱心,用keiluVision5写出让点阵屏显示静态爱心的代码,越快越好
  • ¥15 javaweb项目无法正常跳转
  • ¥15 VMBox虚拟机无法访问
  • ¥15 skd显示找不到头文件
  • ¥15 机器视觉中图片中长度与真实长度的关系