Twitter API application-only authentication (with TweetSharp)
c#, tweetsharp, twitter
Solution
This is confirmed as not being supported: https://github.com/danielcrenna/tweetsharp/issues/80#issuecomment-19862455
As this project is being retired, there is no plan to add support for it.
Problem
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.