|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ListMethods
| Method Summary | |
|---|---|
UserList |
createUserList(String listName,
boolean isPublicList,
String description)
Creates a new list for the authenticated user. |
UserList |
destroyUserList(int listId)
Deletes the specified list. |
ResponseList<UserList> |
getAllUserLists(long userId)
Returns all lists the authenticating or specified user subscribes to, including their own. |
ResponseList<UserList> |
getAllUserLists(String screenName)
Returns all lists the authenticating or specified user subscribes to, including their own. |
PagableResponseList<UserList> |
getUserListMemberships(long cursor)
List the lists the authenticating user has been added to. |
PagableResponseList<UserList> |
getUserListMemberships(long listMemberId,
long cursor)
List the lists the specified user has been added to. |
PagableResponseList<UserList> |
getUserListMemberships(long listMemberId,
long cursor,
boolean filterToOwnedLists)
List the lists the specified user has been added to. |
PagableResponseList<UserList> |
getUserListMemberships(String listMemberScreenName,
long cursor)
List the lists the specified user has been added to. |
PagableResponseList<UserList> |
getUserListMemberships(String listMemberScreenName,
long cursor,
boolean filterToOwnedLists)
List the lists the specified user has been added to. |
PagableResponseList<UserList> |
getUserLists(long listOwnerUserId,
long cursor)
List the lists of the specified user. |
PagableResponseList<UserList> |
getUserLists(String listOwnerScreenName,
long cursor)
List the lists of the specified user. |
ResponseList<Status> |
getUserListStatuses(int listId,
Paging paging)
Show tweet timeline for members of the specified list. |
PagableResponseList<UserList> |
getUserListSubscriptions(String listOwnerScreenName,
long cursor)
List the lists the specified user follows. |
UserList |
showUserList(int listId)
Show the specified list. |
UserList |
updateUserList(int listId,
String newListName,
boolean isPublicList,
String newDescription)
Updates the specified list. |
| Method Detail |
|---|
UserList createUserList(String listName,
boolean isPublicList,
String description)
throws TwitterException
listName - The name of the list you are creating. Required.isPublicList - set true if you wish to make a public listdescription - The description of the list you are creating. Optional.
TwitterException - when Twitter service or network is unavailable, or the authenticated user already has 20 lists(TwitterException.getStatusCode() == 403).
UserList updateUserList(int listId,
String newListName,
boolean isPublicList,
String newDescription)
throws TwitterException
listId - The id of the list to update.newListName - What you'd like to change the list's name to.isPublicList - Whether your list is public or private. Optional. Values can be public or private. Lists are public by default if no mode is specified.newDescription - What you'd like to change the list description to.
TwitterException - when Twitter service or network is unavailable
PagableResponseList<UserList> getUserLists(String listOwnerScreenName,
long cursor)
throws TwitterException
listOwnerScreenName - The screen name of the list ownercursor - Breaks the results into pages. A single page contains 20 lists. Provide a value of -1 to begin paging. Provide values as returned to in the response body's next_cursor and previous_cursor attributes to page back and forth in the list.
TwitterException - when Twitter service or network is unavailable
PagableResponseList<UserList> getUserLists(long listOwnerUserId,
long cursor)
throws TwitterException
listOwnerUserId - The id of the list ownercursor - Breaks the results into pages. A single page contains 20 lists. Provide a value of -1 to begin paging. Provide values as returned to in the response body's next_cursor and previous_cursor attributes to page back and forth in the list.
TwitterException - when Twitter service or network is unavailable
UserList showUserList(int listId)
throws TwitterException
listId - The id of the list to show
TwitterException - when Twitter service or network is unavailable
UserList destroyUserList(int listId)
throws TwitterException
listId - The id of the list to delete
TwitterException - when Twitter service or network is unavailable
ResponseList<Status> getUserListStatuses(int listId,
Paging paging)
throws TwitterException
listId - The id of the listpaging - controls pagination. Supports since_id, max_id, count and page parameters.
TwitterException - when Twitter service or network is unavailable
PagableResponseList<UserList> getUserListMemberships(long cursor)
throws TwitterException
cursor - Breaks the results into pages. A single page contains 20 lists. Provide a value of -1 to begin paging. Provide values as returned to in the response body's next_cursor and previous_cursor attributes to page back and forth in the list.
TwitterException - when Twitter service or network is unavailable
IllegalStateException - when authorization is not enabled
PagableResponseList<UserList> getUserListMemberships(long listMemberId,
long cursor)
throws TwitterException
listMemberId - The id of the list membercursor - Breaks the results into pages. A single page contains 20 lists. Provide a value of -1 to begin paging. Provide values as returned to in the response body's next_cursor and previous_cursor attributes to page back and forth in the list.
TwitterException - when Twitter service or network is unavailable
PagableResponseList<UserList> getUserListMemberships(String listMemberScreenName,
long cursor)
throws TwitterException
listMemberScreenName - The screen name of the list membercursor - Breaks the results into pages. A single page contains 20 lists. Provide a value of -1 to begin paging. Provide values as returned to in the response body's next_cursor and previous_cursor attributes to page back and forth in the list.
TwitterException - when Twitter service or network is unavailable
PagableResponseList<UserList> getUserListMemberships(String listMemberScreenName,
long cursor,
boolean filterToOwnedLists)
throws TwitterException
listMemberScreenName - The screen name of the list membercursor - Breaks the results into pages. A single page contains 20 lists. Provide a value of -1 to begin paging. Provide values as returned to in the response body's next_cursor and previous_cursor attributes to page back and forth in the list.filterToOwnedLists - Whether to return just lists the authenticating user owns, and the user represented by listMemberScreenName is a member of.
TwitterException - when Twitter service or network is unavailable
IllegalStateException - when filerToOwnedLists is true but authorization is not enabled
PagableResponseList<UserList> getUserListMemberships(long listMemberId,
long cursor,
boolean filterToOwnedLists)
throws TwitterException
listMemberId - The id of the list membercursor - Breaks the results into pages. A single page contains 20 lists. Provide a value of -1 to begin paging. Provide values as returned to in the response body's next_cursor and previous_cursor attributes to page back and forth in the list.filterToOwnedLists - Whether to return just lists the authenticating user owns, and the user represented by listMemberId is a member of.
TwitterException - when Twitter service or network is unavailable
IllegalStateException - when filerToOwnedLists is true but authorization is not enabled
PagableResponseList<UserList> getUserListSubscriptions(String listOwnerScreenName,
long cursor)
throws TwitterException
listOwnerScreenName - The screen name of the list ownercursor - Breaks the results into pages. A single page contains 20 lists. Provide a value of -1 to begin paging. Provide values as returned to in the response body's next_cursor and previous_cursor attributes to page back and forth in the list.
TwitterException - when Twitter service or network is unavailable
ResponseList<UserList> getAllUserLists(String screenName)
throws TwitterException
screenName - screen name to look up
TwitterException - when Twitter service or network is unavailable
ResponseList<UserList> getAllUserLists(long userId)
throws TwitterException
userId - user id to look up
TwitterException - when Twitter service or network is unavailable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||