Twitter API仅应用程序身份验证(使用TweetSharp)

Xav*_*nas 8 c# twitter tweetsharp

我正在尝试使用仅应用程序身份验证(无用户上下文)从服务器端应用程序检索公共推文.

以下代码工作正常:

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);
Run Code Online (Sandbox Code Playgroud)

但是,我从这个图中收集到,没有必要提供访问令牌/秘密:

仅应用程序身份验证

但是当我删除调用时AuthenticateWith,ListTweetsOnUserTimeline返回null.

这是图书馆的限制,如果没有,我该怎么办?

编辑

据我所知,这会调用GET statuses/user_timeline应该支持仅应用程序身份验证的方法,根据文档:

支持这种形式的身份验证的API方法将在其文档中包含两个速率限制,一个是每个用户(用于应用程序用户身份验证),另一个是每个应用程序(对于这种形式的仅应用程序身份验证)

GET statuses/user_timeline方法在其文档中显示了这两个限制.

Xav*_*nas 1

这被确认为不受支持: https: //github.com/danielcrenna/tweetsharp/issues/80#issuecomment-19862455

由于该项目即将退役,因此没有计划添加对其的支持。