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

No pagination for v2.streamRules method although corresponding endpoint supports it #537

Open
lior-ashkenazi-zencity opened this issue Jun 30, 2024 · 2 comments

Comments

@lior-ashkenazi-zencity
Copy link

The endpoint tweets/search/stream/rules (GET). in Twitter API v2 supports pagination, but the encapsulating method v2.streamRules doesn't support pagination.

Please observe that once the rules stored in Twitter API v2 pass 1,000 rules, pagination will be toggled, and here:

export declare type StreamingV2GetRulesResult = DataAndMetaV2<StreamingV2Rule[], SentMeta>;

Instead of SentMeta, we should have PaginableCountMetaV2.

Version
Node: v16.14.2
twitter-api-v2: 1.16.4
OS: macOS 13.5 (22G74)

@rveitch
Copy link

rveitch commented Jul 1, 2024

I have run into this issue as well and am working around it for now, but would prefer to continue using this library instead of manual pagination.

@PLhery
Copy link
Owner

PLhery commented Jul 2, 2024

Hello, this library is not actively maintained since elone takeover, but any PR is welcomed!

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

No branches or pull requests

3 participants