我有以下用C#编写的代码,它可以获取指定用户的推文。我面临的问题是它只返回了超过7000条推文的人的15-20条推文。在某些情况下,它也会出现此错误:
An unhandled exception of type 'System.OverflowException' occurred in Newtonsoft.Json.dll
Additional information: Arithmetic operation resulted in an overflow.
我的代码:
var service = new TwitterService(consumerKey, consumerSecret);
service.AuthenticateWith(accessToken, accessTokenSecret);
var options = new SearchOptions { Q = "abcd" };
var tweets = service.Search(options);
var count = 0;
foreach (var tweet in tweets.Statuses)
count++;
Console.WriteLine(count);
行var tweets = service.Search(options);
我正在使用TweetSharp库