eBay api 查找项目 SortOrderType = EndTimeSoonest
我会使用 eBay 检索一些列表并使用以下命令进行排序:
• EndTimeSoonest
(in) Sorts items by end time, with items ending soonest listed first.
所以我设置了此网址:
var url ="http://svcs.ebay.com/services/search/FindingService/v1";
url += "?OPERATION-NAME=findItemsByKeywords";
url += "&SERVICE-VERSION=1.0.0";
url += "&SECURITY-APPNAME=xxxxxx";
url += "&GLOBAL-ID=EBAY-"+loc;
url += "&RESPONSE-DATA-FORMAT=JSON";
url += "&REST-PAYLOAD";
url +="callback=e";
url += "&keywords="+mystring;
url += "&paginationInput.entriesPerPage=50";
url += "&SortOrderType=EndTimeSoonest";
url += urlfilter;
问题是结果不是按拍卖结束时间排序的。 我做错了什么? 这里有 SortOrder 指南:http://developer.ebay。 com/devzone/finding/callref/findItemsAdvanced.html#Request.sortOrder
非常感谢。
I would retrieve some listings with ebay and order it with:
• EndTimeSoonest
(in) Sorts items by end time, with items ending soonest listed first.
So I have set this url:
var url ="http://svcs.ebay.com/services/search/FindingService/v1";
url += "?OPERATION-NAME=findItemsByKeywords";
url += "&SERVICE-VERSION=1.0.0";
url += "&SECURITY-APPNAME=xxxxxx";
url += "&GLOBAL-ID=EBAY-"+loc;
url += "&RESPONSE-DATA-FORMAT=JSON";
url += "&REST-PAYLOAD";
url +="callback=e";
url += "&keywords="+mystring;
url += "&paginationInput.entriesPerPage=50";
url += "&SortOrderType=EndTimeSoonest";
url += urlfilter;
The problem is that results are not ordered by ending time of auctions.
What I am doing wrong?
Here there is the SortOrder guide: http://developer.ebay.com/devzone/finding/callref/findItemsAdvanced.html#Request.sortOrder
Thank you so much.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
输入是“sortOrder = EndTimeSoonest”而不是SortOrderType!
您还可以使用“&paginationInput.pageNumber=NUMBER”来完成分页合同。
The input is 'sortOrder=EndTimeSoonest' not SortOrderType!
You could also do with '&paginationInput.pageNumber=NUMBER' to fullfill the pagination contract.