Skip to content

tys.fit_groups.list()

Methodtryyoursize

Fit groups, cursor-paginated.

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

Page size.

cursorOptional[str]Optional= None

next_cursor of the previous page.

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

for group in tys.fit_groups.list().auto_paging_iter():
print(group["id"], group["name"])

Was this page helpful?