eBay API - 如何获取卖家的所有评论?

eBay API - How to get all comments on a seller?

各位开发者大家好,

我正在尝试使用 eBay API 获取对特定卖家的所有评论。 我通过使用购物 API 的 GetUserProfile API 调用和 FeedbackDetails includeSelector 成功获得了评论。我的问题是这样我只能得到 5 个最近的评论。 我需要所有评论,或者至少以某种方式指定一个数字,例如 200 条最近的评论。

这是我的 JavaScript 代码:

function _cb_getComments(root) {
   . . .
}  // End _cb_getComments() function

// Construct the request
var url = "http://open.api.ebay.com/shopping?";
url += "callname=GetUserProfile&";
url += "responseencoding=JSON&";
url += "appid=" + appID + "&";
url += "siteid=0&";
url += "version=525&";
url += "UserID=" + sellerName + "&";
url += "IncludeSelector=FeedbackDetails&";
url += "callback=true&";
url += "callbackname=_cb_getComments";

// Submit the request
s=document.createElement('script');
s.src = url;
document.body.appendChild(s);

appIDsellerName是.js文件开头设置的变量。这行得通,returns 只有 5 条评论。

有什么建议吗?

您需要使用交易 API 调用 GetFeedback

如果您之前没有使用过 eBay Trading API,您将需要更多地了解如何拨打电话,因为您无法使用 GET/REST,并且相反,需要 POST 您的请求以及用户令牌(例如您自己的令牌)。