Querying the User Timeline

Gets the 20 most recent statuses for a user (doesn't include user's friends). The max number of tweets you can retrieve is 3200.

Entity: Status
Type: StatusType.User
Parameters/Filters:
Name Purpose Type Required
ContributorDetails Include additional user details bool no
Count Number of tweets to return; max is 200 int no
ExcludeReplies Exclude tweet replies bool no
ID ID or ScreenName of user string only if UserID and ScreenName are empty
MaxID Return tweets earlier than or equal to this ID ulong no
ScreenName Screen name of user string only if ID and UserID are empty
SinceID Return tweets later than this ID ulong no
UserID ID of user string only if ID and ScreenName are empty


Note: One of ID, UserID, or ScreenName must be provided.
Example:
            var statusTweets =
                from tweet in twitterCtx.Status
                where tweet.Type == StatusType.User
                      && tweet.ScreenName == "JoeMayo"
                select tweet;

            tweets.ToList().ForEach(
                tweet => Console.WriteLine(
                "Name: {0}, Tweet: {1}\n",
                tweet.User.Name, tweet.Text));

Twitter API: statuses user_timeline

Last edited Aug 5, 2012 at 5:45 PM by JoeMayo, version 11

Comments

JoeMayo Nov 6, 2012 at 10:46 PM 
This query requires UserID or ScreenName.

kellyelton Oct 8, 2012 at 1:33 AM 
This demo returns an Authorization Error 400 with the latest version, yet works fine pre 2.1