working with Lists?

5 views
Skip to first unread message

George Ludwig

unread,
May 7, 2011, 8:15:56 PM5/7/11
to jt...@googlegroups.com
Hi all,

I'm trying to do a couple of things with lists that have been challenging...I've looked through the API, and currently the necessary functionality for the following appears to be lacking.

1. Determine if I have listed a user, and which one they are on
2. Determine if a user has listed me
3. Obtaining a set of all lists where i am listed

Is there is a way to do it that I've missed?

It would be great if JTwitter offered something along these lines:

Set<TwitterList> Twitter.User.getListed(); // returns the set of lists that include the authenticated user 
Set<TwitterList> Twitter.User.getListed(Twitter.User user); // returns the set of lists that include the specified user 
Twitter.User TwitterList.getOwner(); // returns the user that owns this list

Cheers,

George

Daniel Winterstein

unread,
May 8, 2011, 6:26:12 AM5/8/11
to jt...@googlegroups.com
Hi George,

Those look like good additions. I've added the following methods in version 2.1:

TwitterList.getOwner()
Twitter.getListsContainingMe()
Twitter.getListsContaining(screenName, justMyLists)

Which you can download from http://www.winterwell.com/software/jtwitter.php
There's documentation in the source code & javadoc.

Best regards,
-Daniel

--
--------------------------------------------------
Daniel Winterstein
Edinburgh
http://winterwell.com   http://soda.sh

George Ludwig

unread,
May 8, 2011, 4:08:39 PM5/8/11
to jt...@googlegroups.com
Daniel,

Thanks so much for the rapid response, it's really helping me out!

Best,

George
Reply all
Reply to author
Forward
0 new messages