I am trying to retrieve public tweets from a server-side application, using application-only authentication (no 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 gather from this diagram that it shouldn't be necessary to provide the access token/secret:
However when I remove the call to AuthenticateWith
, ListTweetsOnUserTimeline
returns null.
It is a limitation of the library, if not, how can I do it?
EDIT
Aas far as I can tell, this calls the GET statuses/user_timeline
method that should support application-only authentication, as per the documentation:
API methods that support this form of authentication will contain two rate limits in their documentation, one that is per user (for application-user authentication) and the other is per app (for this form of application-only authentication)
The GET statuses/user_timeline
method has these 2 limits shown in its documentation.