How stop iteration when using max_id


#1

The documentation on working with timelines at https://dev.twitter.com/rest/public/timelines explains what max_id is and how to use it for pagination but it never says how to know when you’ve reached the end of the search results. How can you tell when this happens?

Also, what is the next_results parameter and what is the relationship between the max_id value given in next_results and the parameter max_id?

Thanks.