sferik / twitter-ruby

A Ruby interface to the Twitter API.
http://www.rubydoc.info/gems/twitter
MIT License
4.59k stars 1.31k forks source link

The .user method returns a 403 forbidden and needs to be upgraded #1035

Closed sharkey11 closed 1 year ago

sharkey11 commented 1 year ago

hi, when trying to call the .user function to lookup a user, like .user("elonmusk"), I get this error:

You currently have access to a subset of Twitter API v2 endpoints and limited v1.1 endpoints (e.g. media post, oauth) only. If you need access to this endpoint, you may need a different access level. You can learn more here: https://developer.twitter.com/en/portal/product (Twitter::Error::Forbidden)

I would love an update to the gem that updats it to v2. I used this patch, but its very sus.

hjoseph96 commented 1 year ago

Seconded.

sferik commented 1 year ago

For API 2, please checkout X.