Search code examples
twittertweetinvi

TwitterCredentials.SetCredentials from tweetinvi not found


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

 Install-Package TweetinviAPI

How can i solve this.


Solution

  • 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