Skip to content

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

Open
@lior-ashkenazi-zencity

Description

@lior-ashkenazi-zencity

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)

Activity

rveitch

rveitch commented on Jul 1, 2024

@rveitch

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

PLhery commented on Jul 2, 2024

@PLhery
Owner

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @PLhery@rveitch@lior-ashkenazi-zencity

        Issue actions

          No pagination for v2.streamRules method although corresponding endpoint supports it · Issue #537 · PLhery/node-twitter-api-v2