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

Querying User Info

Show information for a user.

Entity: User
Type: UserType.Show
Parameters/Filters:
Name Purpose Type Required
IncludeEntities Include Twitter entities bool no
ScreenName Screen name of user string only if UserID is empty
UserID ID of user ulong only if ScreenName is empty

v3.0 Example:
            var user =
                await
                (from tweet in twitterCtx.User
                 where tweet.Type == UserType.Show &&
                       tweet.ScreenName == "JoeMayo"
                 select tweet)
                .SingleOrDefaultAsync();

            if (user != null)
            {
                var name = user.ScreenNameResponse;
                var lastStatus =
                    user.Status == null ? "No Status" : user.Status.Text;

                Console.WriteLine();
                Console.WriteLine(
                    "Name: {0}, Last Tweet: {1}\n", name, lastStatus); 
            }
v2.1 Example:
            var user =
                await
                (from tweet in twitterCtx.User
                 where tweet.Type == UserType.Show &&
                       tweet.ScreenName == "JoeMayo"
                 select tweet)
                .SingleOrDefaultAsync();

            var name = user.ScreenNameResponse;
            var lastStatus = 
                user.Status == null ? "No Status" : user.Status.Text;

            Console.WriteLine();
            Console.WriteLine(
                "Name: {0}, Last Tweet: {1}\n", name, lastStatus);

Twitter API: users/show

Last edited Nov 29, 2013 at 3:52 AM by JoeMayo, version 13