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

Getting User Statuses in a Category

Get list of user statuses in a category.

Entity: User
Type: UserType.CategoryStatus
Parameters/Filters:
Name Purpose Type Required
Slug Short list name string yes

v3.0 Example:
            var catUsers =
                await
                (from user in twitterCtx.User
                 where user.Type == UserType.CategoryStatus &&
                       user.Slug == "Technology"
                 select user)
                .ToListAsync();

            if (catUsers != null)
            {
                Console.WriteLine("Tweets: \n");

                catUsers.ForEach(user =>
                {
                    if (user != null && user.Status != null)
                        Console.WriteLine(
                            "User: {0}\nTweet: {1}\n",
                            user.ScreenNameResponse,
                            user.Status == null ?
                                "<Tweet not available.>" :
                                user.Status.Text);
                }); 
            }
v2.1 Example:
            var catTweets =
                (from user in twitterCtx.User
                 where user.Type == UserType.CategoryStatus &&
                       user.Slug == "Technology"
                 select user)
                .ToList();

            Console.WriteLine("Tweets from Suggested Users in Technology Category: \n");

            catTweets.ForEach(tweet => 
                Console.WriteLine(
                    "User: {0}\nTweet: {1}\n", 
                    tweet.Name, 
                    tweet.Status == null ?
                        "<Tweet not available.>" : 
                        tweet.Status.Text));

Twitter API: users/suggestions/:slug/members

Last edited Nov 29, 2013 at 4:55 AM by JoeMayo, version 3