GetUserTimeline return always 40 tweets

Feb 24, 2014 at 4:38 PM
Hello,

I use this code snippet to get the two lastest tweets:
IUser userToTrack = User.GetUserFromScreenName(trackedElement);
IEnumerable<ITweet> userTweets = userToTrack.GetUserTimeline(2, true);
Unfortunately, the GetUserTimeline returns 40 tweets and not only 2. Am I doing something wrong?


Thanks,
Adrien.
Coordinator
Feb 24, 2014 at 5:01 PM
Hi Adrien,

This is a neglect, I forgot to set this parameter. I will change this soon.
In the meantime please use:
IUser userToTrack = User.GetUserFromScreenName(trackedElement);
var userTweets = Timeline.GetUserTimeline(userToTrack, 2, true);
Sorry for the issue, I will fix it as soon as I can.
Linvi
Marked as answer by linvi on 2/24/2014 at 4:48 PM
Coordinator
Feb 25, 2014 at 12:48 AM
Hi there,

I have just updated Tweetinvi Source Code to fix this issue. The code will be available as part of Tweetinvi 0.9.0.2 in a few days.

Regards,
Linvi
Marked as answer by linvi on 2/24/2014 at 4:48 PM
Feb 25, 2014 at 8:45 AM
Thanks for your quick responses.

Adrien.