Home > DeveloperSection > Forums > Tweetsharp - Getting lists for authenticated user
Takeshi Okada
Takeshi Okada

Total Post:89

Points:629
Posted on    September-03-2013 9:01 AM

 Twitter API Twitter API 
Ratings:


 1 Reply(s)
 993  View(s)
Rate this:

How can i get the lists for the authenticated user & the lists that user follows



Sumit Kesarwani

Total Post:378

Points:2694
Posted on    September-03-2013 9:12 AM

Hi Takeshi,

This should work:

    var service = new TwitterService();

    service.AuthenticateWith(<your consumerKey>, <your consumerSecret>, <your token>, <your tokensecret>);

    var listsUsersLists = service.ListListsFor(listOwnerScreenName);

    var listsUserIsIn = service.ListListMembershipsFor(listOwnerScreenName);

    var subscribedToLists = service.ListListSubscriptionsFor(subscriberName);

As long as the authenticated username is the same as the name of the lists you are trying to return, private lists will be included too.


Don't want to miss updates? Please click the below button!

Follow MindStick