Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paginator #138

Open
ad-m-ss opened this issue Jun 4, 2022 · 0 comments
Open

Paginator #138

ad-m-ss opened this issue Jun 4, 2022 · 0 comments

Comments

@ad-m-ss
Copy link

ad-m-ss commented Jun 4, 2022

Hi,

Could you add the recommended way how to play with paginator? Many SDKs don't offer much more than building simple requests, but they expect the SDK to facilitate a certain abstraction. You can use async generators to make remote data "native" (see example iterator in GitHub SDK https://octokit.github.io/rest.js/v18#pagination , alternatively paginator in AWS SDK - https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/rds.html#paginators ).

Available https://github.com/useshortcut/shortcut-client-js/tree/main/examples does not even attempt to reach that.

API response requires to the following URL, which is quite raw, and using raw API requests undermines the sense of the SDK.

Kind regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant