Return all users tweet using TweetSharp


#1

Hello Dears ,
I am trying to write an app that returns the last 3200 of a user…however , I am not able to do that is I am only getting the last almost 650 of user tweets which are 20% as described in your help . But I need to get as much as I can so how can I do that , Thanks alot .

I am using Tweetsharp 2.0 and .NET Framework 4.0 on visual studio 2012.

here is a part of my code that keeps looping to get more .

for (int i = 0; i < 16; i++)
{
if (tweets.Count >= 3200)
{
break;//this will exist the loop as max tweets that it can get is 3200.
}

            List<TwitterStatus> currentTweets = service.ListTweetsOnUserTimeline(i, 200).ToList();

            if (currentTweets != null && currentTweets.Count > 0)
            {
                tweets.AddRange(currentTweets);
            }
        }