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

New Post: The remote server return an error :(401) Unauthorized

$
0
0
This will only give you live tweets. Meaning, if you tweet while this code is running, then only you'll receive the tweet. Read up on dev.twitter.com to get more idea about the differences between streaming and rest API.

If you want to get your past tweets, you can use the following code:
var loggedUser = User.GetLoggedUser();
var tweets = loggedUser.GetUserTimeline();
foreach (var tweet in tweets)
{
    Console.WriteLine(tweet.Text);
}

Viewing all articles
Browse latest Browse all 4126

Trending Articles



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