Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TwitterCredentials.SetCredentials from tweetinvi not found

i installed tweetinvi but the TwitterCredentials.SetCredentials is not found.

 Install-Package TweetinviAPI

How can i solve this.

like image 391
TotalWar Avatar asked Dec 10 '22 21:12

TotalWar


1 Answers

You're using an old Tweetinvi code.

Tweetinvi break compatibility since version 0.9.9.5. Instead of "TwitterCredentials.SetCredentials" you should now use "Auth.SetUserCredentials"

plaese note that the parameters order has also been changed!

Try this:

Auth.SetUserCredentials("CONSUMER_KEY", "CONSUMER_SECRET", "ACCESS_TOKEN", "ACCESS_TOKEN_SECRET");

For more options, see https://github.com/linvi/tweetinvi/wiki/Credentials

like image 166
Micha Kaufman Avatar answered Mar 07 '23 19:03

Micha Kaufman