question

$$anonymous$$ avatar image
0 Likes"
$$anonymous$$ asked ·

how to limit any ebay api call using date filter..

Hello,

 

How to filter FindItemsAdvanced call of Finding API using Date filter?

Any code snippet would be help full?

 

Or how to limit any ebay api call using date filter..

 

-Thanks

 

10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
zhuowei.developersupport@ebay.com avatar image
0 Likes"
zhuowei.developersupport@ebay.com answered ·

 

 Hi kothariyashk,

 

   Here is a code snippet  for setting time filters in a finding API call:

 

       FindItemsAdvancedRequest request = new FindItemsAdvancedRequest();

 

        ItemFilter endtimefromFilter = new ItemFilter();

        endtimefromFilter.setName(ItemFilterType.END_TIME_FROM);

        List<String> endtimefrom = endtimefromFilter.getValue();

        endtimefrom.add("2012-06-010T20:25:11.513Z");

        ItemFilter endtimetoFilter = new ItemFilter();

        endtimetoFilter.setName(ItemFilterType.END_TIME_TO);

        List<String> endtimeto = endtimetoFilter.getValue();

        endtimeto.add("2012-06-15T20:25:11.513Z");

 

        List<ItemFilter> itemFilter = request.getItemFilter();

        itemFilter.add(endtimefromFilter);

        itemFilter.add(endtimetoFilter);

 

        request.setKeywords(YOUR KEYWORDS); 

 

       Should you need further assistance, please file an eBay Developer support request.

 

Best Regards,

· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.