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

List members doesn't work

Nov 11, 2011 at 3:27 PM


the sample for getting the members' list isn't working:
the code returns: "If you specify a Slug, you must also specify either OwnerID or OwnerScreenName.Parameter name: OwnerIdOrOwnerScreenName" !
If I continue anyway in debug mode, the response from Twitter is a bad request
    private static void GetListMembersDemo(TwitterContext twitterCtx)
            var lists =
                (from list in twitterCtx.List
                 where list.Type == ListType.Members &&
                       list.ScreenName == "JoeMayo" &&
                       list.Slug == "dotnettwittterdevs"
                 select list)
            foreach (var user in lists.Users)
Nov 11, 2011 at 6:07 PM

Hi Vince,

Thanks for letting me know about this bug in the samples.  I'll make it a new Issue.  BTW, the proper query would be:

        private static void GetListMembersDemo(TwitterContext twitterCtx)
            var lists =
                (from list in twitterCtx.List
                 where list.Type == ListType.Members &&
                       list.OwnerScreenName == "JoeMayo" &&
                       list.Slug == "dotnettwittterdevs"
                 select list)

            foreach (var user in lists.Users)
                Console.WriteLine("Member: " + user.Name);



Nov 11, 2011 at 6:07 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.