tweetinvi icon indicating copy to clipboard operation
tweetinvi copied to clipboard

Authentication Twitter API v2.0 Essential and follow user and get last tweets

Open AlexGer123 opened this issue 2 years ago • 6 comments

Hi,

I want to get some simple tweets and follow some users to get the last tweets from them. I am a little confused about authentication and conditions. But I try my best with small steps. I use Twitter API v2.0 essential and try:

                // we create a client with your user's credentials
                var userClient = new TwitterClient(consumer_key, consumer_secret, access_token, token_secret);

                // request the user's information from Twitter API
                var user = await userClient.Users.GetAuthenticatedUserAsync();
                Console.WriteLine("Hello " + user);

                // publish a tweet
                var tweet = await userClient.Tweets.PublishTweetAsync("Hello tweetinvi world!");
                Console.WriteLine("You published the tweet : " + tweet);

and I receive an error

message":"You currently have Essential access which includes access to Twitter API v2 endpoints only. If you need access to this endpoint, you'll need to apply for Elevated access via the Developer Portal. You can learn more here: https://developer.twitter.com/en/docs/twitter-api/getting-started/about-twitter-api#v2-access-leve","code":453}]}

How I tell tweetinvi to use Twitter API v2.0? Some one have a simple example for Authentication and get some tweets/follow someone? Unfortunately, i do not have access to Twitter API v1.x...

AlexGer123 avatar Dec 04 '21 10:12 AlexGer123

did you get a solution to this, i am having same problem

zoinkydoink avatar Feb 06 '22 18:02 zoinkydoink

No...I don't found any solution...

AlexGer123 avatar Feb 06 '22 19:02 AlexGer123

Did you got the solution for this? I am facing the same solution.

Qadoos-Javed avatar Aug 17 '22 05:08 Qadoos-Javed

Unfortunately I have not found a solution.

AlexGer123 avatar Aug 17 '22 06:08 AlexGer123

Did you apply for Elevated access?

Scobiform avatar Aug 19 '22 10:08 Scobiform

No. Essential only. :)

AlexGer123 avatar Aug 19 '22 14:08 AlexGer123