ListPage
Esta página aún no está disponible en tu idioma.
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”datalistObligatorioThe items of this page.
has_moreboolObligatorioWhether another page follows.
next_cursorOptional[str]ObligatorioCursor of the next page.
next_page()Optional[ListPage]ObligatorioThe following page, or None at the end.
auto_paging_iter()Iterator[Any]ObligatorioEvery 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”¿Te ha resultado útil esta página?
Gracias. Leemos todas las respuestas.