我试图使用仅应用程序认证 (没有用户上下文)从服务器端应用程序中检索公共tweet。
以下代码工作正常:
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);但是,我从这个图表中了解到,不应该需要提供访问令牌/秘密:

但是,当我删除对AuthenticateWith的调用时,ListTweetsOnUserTimeline返回null。
这是图书馆的一个限制,如果没有,我怎么做呢?
编辑
据我所知,这将调用GET statuses/user_timeline方法,该方法应支持仅应用程序的身份验证,如文档所示。
支持这种形式身份验证的API方法在其文档中将包含两个速率限制,一个是每个用户(用于应用程序-用户身份验证),另一个是每个应用程序(这种形式的仅用于应用程序的身份验证)。
GET statuses/user_timeline方法的文档中显示了这两个限制。
发布于 2013-06-23 23:12:13
这被确认为不受支持:https://github.com/danielcrenna/tweetsharp/issues/80#issuecomment-19862455
由于该项目即将退役,因此没有计划增加对该项目的支持。
https://stackoverflow.com/questions/15376570
复制相似问题