TwitterCredentials.SetCredentials from tweetinvi not found

I installed tweetinvi but TwitterCredentials.SetCredentials not found.

Install-Package TweetinviAPI 

How can I solve this problem.

+4
source share
2 answers

You are using the old Tweetinvi code.

Compatible with Twitterinvi from version 0.9.9.5. Instead of "TwitterCredentials.SetCredentials" you should now use "Auth.SetUserCredentials"

Please note that the order of the parameters is also changed!

Try the following:

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

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

+13
source

Try the following:

 TwitterCredentials twitterCredentials = new TwitterCredentials("<consumerKey>", "<consumerSecret>", "<accessToken>", "<token_secret">); 

Hope this helps.

0
source

All Articles