【发布时间】:2013-03-13 03:31:54
【问题描述】:
我正在尝试使用application-only authentication(无用户上下文)从服务器端应用程序检索公共推文。
以下代码可以正常工作:
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 方法,根据documentation:
支持这种形式的身份验证的 API 方法将在其文档中包含两个速率限制,一个是每个用户(用于应用程序用户身份验证),另一个是每个应用程序(用于这种形式的仅应用程序身份验证)
GET statuses/user_timeline 方法在其文档中显示了这两个限制。
【问题讨论】:
-
这个方法有什么好运气吗?
-
有兴趣的可以在GitHub上的issue:github.com/danielcrenna/tweetsharp/issues/80
标签: c# twitter tweetsharp