-
Notifications
You must be signed in to change notification settings - Fork 8
Concepts
js.sevestre edited this page Oct 24, 2019
·
6 revisions
list
or search
api use pagination.
Properties to used for pagination:
-
maxResults
: how many results per response. -
cursor
: use the one provided by the previous response to get next page. -
more
: the server has more results for you.
# speudo code
more = True
cursor = None
maxResults= 50
while more:
resp = api_list_call(maxResults, cursor, {other api parameters} )
more = resp.more
cursor = resp.cursor