Cannot resolve symbol 'SetCredentials'

Aug 8, 2015 at 10:21 PM
Hi,

Trying to set credentials using the static method outlined in the docs but there doesn't seem to be a SetCredentials on TwitterCredentials. Where can I find the static class?
using Tweetinvi;
using Tweetinvi.Core.Credentials;

namespace Test
{
    class Program
    {
        private static void Main(string[] args)
        {
            var _consumerKey = "";
            var _consumerSecret = "";

            var _accessToken = "";
            var _accessTokenSecret = "";

            TwitterCredentials.SetCredentials(_accessToken, _accessTokenSecret, _consumerKey, _consumerSecret);
            var homeTimeline = Timeline.GetHomeTimeline();
        }

    }
}
Coordinator
Aug 8, 2015 at 10:35 PM
Hi,

If you use the latest version of Tweetinvi, you will have to use the Auth static class as explained in the github documentation.

Please note that the ConsumerKey and ConsumerSecret will be the first parameters when using Auth.

Cheers,
Linvi
Aug 9, 2015 at 5:13 AM
Thanks Linvi, I hadn't noticed your documentation on GitHub. I was working through you documentation on CodePlex.

Sent from my iPhone

Marked as answer by linvi on 8/10/2015 at 3:58 PM