Skip to content

Helper functions do not seem to work with API v2 instance #384

Open
@ChrisHardie

Description

@ChrisHardie

I tried linkTweet() and linkify() methods on an API v2 instance, and got undefined method errors.

Further, related to #339, it seems that the array structure used by the v2 API for individual tweets in the response is not affected by response_format and so if you try to use something like Twitter::forApiV1()->linkTweet($tweet) you get an error about missing object properties that are expected by the helper.

Would it be possible to update these helper methods to work with v2, or to clarify in the documentation that they are v1 only? Thank you.

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

    Issue actions