我会用 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
非常感谢。