ListPage
One page of a list.
A dict with data, has_more and next_cursor (also as attributes). auto_paging_iter() yields every item, fetching the following pages lazily.
class ListPage(Dict[str, Any])Members
Section titled “Members”datalistRequiredThe items of this page.
has_moreboolRequiredWhether another page follows.
next_cursorOptional[str]RequiredCursor of the next page.
next_page()Optional[ListPage]RequiredThe following page, or None at the end.
auto_paging_iter()Iterator[Any]RequiredEvery item of this page and all following pages.
Example
Section titled “Example”page = tys.products.list(limit=20)while page is not None: for product in page.data: print(product["external_id"]) page = page.next_page()for await (const page of tys.products.list({ limit: 20 }).pages()) { for (const p of page.data) console.log(p.external_id);}See also
Section titled “See also”Was this page helpful?
Thank you. We read every answer.