eBay API - 按商店/自定义类别过滤商品
我的场景:我有一位客户拥有一家具有自定义类别的 eBay 商店。他们想在他们的网站上列出他们待售的商品。他们希望此列表可以按自定义类别进行过滤。
我已经搜索了几天了,但我仍然有点不确定继续进行的最佳方法。
据我所知,获取商店中定义的类别列表的唯一方法是通过交易 API 中的 GetStore 调用。这似乎是受支持的,尽管我需要从客户的 eBay 帐户获取用户令牌。我假设这有效。
但是,我没有看到任何根据自定义类别过滤项目的方法。我浏览了 Trading 和 Finding API 的文档,但我看到的只是预定义 eBay 类别的过滤器。
是否可以过滤自定义/商店类别?
My scenario: I have a client with an eBay store with custom categories. On their website, they would like to list the items they have for sale. They would like this list to be filterable by custom category.
I've been searching for a couple days now, and I'm still a bit unsure about the best way to proceed.
From what I can gather, the only way to get a list of categories defined in a store is through the GetStore call in the Trading API. This seems to be supported, though I need to get a user token from my client's eBay account. I will assume this works.
I do not, however, see any method of filtering items based on custom categories. I've looked through the documentation of both the Trading and Finding APIs, but all I see are filters on pre-defined eBay categories.
Is it possible to filter on custom/store categories?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我的任务是将卖家产品链接到自定义类别,我发现的唯一方法是从交易 API 中使用“GetStore”检索自定义类别列表,使用“findItemsAdvanced”调用表单Finding API 检索所有卖家商品,然后循环遍历所有商品检索项目并通过交易 API 调用“GetItem”获取详细信息。
之后,我可以在
$xml->Item->Storefront->StoreCategoryID
和$xml->Item->Storefront->StoreCategory2ID
下找到自定义类别>。I had a task to link seller products to custom categories and the only way I found is to retrieve a list of custom categories with "GetStore" from Trading API, retrieve all seller items with "findItemsAdvanced" call form Finding API, and loop through all retrieved items and get details with "GetItem" call from Trading API.
After that I could find custom categories under
$xml->Item->Storefront->StoreCategoryID
and$xml->Item->Storefront->StoreCategory2ID
.在深入研究并在 eBay 论坛上发帖后,我发现不,不可能通过 API 过滤自定义/商店定义的类别。过滤自定义/商店定义的类别的唯一方法是在 eBay 托管商店上。
这显然是 eBay 的一种方式,目的是让其网站上托管的商店比通过 API 可以做的任何事情都更加丰富。
After digging through and posting in the eBay forums, I found out that no, it is not possible to filter on custom/store defined categories via the API. The only way to filter on custom/store defined categories is on the eBay hosted store.
This is apparently eBay's way to make the store hosted on their site more feature rich than anything you can do via the API.
尽管这个问题很老了,但我相信给出一个更新的答案很有趣。如上所述,您无法使用自定义商店类别 (StoreCategoryID) 直接过滤商店销售的商品。解决此问题的最简单方法是使用粗粒度级别的 GetSellerList API,它允许您获取开始时间范围或结束时间范围内每个在售商品的 storeCategoryID。然后您可以自己过滤项目。以下是论坛答案的链接:https://ebay.custhelp.com/app /answers/detail/a_id/1178
Even though this question is old, I believe it interesting to give a more recent answer. As stated above, you cannot directly filter items sold by a store using custom store categories (StoreCategoryID). The easiest way to work around this is using the GetSellerList API using a coarse granularity level, which allows you to get the storeCategoryID of each Item on sale within a starting time range or an end time range. You can then filter the items yourself. Here's a link to a forum answer: https://ebay.custhelp.com/app/answers/detail/a_id/1178
是的,无法按自定义类别获取项目。
Yes no way to get items by Custom categories.
听起来像是 getCategoryInfo 或 GetCategories 可能会帮助您。
It sounds like either getCategoryInfo or GetCategories might help you.