paginate
Most resources with a list() method also have paginate(), which returns an
iterator over every item across all pages. Eight don’t: client.addresses,
client.recordings, client.short_codes, client.registry.brands,
client.fabric.resources, client.fabric.cxml_applications,
client.video.room_recordings, and client.logs.conferences expose list()
only. list() returns one raw page, the server’s first response. paginate() reads each page’s data array, follows
the links.next URL until it is absent, continues through an empty page that
still has a next link, and stops if the server repeats a next link.
Parameters
request_options
Timeout and retry overrides applied to every page fetch. See
RequestOptions.
**params
Query parameters forwarded to the list endpoint, the same ones list()
accepts. Passed on the first request; later pages follow the server’s link.
Returns
PaginatedIterator — a plain Python iterator that yields one item at a time and
fetches the next page on demand.