Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: 401 Unauthorized

$
0
0
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?

Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>