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

New Post: GetUserTimeline problem

$
0
0
I loved the user.GetUserTimeline(maxnumberoftweets,includereplies) in version 0.9.2.2 but it seems to not work any more.

From your examples I execute the following and get 200 tweets (which I think is the max)
private static void Timeline_GetUserTimeline(string username)
    {
        var user = User.GetUserFromScreenName(username);

        var timelineTweets = user.GetUserTimeline(300,false);
        foreach (var tweet in timelineTweets)
        {
            Console.WriteLine(tweet.Text);
        }
    }

But in the latest version (0.9.3.2) - it doesn't seem to be possible to execute the GetUserTimeLine with 2 parms - so I use the code below. But now I only get 121 tweets. I am simply never able to get 200 tweets with the new version, with or without include_replies set to 0.

Could you bring back the old functionality which worked so brilliant, or provide a workaround, please.

var user = User.GetUserFromId(ssUid);
                    var timelineParameter = Timeline.CreateUserTimelineRequestParameter(ssUid);
                    timelineParameter.ExcludeReplies = true;
                    timelineParameter.MaximumNumberOfTweetsToRetrieve = 1000;
                    var tweets = user.GetUserTimeline(timelineParameter);
Thank you for a great product.

Viewing all articles
Browse latest Browse all 4126

Trending Articles



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