Ir al contenido

tys.products.list()

Esta página aún no está disponible en tu idioma.

Methodtryyoursize

The store’s products, newest first. sku finds one product by SKU / style ID.

def list(*, sku: Optional[str] = None, limit: Optional[int] = None, cursor: Optional[str] = None) -> ListPage
skuOptional[str]Opcional= None

Find one product by SKU / style ID.

limitOptional[int]Opcional= None

Page size.

cursorOptional[str]Opcional= None

next_cursor of the previous page.

ListPage: Products, newest first. A dict with data, has_more, next_cursor; next_page() and auto_paging_iter() walk the rest. See ListPage.

page = tys.products.list(limit=50)
for product in tys.products.list().auto_paging_iter():
print(product["external_id"], product.get("published_version"))
match = tys.products.list(sku="TEE-001")

¿Te ha resultado útil esta página?