Replies: 1 comment
-
Off the top of my head, something like this would be nice: class Token:
def paginated_resource(path: str, **query_string) -> PaginatedResource
... The Maybe it would be convenient if this shorthand worked as well? async for product in token.paginated_resource('/products'):
#... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Grabbing and using the headers to paginate the Rest API calls is really a pain. This is the kind of things we should be able to standardize and handle in SPyLib.
Beta Was this translation helpful? Give feedback.
All reactions