The iterator helpers live on the client, not on the resource modules. They
follow the cursor for you and stop when next_cursor is absent.
with Reconify() as client: for issue in client.iter_issues(status="open", limit=100): print(issue.id, issue.category, issue.severity, issue.message) for event in client.iter_events(limit=100): print(event.id, event.event_type, event.status) for event in client.iter_issue_events( "00000000-0000-7000-8000-000000000001", limit=50 ): print(event.event_type, event.occurred_at)
Query parameters are keyword arguments, the same as on the list operation.
These iterators walk the whole collection. Break out of the loop, or filter with status, when
you only need recent records.