401 Unauthorized

Dec 19, 2013 at 11:19 PM
Hi

1) I've created an application (dev.twitter.com) and obtained my access tokens.
2) Downloaded v0.8.3.22 from codeplex
3) Entered my token credentials in app.config (Examplinvi project)
4) Modified Main() so that it will read like this:
        static void Main()
        {
            
            IToken token = new Token(
                ConfigurationManager.AppSettings["token_AccessToken"],
                ConfigurationManager.AppSettings["token_AccessTokenSecret"],
                ConfigurationManager.AppSettings["token_ConsumerKey"],
                ConfigurationManager.AppSettings["token_ConsumerSecret"]);

    //        TokenSingleton.Token = token;

            FilteredStream stream = new FilteredStream();
            stream.AddTrack("tweetinvi c#");
            stream.StartStream(token, tweet => Console.WriteLine(tweet.Text));

            Console.WriteLine("End");
            Console.ReadKey();
  1. Run the application and I got 401 error.
Questions:
  • Do I miss something when creating the application on dev.twitter.com?
  • Or do I need another OAuth credentials?
  • If yes how do I get that?
Dec 20, 2013 at 12:04 AM
UPDATE: I have changed my application type to "Read, Write, Direct Messages" and recreated tokens and 401 is gone.
Marked as answer by linvi on 1/16/2014 at 4:14 AM
Dec 20, 2013 at 6:45 AM
Edited Dec 20, 2013 at 10:49 AM
RESOLVED.
Coordinator
Dec 20, 2013 at 2:15 PM
Easiest resolution I've ever had :)

Enjoy Tweetinvi.
Linvi