I've been trying (and failing) for the life of me to just simply connect to the twitter api using tweepy and post 1 tweet. I have no idea why my code won't work, it keeps giving me the error that I don't have a high enough access level. (tweepy.errors.Forbidden: 403 Forbidden 453 - You currently have access to a subset of Twitter API v2 endpoints and limited v1.1 endpoints (e.g. media post, oauth) only.)
import tweepy
from credentials import twitter_bot_keys
auth = tweepy.OAuth1UserHandler(
twitter_bot_keys['API Key'],
twitter_bot_keys['API Key Secret'],
twitter_bot_keys['Access Token'],
twitter_bot_keys['Access Token Secret']
)
api = tweepy.API(auth)
api.update_status("test")
(Obviously the credentials.py file has my actual credentials in their respective areas) Any help would be greatly appreciated.
Tried everything, expected it to post a tweet. Also expected it not to be such a nightmare to use this awful API
Used the working code sample from Viktor Brešan in Twitter API access denied for posting a simple tweet
No idea why that worked instead, but it did so I used that as a base.