I've provided the key, secret key & tokens for my Twitter Dev account -
nclient = tweepy.Client(consumer_key=consumer_key, consumer_secret=consumer_sec_key,
access_token=auth.access_token, access_token_secret=auth.access_token_secret)
And then I tried Tweeting a new Tweet -
new_tweet = nclient.create_tweet("First tweet!")
It gives me the below error -
TypeError: create_tweet() takes 1 positional argument but 2 were given
When I try running the below command -
new_tweet = nclient.create_tweet(text = "First tweet!")
It gives me the below error -
Forbidden: 403 Forbidden
Please help me with a resolution for this issue.