I'm beginner to TweetSharp and I'm using the ListTweetsOnHomeTimeline() method of TweetSharp , sometimes this method works fine and sometimes its return null.
Below is my code
IEnumerable<TwitterStatus> homeTweets = service.ListTweetsOnHomeTimeline(new ListTweetsOnHomeTimelineOptions());
if (homeTweets != null)
{
foreach (var item in tweets)
{
Console.WriteLine("{0} says '{1}'", item.User.ScreenName, item.Text);
}
}
Any help will be appreciated.
I tried passing
SinceId = null
and it solved me the problem, like so:But only for a little while. I noticed that this is recurring, every now and then the request returns
null
, but if I try later, it works. I'm guessing there is a request limit.I've found this: https://dev.twitter.com/docs/rate-limiting/1.1