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

Add support for Twitter API v2 #544

Open
LinqLover opened this issue Dec 18, 2021 · 1 comment
Open

Add support for Twitter API v2 #544

LinqLover opened this issue Dec 18, 2021 · 1 comment

Comments

@LinqLover
Copy link

As of 2021-11-15, new users can only use the v2 version of the API unless they are granted elevated access:

Twitter API returned a 403 (Forbidden), You currently have Essential access which includes access to Twitter API v2 endpoints only. If you need access to this endpoint, you’ll need to apply for Elevated access via the Developer Portal. You can learn more here: https://developer.twitter.com/en/docs/twitter-api/getting-started/about-twitter-api#v2-access-leve

Unfortunately, twython appears to be hard-coded to v1, or at least I did not find out how to use the v2 endpoints. It would be great if support or docs for this could be added!

@ryanmcgrath
Copy link
Owner

Ah, damn, that's crazy.

Unfortunately I just don't use Twython myself much these days... so this isn't something I can devote my time to. If someone wanted to update the library to use v2 endpoints I'm happy to review and merge though; endpoints.py is fairly well laid out and unless much has changed with the authentication rituals, it should just be a matter of updating that (or creating an endpoints_v2 of sorts) and tweaking the main lib slightly to use it.

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

2 participants