Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: GetHomeTimeLine not retrieving given number of tweets

$
0
0
Hi, I'm trying to get a number of tweets from the user timeline, but no matter how I dot it it does not retrieve the given number. This is my code:
            var timelineParameter = Timeline.CreateHomeTimelineRequestParameter();
            timelineParameter.MaximumNumberOfTweetsToRetrieve = n;
            var timeLine = Timeline.GetHomeTimeline(timelineParameter);
            foreach (var tweet in timeLine)
            {
                Console.WriteLine(tweet.Text);
            }
n is a parameter given by the user. So if, for example, if I ask for 100 tweets the maximun I can get is 42. And when I ask for 1000 it only gives 113.

Is there a problem with my code?

Thank you.

Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>