This project has moved and is read-only. For the latest updates, please go here.

Searching for Users

Find users with a search query.

Entity: User
Type: UserType.Search
Name Purpose Type Required
Count Number of results to return for each page; max is 20 int no
IncludeEntities Include Twitter entities bool no
Page Page to return; defaults to 1 int no
Query Search query string yes

v3.0 Example:
            var foundUsers =
                (from user in twitterCtx.User
                 where user.Type == UserType.Search &&
                       user.Query == "JoeMayo"
                 select user)

            if (foundUsers != null)
                foundUsers.ForEach(user => 
                    Console.WriteLine("User: " + user.ScreenNameResponse));
v2.1 Example:
            var user =
                (from usr in twitterCtx.User
                 where usr.Type == UserType.Search &&
                       usr.Query == "Joe Mayo"
                 select usr)

            Console.WriteLine("User Name: " + user.Name);

Twitter API: users/search

Last edited Nov 29, 2013 at 4:52 AM by JoeMayo, version 10