我只得到 100 个结果。代码摘录:
FindingServicePortTypeClient client = FindingServiceClientFactory.getServiceClient(config);
FindItemsByCategoryRequest req = new FindItemsByCategoryRequest();
req.categoryId = new string[] { "1249" };
req.sortOrder = SortOrderType.BestMatch;
req.sortOrderSpecified = true;
req.itemFilter = new ItemFilter[]
{
new ItemFilter()
{
name = ItemFilterType.EndTimeFrom,
value = new string[]
{
DateTime.Now.Add(TimeSpan.FromHours(1)).ToString("yyyy-MM-ddTHH:mm:ss")
}
}
};
PaginationInput pi = new PaginationInput();
pi.entriesPerPage = int.MaxValue;
pi.entriesPerPageSpecified = true;
req.paginationInput = pi;
FindItemsByCategoryResponse response = client.findItemsByCategory(req);
如您所见,我尝试使用int.MaxValue
,但无济于事。不可能从一个类别中获取所有项目吗?