Skip to content

tys.products.list()

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]Optional= None

Find one product by SKU / style ID.

limitOptional[int]Optional= None

Page size.

cursorOptional[str]Optional= 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")

Was this page helpful?