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

Retrieving All Lists

Get a list of all lists.

Entity: List
Type: ListType.List
Name Purpose Type Required
ScreenName Screen name of user to return lists for string only if UserID is empty
UserID ID of user to return lists for ulong only if ScreenName is empty
Reverse Causes Twitter to return lists belonging to the authenticated user first bool no

Note: Either UserID or ScreenName is required.
v3.0 Example:
            string screenName = "Linq2Tweeter";

            var lists =
                    (from list in twitterCtx.List
                     where list.Type == ListType.List &&
                           list.ScreenName == screenName
                     select list)

            if (lists != null)
                lists.ForEach(list => Console.WriteLine("Slug: " + list.SlugResult));
v2.1 Example:
            var lists =
                (from list in twitterCtx.List
                 where list.Type == ListType.Lists &&
                       list.ScreenName == "Linq2Tweeter"
                 select list)

            foreach (var list in lists)
                Console.WriteLine("ID: {0}  Slug: {1} Description: {2}",
                    list.ListIDResult, list.SlugResult, list.Description);

Twitter API: lists/list

Last edited Nov 29, 2013 at 3:23 AM by JoeMayo, version 14