public interface ListMethods
| Modifier and Type | Method and Description |
|---|---|
UserList |
createUserList(java.lang.String listName,
boolean isPublicList,
java.lang.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(java.lang.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(java.lang.String listMemberScreenName,
long cursor)
List the lists the specified user has been added to.
|
PagableResponseList<UserList> |
getUserListMemberships(java.lang.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(java.lang.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(java.lang.String listOwnerScreenName,
long cursor)
List the lists the specified user follows.
|
UserList |
showUserList(int listId)
Show the specified list.
|
UserList |
updateUserList(int listId,
java.lang.String newListName,
boolean isPublicList,
java.lang.String newDescription)
Updates the specified list.
|
UserList createUserList(java.lang.String listName, boolean isPublicList, java.lang.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, java.lang.String newListName, boolean isPublicList, java.lang.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 unavailablePagableResponseList<UserList> getUserLists(java.lang.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 unavailablePagableResponseList<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 unavailableUserList showUserList(int listId) throws TwitterException
listId - The id of the list to showTwitterException - when Twitter service or network is unavailableUserList destroyUserList(int listId) throws TwitterException
listId - The id of the list to deleteTwitterException - when Twitter service or network is unavailableResponseList<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 unavailablePagableResponseList<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 unavailablejava.lang.IllegalStateException - when authorization is not enabledPagableResponseList<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 unavailablePagableResponseList<UserList> getUserListMemberships(java.lang.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 unavailablePagableResponseList<UserList> getUserListMemberships(java.lang.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 unavailablejava.lang.IllegalStateException - when filerToOwnedLists is true but authorization is not enabledPagableResponseList<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 unavailablejava.lang.IllegalStateException - when filerToOwnedLists is true but authorization is not enabledPagableResponseList<UserList> getUserListSubscriptions(java.lang.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 unavailableResponseList<UserList> getAllUserLists(java.lang.String screenName) throws TwitterException
screenName - screen name to look upTwitterException - when Twitter service or network is unavailableResponseList<UserList> getAllUserLists(long userId) throws TwitterException
userId - user id to look upTwitterException - when Twitter service or network is unavailable