Closed mgei closed 2 years ago
I'm getting this too. I thought maybe it was because I was on a conference wifi or something??
I had to apply for "Elevated" https://developer.twitter.com/en/portal/products/elevated This required me to fill in some fields for intended use etc. and after that it immediately worked.
Note that on the second code you use twitter API v2 that rtweet doesn't use yet.
Your link goes to the API v2 but I think this is also needed for the API v1.1 which rtweet uses. I don't recall where to find information about using bearer tokens with Twitter API v1.1 but as you found out it might be needed to request elevated access for some endpoints.
Glad you sorted it out and you reported it here. Thanks Martin.
I repeatedly run into this 403 error:
Error: Twitter API failed [403] Check error message at https://developer.twitter.com/en/support/twitter-api/error-troubleshooting
The following works, so I assume that there's no problem with the authentication.
Same when I try bot authentication.