我试图从服务器端应用程序使用application-only authentication(无用户上下文)检索公共推文。Twitter API应用程序唯一身份验证(使用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);
但是我从这个图中聚集,它不应该有必要提供的访问令牌/秘密:
然而,当我删除对AuthenticateWith
的呼叫,ListTweetsOnUserTimeline
返回null。
这是图书馆的限制,如果没有,我该怎么办?
编辑
的Aas据我所知,这将调用GET statuses/user_timeline
方法应该支持应用程序的唯一身份验证,按照该documentation:支持这种形式的身份验证
API方法将在其文档中包含两个速率限制,一个是每个用户(用于应用程序用户认证),另一个是每个应用程序(用于这种形式的纯应用程序认证)
GET statuses/user_timeline
方法在其文档中显示了这2个限制。
这种方法有什么好运? – cDima 2013-03-20 03:43:03
对于那些有兴趣的,在GitHub上的问题:https://github.com/danielcrenna/tweetsharp/issues/80 – 2013-05-14 00:42:19