Reputation: 31
This is my code:
tweepy.Client(bearer_token = bearerToken,
consumer_key = consumerKey,
consumer_secret = consumerSecret,
access_token = accessToken,
access_token_secret = accessTokenSecret)
tweepy.Client.create_tweet(text='if this worked this was tweeted from Python code', user_auth=True)
And this is the error that I keep receiving:
TypeError: create_tweet() missing 1 required positional argument: 'self'
What am I missing? From what I can see on the tweepy.Client documentation there is no self positional argument to be used.
Upvotes: 0
Views: 235
Reputation: 5157
You're using Client.create_tweet
as a class method there instead of using your instance of Client
.
Upvotes: 1