eBay的“获取库存物品" API不返回物品 [英] eBay 'Get Inventory Items' API NOT returning items
问题描述
我正在尝试在eBay API资源管理器上使用我的eBay用户身份验证令牌调用此API:
解决方案因此,事实证明eBay的Inventory API是相当新的.只有通过库存API创建的商品才能与库存API一起查询.完全浪费时间.
只需使用eBay的交易API:
http://developer.ebay.com/DevZone/xml/docs/Reference/ebay/index.html
列出项目:
http://developer.ebay.com/DevZone/xml/docs/Reference/ebay/AddItem.html http://developer.ebay.com/DevZone/xml/docs/Reference/ebay/AddFixedPriceItem.html
修改项目:
http://developer.ebay.com/DevZone/xml/docs/Reference/ebay/ReviseFixedPriceItem.html
http://developer.ebay.com/DevZone/xml/docs/Reference/ebay/ReviseItem.html
要更改商品的价格或数量:
http://developer.ebay.com/DevZone/xml/docs/Reference/ebay/ReviseInventoryStatus.html
愚蠢的eBay.所有质量工程师必须离开后才能为Google或Apple工作.不支持json-仍沿用1990年代的技术
I am trying to call this API with my eBay user auth token on the eBay API Explorer:
The Headers:
Authorization:Bearer [MY_EBAY_SELLER_USER_TOKEN] Accept:application/json Content-Type:application/json
Now I'm receiving this in response:
{ "total": 0, "size": 0 }
Now I definitely have some items listed for sale and they are showing up on eBay. I also made sure that I am in production mode and that my auth token is also a production token.
What's going on with you eBay??? See image below:
解决方案So it turns out that eBay's Inventory API is fairly new. Only items created via the Inventory API's can be queried with the Inventory API. Total waste of time.
Just use eBay's Trading API:
http://developer.ebay.com/DevZone/xml/docs/Reference/ebay/index.html
To list an item:
http://developer.ebay.com/DevZone/xml/docs/Reference/ebay/AddItem.html http://developer.ebay.com/DevZone/xml/docs/Reference/ebay/AddFixedPriceItem.html
To revise an item:
http://developer.ebay.com/DevZone/xml/docs/Reference/ebay/ReviseFixedPriceItem.html
http://developer.ebay.com/DevZone/xml/docs/Reference/ebay/ReviseItem.html
To revise price or quantity of item:
http://developer.ebay.com/DevZone/xml/docs/Reference/ebay/ReviseInventoryStatus.html
Stupid eBay. All the quality engineers must have left to go work for Google or Apple. No support for json - still using tech from the 1990's
这篇关于eBay的“获取库存物品" API不返回物品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!