I am trying to extract public tweets from a server-side application using authentication only for applications (without user context).
The following code works fine:
var service = new TwitterService("<consumer key>", "<consumer secret>"); service.AuthenticateWith("<access token>", "<access token secret>"); var options = new ListTweetsOnUserTimelineOptions { ScreenName = "billgates" }; foreach (var tweet in service.ListTweetsOnUserTimeline(options)) Console.WriteLine(tweet.Text);
However, I am going from this diagram that it is not necessary to specify an access token / secret:

However, when I delete the AuthenticateWith call, ListTweetsOnUserTimeline returns null.
This is a library limitation, if not, how can I do this?
EDIT
As far as I can tell, this calls the GET statuses/user_timeline , which should only support authentication for applications, according to the documentation :
API methods that support this form of authentication will contain two speed limits in their documentation, that is, for each user (for authentication of the user application), and the other for each application (for this form of authentication only for the application)
The GET statuses/user_timeline method GET statuses/user_timeline has these 2 limitations specified in its documentation.
c # twitter tweetsharp
Xavier poinas
source share