Tweetsharp: Get a list of tweets from a specific user

Could not find this in TS official documentation, other Tweetsharp SO posts, or delve into library classes; so I thought I would ask. How to get a list of recent tweets from a specific user using Tweetsharp?

It can be assumed that I authenticate with the account that follows the user whose tweets I want to receive. I can even authenticate with the user account.

+7
source share
2 answers

Use ListTweetsOnSpecifiedUserTimeline ().

For example:

var service = new TwitterService(ConsumerKey, ConsumerSecret); service.AuthenticateWith(AccessToken, AccessTokenSecret); var currentTweets = service.ListTweetsOnSpecifiedUserTimeline(screenName:"screen name", page:1, count:100); 
+19
source

In updated versions, the method is slightly different. It is now called ListTweetsOnUserTimeline ()

and now you will go through the parameters now like this:

  var currentTweets = service.ListTweetsOnUserTimeline(new ListTweetsOnUserTimelineOptions { ScreenName = "yourTwitterHandle", Count = 5, }); 
+1
source

All Articles