0

Recently I was learning about APIs and tried learning about the Twitter one.

I authenticated my App, and even regenerated my API and the API key, yet it still doesn't seem to work.

I looked up on YouTube and most of them say that I have to upgrade it to elevated access, yet that option doesn't appear on my developer portal. At this point I'm basically lost, I looked up that Twitter wanted to get right of third party users, but I don't know if that means that the API doesn't work anymore. Regardless, I'm not giving up until I get a concrete answer.

Here is my code.

import tweepy

keys = open('keys.txt', 'r').read().splitlines()
TwitterAPI = keys[0]
TwitterAPIKey_secret = keys[1]
TwitterAccesstoken = keys[2]
TwitterAccesstokensecret = keys[3]

Authenticator = tweepy.OAuthHandler(TwitterAPI, TwitterAPIKey_secret)
Authenticator.set_access_token(TwitterAccesstoken, TwitterAccesstokensecret)

Api = tweepy.API(Authenticator)

Api.update_status('test')
isherwood
  • 58,414
  • 16
  • 114
  • 157

0 Answers0