node-twitter-api-v2 icon indicating copy to clipboard operation
node-twitter-api-v2 copied to clipboard

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

Open lior-ashkenazi-zencity opened this issue 1 year ago • 2 comments

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)

lior-ashkenazi-zencity avatar Jun 30 '24 12:06 lior-ashkenazi-zencity

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.

rveitch avatar Jul 01 '24 19:07 rveitch

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

plhery avatar Jul 02 '24 14:07 plhery

Published in 1.28.0

plhery avatar Nov 15 '25 13:11 plhery