Is it possible to get the eBay Category List via an API programmatically?(是否可以通过 API 以编程方式获取 eBay 类别列表?)
问题描述
我的目标是以编程方式获取 eBay 类别列表.
GetCategories 方法似乎只能从 Trading API 获得.如果我理解正确,登录交易 API 需要用户交互:http://developer.ebay.com/DevZone/XML/docs/HowTo/Tokens/GettingTokens.html
是否有另一种以编程方式获取 eBay 类别列表的方法?
我使用的是 Drupal 7,所以是 PHP.
您不需要令牌来获取类别.您所需要的只是您的 App-ID
下面带有您的 APP-ID 的链接将返回来自站点的 XML 类别列表:UK (siteid=3)设置 CategoryID=-1 从根级别开始列表,您可以从任何类别开始,只需使用 IncludeSelector=ChildCategories 来获取孩子
http://open.api.ebay.com/Shopping?callname=GetCategoryInfo&appid=YOUR-APP-ID&siteid=3&CategoryID=-1&version=729&IncludeSelector=ChildCategoriesp>
现在只需使用 SimpleXML 或其他任何东西来解析.
My goal is to get a list of eBay categories programmatically.
It appears that the GetCategories method is only available from the Trading API. If I understand correctly, there is user interaction required to log into the Trading API: http://developer.ebay.com/DevZone/XML/docs/HowTo/Tokens/GettingTokens.html
Is there another method to get the eBay categories list programmatically?
I'm using Drupal 7, so PHP.
You do not need a token to get the categories. All you need is your App-ID
The link below with your APP-ID will return the XML category listing from site: UK (siteid=3) Setting CategoryID=-1 starts the list at the root level, you can start from any category, just use IncludeSelector=ChildCategories to get children
http://open.api.ebay.com/Shopping?callname=GetCategoryInfo&appid=YOUR-APP-ID&siteid=3&CategoryID=-1&version=729&IncludeSelector=ChildCategories
Now just use SimpleXML or whatever to parse.
这篇关于是否可以通过 API 以编程方式获取 eBay 类别列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:是否可以通过 API 以编程方式获取 eBay 类别列表?


基础教程推荐
- 在 PHP 中强制下载文件 - 在 Joomla 框架内 2022-01-01
- Libpuzzle 索引数百万张图片? 2022-01-01
- 如何在 PHP 中的请求之间持久化对象 2022-01-01
- mysqli_insert_id 是否有可能在高流量应用程序中返回 2021-01-01
- 在多维数组中查找最大值 2021-01-01
- 通过 PHP SoapClient 请求发送原始 XML 2021-01-01
- XAMPP 服务器不加载 CSS 文件 2022-01-01
- 超薄框架REST服务两次获得输出 2022-01-01
- 在 Woocommerce 中根据运输方式和付款方式添加费用 2021-01-01
- WooCommerce 中选定产品类别的自定义产品价格后缀 2021-01-01