sinch.core.pagination module
- class sinch.core.pagination.Paginator(sinch, endpoint, result: BM)[source]
Bases:
ABC,Generic[BM]Public interface for paginated list responses.
Use
content(),next_page()anditerator()to traverse the result set without dealing with the underlying pagination scheme.- Parameters:
result (BM)
- content() list[BM][source]
Return the items contained in the current page.
- Returns:
The list of items in the current page.
- Return type:
list[BM]