This project has moved. For the latest updates, please go here.

Querying Statuses

Gets a specific tweet.

Entity: Status
Type: StatusType.Show
Parameters/Filters:
Name Purpose Type Required
ID Tweet ID to retrieve ulong yes
IncludeMyRetweet Populates CurrentUserRetweet in response if set to true bool no
IncludeEntities Doesn't include entities when set to false (default: true) bool no
TrimUser Return only user status ID and tweet bool no

v3.0 Example:
            ulong tweetID = 263843354817732608;

            var friendTweets =
                await
                (from tweet in twitterCtx.Status
                 where tweet.Type == StatusType.Show &&
                       tweet.ID == tweetID
                 select tweet)
                .ToListAsync();

            if (friendTweets != null)
            {
                Console.WriteLine("\nTweets: \n");
                friendTweets.ForEach(tweet =>
                {
                    if (tweet != null && tweet.User != null)
                        Console.WriteLine(
                            "User: " + tweet.User.Name +
                            "\nTweet: " + tweet.Text +
                            "\nTweet ID: " + tweet.ID + "\n");
                }); 
            }
v2.1 Example:
            var friendTweets =
                from tweet in twitterCtx.Status
                where tweet.Type == StatusType.Show &&
                      tweet.ID == "10520783556"
                select tweet;

            Console.WriteLine("\nRequested Tweet: \n");
            foreach (var tweet in friendTweets)
            {
                Console.WriteLine(
                    "User: " + tweet.User.Name +
                    "\nTweet: " + tweet.Text +
                    "\nTweet ID: " + tweet.ID + "\n");
            }

Twitter API: statuses/show/:id

Last edited Nov 29, 2013 at 3:48 AM by JoeMayo, version 15