ebay API: 在 PHP returns 500 错误中按卖家 ID 获取所有卖家商品

ebay API: Get all seller items by seller ID in PHP returns 500 error

我正在尝试构建一种方法来通过 ID 提取卖家的所有活跃拍卖。对我来说这似乎应该是一件简单的事情。通过关键字获取项目很容易,我正在使用以下内容:

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()

这是 class 建筑教程的一部分,网址为: http://wern-ancheta.com/blog/2013/04/03/getting-started-with-ebay-finding-api/

我尝试用 GetSellerList 替换操作名称并使用 userID 来获取特定卖家的商品列表,但是我尝试使用所有必需参数的每个组合都会返回出现 500 错误(来自 eBay 的服务器)。

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

这看起来应该是一个非常基本和简单的过程。

博客 post 中使用的教程适用于 Finding api。

GetSellerList 调用是 Trading api 的一部分。交易 api 使用起来要复杂得多,因为它需要 XML 或 SOAP 请求。

一旦您习惯了发出 SOAP 请求,使用起来就不难了。这是我的 eBay SOAP client.

的示例