Use of .setPage and .getPage in twitter4j
in
Contributed Library Questions
•
3 years ago
Hi All --
I'm new to PDE and Java.
I'm working on a sketch that uses twitter4j.
I Understand that .setRpp() sets the number of returns per page and can have a max value of 100.
I see a set of methods .setPage and .getPage but I'm not sure how I use them.
Can I use them to get more than 100 returns at a time? That is can I get 100 returns on page1 and another 100 returns on page2?
Would I then (in pseudocode)?:
Set returns per page to 100
Set page = 1
Make query
Set page = 2
Repeat query
Set page = 1
Get query results on page 1
Set page = 2
Get the query results on page 2
Can someone please explain the concept of pages? I've seen them in other places.
Thanks!
1