Example
This example demonstrates the process to iterate over every monitor:-
Request the first page by sending a plain request with no page token:
The server responds with:
-
The response has a non-empty
page.next_tokenfield, which means you must send another request with this page token to fetch the next page of monitors:The server responds with: -
Because the non-empty
page.next_tokenresponse field indicates there are more results to fetch, request the next page:The server responds with: -
When you get a response with an empty
page.next_tokenfield, you have reached the final page of results.