BoxKite.Twitter.TimelineExtensions.GetUserTimeline C# (CSharp) Метод

GetUserTimeline() публичный статический Метод

Returns a collection of the most recent Tweets posted by the user indicated by the screen_name or user_id parameters.
ref: https://dev.twitter.com/docs/api/1.1/get/statuses/user_timeline
public static GetUserTimeline ( this session, string screenName = "", long userId, long sinceId, long maxId, int count = 200, bool excludeReplies = true, bool includeRetweets = true ) : Task>
session this
screenName string The screen name of the user for whom to return results for.
userId long The ID of the user for whom to return results for.
sinceId long Returns results with an ID greater than (that is, more recent than) the specified ID.
maxId long Returns results with an ID less than (that is, older than) or equal to the specified ID.
count int Specifies the number of tweets to try and retrieve, up to a maximum of 200 per distinct request
excludeReplies bool This parameter will prevent replies from appearing in the returned timeline.
includeRetweets bool When set to false, the timeline will strip any native retweets
Результат Task>
        public async static Task<TwitterResponseCollection<Tweet>> GetUserTimeline(this ITwitterSession session, string screenName = "", long userId = 0, long sinceId = 0, long maxId = 0, int count = 200, bool excludeReplies = true, bool includeRetweets = true)
        {
            var parameters = new TwitterParametersCollection();
            parameters.Create(include_entities: true, include_rts: true, count: count, since_id: sinceId, max_id: maxId, screen_name:screenName);

            return await session.GetAsync(TwitterApi.Resolve("/1.1/statuses/user_timeline.json"), parameters)
                          .ContinueWith(c => c.MapToMany<Tweet>());
        }