I use this piece of code to find all items that are in an auction type using the ebay FindingAPI. Now I want to filter out those elements that were launched during the specified day (for example, 2 days). How can I add this preference?
Check this link and type of preference. Here is the piece of code:
IPaginationInput pagination = new PaginationInput();
pagination.entriesPerPageSpecified = true;
pagination.entriesPerPage = 100;
pagination.pageNumberSpecified = true;
pagination.pageNumber = curPage;
request.paginationInput = pagination;
ItemFilter if1 = new ItemFilter();
ItemFilter if2 = new ItemFilter();
if1.name = ItemFilterType.ListingType;
if1.value = new string[] { "Auction" };
ItemFilter[] ifa = new ItemFilter[1];
ifa[0] = if1;
request.itemFilter = ifa;
FindItemsByKeywordsResponse response = client.findItemsByKeywords(request);
foreach (var item in response.searchResult.item)
{
tw.WriteLine(item.viewItemURL.ToString());
links.Add(item.viewItemURL.ToString());
}
source
share