是否有可能通过编程的API,以获得eBay的分类列表? [英] Is it possible to get the eBay Category List via an API programmatically?
问题描述
我的目标是让易趣的类别列表编程。
My goal is to get a list of eBay categories programmatically.
看起来,GetCategories方法只可从交易的API。如果我理解正确,有登录到交易API需要用户互动:
http://developer.ebay.com/DevZone/XML/docs /HowTo/Tokens/GettingTokens.html
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
有另一种方法来获得eBay的分类列表编程?
Is there another method to get the eBay categories list programmatically?
我使用Drupal 7的,所以PHP。
I'm using Drupal 7, so PHP.
推荐答案
您不需要令牌来获得的类别。所有你需要的是你的App-ID
You do not need a token to get the categories. All you need is your App-ID
下面与您的APP-ID的链接将返回XML类网站从上市:英国(SITEID 3 =)
设置类别ID = -1开始列表在根级别,你可以从任何类别开始,
只要使用IncludeSelector = ChildCategories让孩子
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
<一个href=\"http://open.api.ebay.com/Shopping?callname=GetCategoryInfo&appid=YOUR-APP-ID&siteid=3&CategoryID=-1&version=729&IncludeSelector=ChildCategories\">http://open.api.ebay.com/Shopping?callname=GetCategoryInfo&appid=YOUR-APP-ID&siteid=3&CategoryID=-1&version=729&IncludeSelector=ChildCategories
现在只使用了SimpleXML或任何解析。
Now just use SimpleXML or whatever to parse.
这篇关于是否有可能通过编程的API,以获得eBay的分类列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!