Forum Discussion
Hmmm....
Maybe I'm doing something wrong. Again, it works on the first two calls but returns 0 on everyone after that. Here's the calls I'm making:
for (int i = 1; i <= LITHIUM_CONSUMER_API_CALLS; i++)
{
ProcessLithiumData("http://h30434.www3.hp.com",
String.Format(@"restapi/vc/categories/id/InkJet/posts/recent?page_size={0}&page={1}&restapi.response_format=json&restapi.format_detail=full_list_element&restapi.response_style=view", LITHIUM_RECORDS_PER_CALL, i));
}
Any ideas? If I issue the calls from a browser I get the same result: First two work, next ones all fail.
Could be their is no cap on listing users. Can you run against a category/board of yours and see if you can pull more than 2000?
Notice: This is HP's consumer forum that contains all the Photosmart, Deskjet, Officejet, and Laser printers.
Hey Synthesis,
I think you will have to open a support ticket for this. There's a config set that limit's the full set of result to 2000 overall at the moment. You will need to let us know what you want the limit to be. (Performance degradation happens pretty quickly once you get further down the pages, so I would suggest setting the limit to something around 5000 or whatever you want)
There's a workaround for this without needing the config change, however as you go further and further down pages, performance will decrease exponentially. In fact, by page 6 I am seeing significant delay (4 seconds or so).
The workaround is to iterate over the boards in the category and get the threads from each board. For example I used the following to get to page 3: http://h30499.www3.hp.com/restapi/vc/categories/id/bsc-412/boards/id/bsc-420/threads?page_size=1000&page=3&restapi.response_format=json&restapi.format_detail=full_list_element&restapi.response_style=view
Hope this helps,
Yuri
Related Content
- 3 years ago
- 3 years ago