0

CODE:

client = tweepy.Client(bearer_token, api_key, api_secret, access_token, access_token_secret )

auth = tweepy.OAuth1UserHandler(api_key, api_secret, access_token, access_token_secret)
api = tweepy.API(auth)
client_id = client.get_me().data.id
response = client.get_users_mentions(client_id)

I am getting error:

When authenticating requests to the Twitter API v2 endpoints, you must use keys and tokens from a Twitter developer App that is attached to a Project. You can create a project via the developer portal.

However, I have free access which I applied for

Methods like create_tweet and update_status work but using get_users_mentions gives me an error.

Apparently twitter used to have elevated access for stuff like this but they have removed it. Is the only way I can use get_users_mentions is by purchasing the basic or pro plan paying twitter?

Tried to return user mentions on twitter bot, I expected it to return tweets which mentioned the bots id instead returned error that I don't have a developer account despite having one.

The bot is under a project

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129

0 Answers0