sferik / x-ruby

A Ruby interface to the X API.
MIT License
68 stars 13 forks source link

Not working Oauth2 #28

Open do4n opened 2 months ago

do4n commented 2 months ago

Endpoint: users/:id/bookmarks

Error:

RuntimeError: Error 403: {
  "title": "Unsupported Authentication",
  "detail": "Authenticating with OAuth 1.0a User Context is forbidden for this endpoint.  Supported authentication types are [OAuth 2.0 User Context].",
  "type": "https://api.twitter.com/2/problems/unsupported-authentication",
  "status": 403
}
sferik commented 2 months ago

Are you using a Bearer token?

do4n commented 2 months ago

Yes, I have used the bearer_token in twitter portal

sferik commented 3 weeks ago

I'll gladly accept a pull request that adds full OAuth 2.0 support.