Querying Suggested User Categories

Get list of categories for suggested users.

Entity: User
Type: UserType.Categories
Parameters/Filters:
Name Purpose Type Required
Lang Language to display string no

v3.0 Example:
            var user =
                await
                (from tweet in twitterCtx.User
                 where tweet.Type == UserType.Categories
                 select tweet)
                .SingleOrDefaultAsync();

            if (user != null && user.Categories != null)
                user.Categories.ForEach(cat => 
                    Console.WriteLine("Category: " + cat.Name));
v2.1 Example:
            var users =
                from tweet in twitterCtx.User
                where tweet.Type == UserType.Categories
                select tweet;

            var user = users.SingleOrDefault();

            user.Categories.ForEach(
                cat => Console.WriteLine("Category: " + cat.Name));

Twitter API: users/suggestions

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