开发者

ebay api finding items SortOrderType = EndTimeSoonest

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"开发者_StackOverflow社区;
                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.


The input is 'sortOrder=EndTimeSoonest' not SortOrderType! You could also do with '&paginationInput.pageNumber=NUMBER' to fullfill the pagination contract.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜