【问题标题】:Ebay API Filter not workingEbay API 过滤器不工作
【发布时间】:2015-02-23 15:56:32
【问题描述】:

我正在尝试通过在我的 android 手机上使用 eBay api 来获取两家公司列出的所有产品。我通过使用项目过滤器来做到这一点,但是当我运行它时,它会返回来自所有公司的产品,而不仅仅是来自我所说的公司。为什么是这样?下面是我发送的 http(MyAppIid 是我的实际 ID,Seller1Name 和 Seller2Name 是我选择的公司)

http://open.api.ebay.com/finding?callname=findItemsAdvanced&responseencoding=JSON&appid=MyAppID&siteid=3&version=713&QueryKeywords=android&GLOBAL-ID=EBAY-UK%203g&itemFilter(0).name=Seller&itemFilter(0).value(0)=Seller1Namet&itemFilter(0).value(1)=Seller2Name

【问题讨论】:

标签: android web-services ebay-api


【解决方案1】:

您似乎尝试混合使用 Shopping 和 Finding API。有趣的是,它完全没有 API 错误。在任何情况下,您都应该使用eBay Finding API 来实现您的目的。以下是 URL 的示例:

http://svcs.ebay.com/services/search/FindingService/v1?OPERATION-NAME=findItemsAdvanced&SERVICE-VERSION=1.13.0&SECURITY-APPNAME=YOUR_APP_ID_HERE&GLOBAL-ID=EBAY-GB&RESPONSE-DATA-FORMAT=JSON&callback=_cb_findItemsAdvanced&REST-PAYLOAD&itemFilter(0).name=Seller&itemFilter(0).value(0)=doria-store&itemFilter(0).value(1)=universalgadgets01&keywords=android&outputSelector(0)=SellerInfo

我在Live API Playground 中创建了一个示例。您可以根据需要调整调用并执行它以直接在响应区域中查看响应。完成后,单击“Retrieve JS code”,您将获得现成的 JS 代码,包括调用的 URL 及其配置的所有参数。

【讨论】:

  • 谢谢,这很方便。我确实注意到检索 JS 代码,附属数组继续使用 itemFilter 数组计数
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2012-08-01
  • 2023-03-21
  • 2023-03-04
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多