Timeline for Making use of the *"has_more": true* json attribute in the Json response from stackoverflow
Current License: CC BY-SA 3.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 28, 2016 at 5:14 | comment | added | danjah |
Depending on how much polling you need to be doing, you may need to check the backoff property on the wrapper object, in case you need to insert a delay before querying too heavily.
|
|
Mar 15, 2012 at 16:07 | comment | added | savagius | Hi @Sirko, I've successfully managed keep polling for data, simply added a check on the has_more, and a page incrementer :). | |
Mar 15, 2012 at 15:08 | vote | accept | savagius | ||
Mar 15, 2012 at 15:08 | vote | accept | savagius | ||
Mar 15, 2012 at 15:08 | |||||
Mar 15, 2012 at 15:05 | comment | added | Sirko | @savagius Have a look at my edit. | |
Mar 15, 2012 at 15:05 | history | edited | Sirko | CC BY-SA 3.0 |
added 739 characters in body
|
Mar 15, 2012 at 14:57 | comment | added | savagius | I don't won't to sound annoying but could you elaborate on the second part (about the total property and wrapper filters)? | |
Mar 15, 2012 at 14:52 | comment | added | Sirko |
@savagius There are two ways: Either just poll data until has_more is set to false or use a filter that includes the total property (to be found under .wrapper filters).
|
|
Mar 15, 2012 at 14:46 | comment | added | savagius | Got it! Though probably I'm gonna ask a lame question now, but how can I know how many entries there are...to the initial request I make? Cheers :) | |
Mar 15, 2012 at 14:44 | comment | added | Sirko |
@savagius Exactly. So if there are 900 entries as a response to your query, you would have to do 9 queries total with the last having page=9 as a parameter.
|
|
Mar 15, 2012 at 14:43 | comment | added | savagius | Hmm... I get your reasoning... so each page would return me 100 results (due to the pagesize attribute) right? | |
Mar 15, 2012 at 14:38 | history | migrated | from stackoverflow.com (revisions) | ||
Mar 15, 2012 at 14:34 | history | answered | Sirko | CC BY-SA 3.0 |