public interface ListsResources
Modifier and Type | Method and Description |
---|---|
UserList |
addUserListMember(int listId,
long userId)
Deprecated.
use
createUserListMember(int, long) } instead |
UserList |
addUserListMember(long ownerId,
java.lang.String slug,
long userId)
Deprecated.
use
createUserListMember(long, String, long) instead |
UserList |
addUserListMembers(int listId,
long[] userIds)
Deprecated.
use
createUserListMembers(int, long[]) instead |
UserList |
addUserListMembers(int listId,
java.lang.String[] screenNames)
Deprecated.
use
createUserListMembers(int, String[]) instead |
UserList |
addUserListMembers(long ownerId,
java.lang.String slug,
long[] userIds)
Deprecated.
use
createUserListMembers(int, long[]) instead |
UserList |
addUserListMembers(long ownerId,
java.lang.String slug,
java.lang.String[] screenNames)
Deprecated.
use
createUserListMembers(int, String[]) instead |
UserList |
createUserList(java.lang.String listName,
boolean isPublicList,
java.lang.String description)
Creates a new list for the authenticated user.
|
UserList |
createUserListMember(int listId,
long userId)
Adds a member to a list.
|
UserList |
createUserListMember(long ownerId,
java.lang.String slug,
long userId)
Adds a member to a list.
|
UserList |
createUserListMember(java.lang.String ownerScreenName,
java.lang.String slug,
long userId)
Adds a member to a list.
|
UserList |
createUserListMembers(int listId,
long[] userIds)
Adds multiple members to a list, by specifying a comma-separated list of member ids or screen names.
|
UserList |
createUserListMembers(int listId,
java.lang.String[] screenNames)
Adds multiple members to a list, by specifying a comma-separated list of member ids or screen names.
|
UserList |
createUserListMembers(long ownerId,
java.lang.String slug,
long[] userIds)
Adds multiple members to a list, by specifying a comma-separated list of member ids or screen names.
|
UserList |
createUserListMembers(long ownerId,
java.lang.String slug,
java.lang.String[] screenNames)
Adds multiple members to a list, by specifying a comma-separated list of member ids or screen names.
|
UserList |
createUserListMembers(java.lang.String ownerScreenName,
java.lang.String slug,
long[] userIds)
Adds multiple members to a list, by specifying a comma-separated list of member ids or screen names.
|
UserList |
createUserListMembers(java.lang.String ownerScreenName,
java.lang.String slug,
java.lang.String[] screenNames)
Adds multiple members to a list, by specifying a comma-separated list of member ids or screen names.
|
UserList |
createUserListSubscription(int listId)
Make the authenticated user follow the specified list.
|
UserList |
createUserListSubscription(long ownerId,
java.lang.String slug)
Make the authenticated user follow the specified list.
|
UserList |
createUserListSubscription(java.lang.String ownerScreenName,
java.lang.String slug)
Make the authenticated user follow the specified list.
|
UserList |
deleteUserListMember(int listId,
long userId)
Deprecated.
use
destroyUserList(int) instead |
UserList |
deleteUserListMember(long ownerId,
java.lang.String slug,
long userId)
Deprecated.
use
destroyUserListMember(long, String, long) List(int)} instead |
UserList |
destroyUserList(int listId)
Deletes the specified list.
|
UserList |
destroyUserList(long ownerId,
java.lang.String slug)
Deletes the specified list.
|
UserList |
destroyUserList(java.lang.String ownerScreenName,
java.lang.String slug)
Deletes the specified list.
|
UserList |
destroyUserListMember(int listId,
long userId)
Removes the specified member from the list.
|
UserList |
destroyUserListMember(int listId,
java.lang.String screenName)
Removes the specified members from the list.
|
UserList |
destroyUserListMember(long ownerId,
java.lang.String slug,
long userId)
Removes the specified member from the list.
|
UserList |
destroyUserListMember(java.lang.String ownerScreenName,
java.lang.String slug,
long userId)
Removes the specified member from the list.
|
UserList |
destroyUserListMembers(int listId,
long[] userIds)
Removes the specified members from the list.
|
UserList |
destroyUserListMembers(int listId,
java.lang.String[] screenNames)
Removes the specified members from the list.
|
UserList |
destroyUserListMembers(java.lang.String ownerScreenName,
java.lang.String slug,
long[] userIds)
Removes the specified members from the list.
|
UserList |
destroyUserListMembers(java.lang.String ownerScreenName,
java.lang.String slug,
java.lang.String[] screenNames)
Removes the specified members from the list.
|
UserList |
destroyUserListSubscription(int listId)
Unsubscribes the authenticated user form the specified list.
|
UserList |
destroyUserListSubscription(long ownerId,
java.lang.String slug)
Unsubscribes the authenticated user form the specified list.
|
UserList |
destroyUserListSubscription(java.lang.String ownerScreenName,
java.lang.String slug)
Unsubscribes the authenticated user form the specified list.
|
PagableResponseList<User> |
getUserListMembers(int listId,
long cursor)
Returns the members of the specified list.
|
PagableResponseList<User> |
getUserListMembers(long ownerId,
java.lang.String slug,
long cursor)
Returns the members of the specified list.
|
PagableResponseList<User> |
getUserListMembers(java.lang.String ownerScreenName,
java.lang.String slug,
long cursor)
Returns the members of the specified list.
|
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.
|
ResponseList<UserList> |
getUserLists(long listOwnerUserId)
List the lists of the specified user.
|
ResponseList<UserList> |
getUserLists(java.lang.String listOwnerScreenName)
List the lists of the specified user.
|
ResponseList<Status> |
getUserListStatuses(int listId,
Paging paging)
Show tweet timeline for members of the specified list.
|
ResponseList<Status> |
getUserListStatuses(long ownerId,
java.lang.String slug,
Paging paging)
Show tweet timeline for members of the specified list.
|
ResponseList<Status> |
getUserListStatuses(java.lang.String ownerScreenName,
java.lang.String slug,
Paging paging)
Show tweet timeline for members of the specified list.
|
PagableResponseList<User> |
getUserListSubscribers(int listId,
long cursor)
Returns the subscribers of the specified list.
|
PagableResponseList<User> |
getUserListSubscribers(long ownerId,
java.lang.String slug,
long cursor)
Returns the subscribers of the specified list.
|
PagableResponseList<User> |
getUserListSubscribers(java.lang.String ownerScreenName,
java.lang.String slug,
long cursor)
Returns the subscribers 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 |
showUserList(long ownerId,
java.lang.String slug)
Show the specified list.
|
UserList |
showUserList(java.lang.String ownerScreenName,
java.lang.String slug)
Show the specified list.
|
User |
showUserListMembership(int listId,
long userId)
Check if a user is a member of the specified list.
This method calls https://api.twitter.com/1.1/lists/members/show.json |
User |
showUserListMembership(long ownerId,
java.lang.String slug,
long userId)
Check if a user is a member of the specified list.
This method calls https://api.twitter.com/1.1/lists/members/show.json |
User |
showUserListMembership(java.lang.String ownerScreenName,
java.lang.String slug,
long userId)
Check if a user is a member of the specified list.
This method calls https://api.twitter.com/1.1/lists/members/show.json |
User |
showUserListSubscription(int listId,
long userId)
Check if the specified user is a subscriber of the specified list.
|
User |
showUserListSubscription(long ownerId,
java.lang.String slug,
long userId)
Check if the specified user is a subscriber of the specified list.
|
User |
showUserListSubscription(java.lang.String ownerScreenName,
java.lang.String slug,
long userId)
Check if the specified user is a subscriber of the specified list.
|
UserList |
updateUserList(int listId,
java.lang.String newListName,
boolean isPublicList,
java.lang.String newDescription)
Updates the specified list.
|
UserList |
updateUserList(long ownerId,
java.lang.String slug,
java.lang.String newListName,
boolean isPublicList,
java.lang.String newDescription)
Updates the specified list.
|
UserList |
updateUserList(java.lang.String ownerScreenName,
java.lang.String slug,
java.lang.String newListName,
boolean isPublicList,
java.lang.String newDescription)
Updates the specified list.
|
ResponseList<UserList> getUserLists(java.lang.String listOwnerScreenName) throws TwitterException
listOwnerScreenName
- The screen name of the list owner
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> getUserLists(long listOwnerUserId) throws TwitterException
listOwnerUserId
- The id of the list ownerTwitterException
- 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 unavailableResponseList<Status> getUserListStatuses(long ownerId, java.lang.String slug, Paging paging) throws TwitterException
ownerId
- The user ID of the user who owns the list being requested by a slug.slug
- slug of the listpaging
- controls pagination. Supports since_id, max_id, count and page parameters.TwitterException
- when Twitter service or network is unavailableResponseList<Status> getUserListStatuses(java.lang.String ownerScreenName, java.lang.String slug, Paging paging) throws TwitterException
ownerScreenName
- The screen name of the user who owns the list being requested by a slug.slug
- slug of the listpaging
- controls pagination. Supports since_id, max_id, count and page parameters.TwitterException
- when Twitter service or network is unavailableUserList destroyUserListMember(int listId, long userId) throws TwitterException
listId
- The id of the list.userId
- The screen name of the member you wish to remove from the list.TwitterException
- when Twitter service or network is unavailableUserList destroyUserListMember(int listId, java.lang.String screenName) throws TwitterException
listId
- The id of the list.screenName
- The screen name of the member you wish to remove from the list.TwitterException
- when Twitter service or network is unavailableUserList destroyUserListMembers(int listId, java.lang.String[] screenNames) throws TwitterException
listId
- The id of the list.screenNames
- The screen names of the members you wish to remove from the list.TwitterException
- when Twitter service or network is unavailableUserList destroyUserListMembers(int listId, long[] userIds) throws TwitterException
listId
- The id of the list.userIds
- The array of ids of the user to add as member of the list. up to 100 are allowed in a single request.TwitterException
- when Twitter service or network is unavailableUserList destroyUserListMembers(java.lang.String ownerScreenName, java.lang.String slug, java.lang.String[] screenNames) throws TwitterException
ownerScreenName
- The screen name of the user who owns the list being requested by a slug.slug
- slug of the listscreenNames
- The screen names of the members you wish to remove from the list.TwitterException
- when Twitter service or network is unavailableUserList destroyUserListMembers(java.lang.String ownerScreenName, java.lang.String slug, long[] userIds) throws TwitterException
ownerScreenName
- The screen name of the user who owns the list being requested by a slug.slug
- slug of the listuserIds
- The array of ids of the user to add as member of the list. up to 100 are allowed in a single request.TwitterException
- when Twitter service or network is unavailableUserList deleteUserListMember(int listId, long userId) throws TwitterException
destroyUserList(int)
insteadTwitterException
UserList destroyUserListMember(long ownerId, java.lang.String slug, long userId) throws TwitterException
ownerId
- The user ID of the user who owns the list being requested by a slug.slug
- slug of the listuserId
- The screen name of the member you wish to remove from the list.TwitterException
- when Twitter service or network is unavailableUserList deleteUserListMember(long ownerId, java.lang.String slug, long userId) throws TwitterException
destroyUserListMember(long, String, long)
List(int)} insteadTwitterException
UserList destroyUserListMember(java.lang.String ownerScreenName, java.lang.String slug, long userId) throws TwitterException
ownerScreenName
- The screen name of the user who owns the list being requested by a slug.slug
- slug of the listuserId
- The screen name of the member you wish to remove from the list.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<User> getUserListSubscribers(int listId, long cursor) throws TwitterException
listId
- The id of the listcursor
- 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<User> getUserListSubscribers(long ownerId, java.lang.String slug, long cursor) throws TwitterException
ownerId
- The user ID of the user who owns the list being requested by a slug.slug
- slug of the listcursor
- 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<User> getUserListSubscribers(java.lang.String ownerScreenName, java.lang.String slug, long cursor) throws TwitterException
ownerScreenName
- The screen name of the user who owns the list being requested by a slug.slug
- slug of the listcursor
- 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 createUserListSubscription(int listId) throws TwitterException
listId
- The id of the list.TwitterException
- when Twitter service or network is unavailableUserList createUserListSubscription(long ownerId, java.lang.String slug) throws TwitterException
ownerId
- The user ID of the user who owns the list being requested by a slug.slug
- slug of the listTwitterException
- when Twitter service or network is unavailableUserList createUserListSubscription(java.lang.String ownerScreenName, java.lang.String slug) throws TwitterException
ownerScreenName
- The screen name of the user who owns the list being requested by a slug.slug
- slug of the listTwitterException
- when Twitter service or network is unavailableUser showUserListSubscription(int listId, long userId) throws TwitterException
listId
- The id of the list.userId
- The id of the user who you want to know is a member or not of the specified list.TwitterException
- when Twitter service or network is unavailable
, or the user is not a member of the specified list(TwitterException.getStatusCode() returns 404 in that case.)User showUserListSubscription(long ownerId, java.lang.String slug, long userId) throws TwitterException
ownerId
- The user ID of the user who owns the list being requested by a slug.slug
- slug of the listuserId
- The id of the user who you want to know is a member or not of the specified list.TwitterException
- when Twitter service or network is unavailable
, or the user is not a member of the specified list(TwitterException.getStatusCode() returns 404 in that case.)User showUserListSubscription(java.lang.String ownerScreenName, java.lang.String slug, long userId) throws TwitterException
ownerScreenName
- The screen name of the user who owns the list being requested by a slug.slug
- slug of the listuserId
- The id of the user who you want to know is a member or not of the specified list.TwitterException
- when Twitter service or network is unavailable
, or the user is not a member of the specified list(TwitterException.getStatusCode() returns 404 in that case.)UserList destroyUserListSubscription(int listId) throws TwitterException
listId
- The id of the list.TwitterException
- when Twitter service or network is unavailableUserList destroyUserListSubscription(long ownerId, java.lang.String slug) throws TwitterException
ownerId
- The user ID of the user who owns the list being requested by a slug.slug
- slug of the listTwitterException
- when Twitter service or network is unavailableUserList destroyUserListSubscription(java.lang.String ownerScreenName, java.lang.String slug) throws TwitterException
ownerScreenName
- The screen name of the user who owns the list being requested by a slug.slug
- slug of the listTwitterException
- when Twitter service or network is unavailableUserList createUserListMembers(int listId, long[] userIds) throws TwitterException
listId
- The id of the list.userIds
- The array of ids of the user to add as member of the list. up to 100 are allowed in a single request.TwitterException
- when Twitter service or network is unavailableUserList addUserListMembers(int listId, long[] userIds) throws TwitterException
createUserListMembers(int, long[])
insteadTwitterException
UserList createUserListMembers(long ownerId, java.lang.String slug, long[] userIds) throws TwitterException
ownerId
- The user ID of the user who owns the list being requested by a slug.slug
- slug of the listuserIds
- The array of ids of the user to add as member of the list. up to 100 are allowed in a single request.TwitterException
- when Twitter service or network is unavailableUserList addUserListMembers(long ownerId, java.lang.String slug, long[] userIds) throws TwitterException
createUserListMembers(int, long[])
insteadTwitterException
UserList createUserListMembers(java.lang.String ownerScreenName, java.lang.String slug, long[] userIds) throws TwitterException
ownerScreenName
- The screen name of the user who owns the list being requested by a slug.slug
- slug of the listuserIds
- The array of ids of the user to add as member of the list. up to 100 are allowed in a single request.TwitterException
- when Twitter service or network is unavailableUserList createUserListMembers(int listId, java.lang.String[] screenNames) throws TwitterException
listId
- The id of the list.screenNames
- The array of screen names of the user to add as member of the list. up to 100 are allowed in a single request.TwitterException
UserList addUserListMembers(int listId, java.lang.String[] screenNames) throws TwitterException
createUserListMembers(int, String[])
insteadTwitterException
UserList createUserListMembers(long ownerId, java.lang.String slug, java.lang.String[] screenNames) throws TwitterException
ownerId
- The user ID of the user who owns the list being requested by a slug.slug
- slug of the listscreenNames
- The array of screen names of the user to add as member of the list. up to 100 are allowed in a single request.TwitterException
UserList addUserListMembers(long ownerId, java.lang.String slug, java.lang.String[] screenNames) throws TwitterException
createUserListMembers(int, String[])
insteadTwitterException
UserList createUserListMembers(java.lang.String ownerScreenName, java.lang.String slug, java.lang.String[] screenNames) throws TwitterException
ownerScreenName
- The screen name of the user who owns the list being requested by a slug.slug
- slug of the listscreenNames
- The array of screen names of the user to add as member of the list. up to 100 are allowed in a single request.TwitterException
User showUserListMembership(int listId, long userId) throws TwitterException
listId
- The id of the list.userId
- The id of the user who you want to know is a member or not of the specified list.TwitterException
- when Twitter service or network is unavailable
, or the user is not a member of the specified list(TwitterException.getStatusCode() returns 404 in that case.)User showUserListMembership(long ownerId, java.lang.String slug, long userId) throws TwitterException
ownerId
- The user ID of the user who owns the list being requested by a slug.slug
- slug of the listuserId
- The id of the user who you want to know is a member or not of the specified list.TwitterException
- when Twitter service or network is unavailable
, or the user is not a member of the specified list(TwitterException.getStatusCode() returns 404 in that case.)User showUserListMembership(java.lang.String ownerScreenName, java.lang.String slug, long userId) throws TwitterException
ownerScreenName
- Id The user ID of the user who owns the list being requested by a slug.slug
- slug of the listuserId
- The id of the user who you want to know is a member or not of the specified list.TwitterException
- when Twitter service or network is unavailable
, or the user is not a member of the specified list(TwitterException.getStatusCode() returns 404 in that case.)PagableResponseList<User> getUserListMembers(int listId, long cursor) throws TwitterException
listId
- The id of the listcursor
- 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<User> getUserListMembers(long ownerId, java.lang.String slug, long cursor) throws TwitterException
ownerId
- The user ID of the user who owns the list being requested by a slug.slug
- slug of the listcursor
- 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<User> getUserListMembers(java.lang.String ownerScreenName, java.lang.String slug, long cursor) throws TwitterException
ownerScreenName
- The screen name of the user who owns the list being requested by a slug.slug
- slug of the listcursor
- 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 createUserListMember(int listId, long userId) throws TwitterException
listId
- The id of the list.userId
- The id of the user to add as a member of the list.TwitterException
- when Twitter service or network is unavailableUserList addUserListMember(int listId, long userId) throws TwitterException
createUserListMember(int, long)
} insteadTwitterException
UserList createUserListMember(long ownerId, java.lang.String slug, long userId) throws TwitterException
ownerId
- The user ID of the user who owns the list being requested by a slug.slug
- slug of the listuserId
- The id of the user to add as a member of the list.TwitterException
- when Twitter service or network is unavailableUserList addUserListMember(long ownerId, java.lang.String slug, long userId) throws TwitterException
createUserListMember(long, String, long)
insteadTwitterException
UserList createUserListMember(java.lang.String ownerScreenName, java.lang.String slug, long userId) throws TwitterException
ownerScreenName
- The screen name of the user who owns the list being requested by a slug.slug
- slug of the listuserId
- The id of the user to add as a member of the list.TwitterException
- 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 unavailableUserList destroyUserList(long ownerId, java.lang.String slug) throws TwitterException
ownerId
- The user ID of the user who owns the list being requested by a slug.slug
- slug of the listTwitterException
- when Twitter service or network is unavailableUserList destroyUserList(java.lang.String ownerScreenName, java.lang.String slug) throws TwitterException
ownerScreenName
- The screen name of the user who owns the list being requested by a slug.slug
- slug of the listTwitterException
- when Twitter service or network is unavailableUserList 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 unavailableUserList updateUserList(long ownerId, java.lang.String slug, java.lang.String newListName, boolean isPublicList, java.lang.String newDescription) throws TwitterException
ownerId
- The user ID of the user who owns the list being requested by a slug.slug
- slug of the listnewListName
- 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 unavailableUserList updateUserList(java.lang.String ownerScreenName, java.lang.String slug, java.lang.String newListName, boolean isPublicList, java.lang.String newDescription) throws TwitterException
ownerScreenName
- The screen name of the user who owns the list being requested by a slug.slug
- slug of the listnewListName
- 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 unavailableUserList 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 showUserList(int listId) throws TwitterException
listId
- The id of the list to showTwitterException
- when Twitter service or network is unavailableUserList showUserList(long ownerId, java.lang.String slug) throws TwitterException
ownerId
- The user ID of the user who owns the list being requested by a slug.slug
- slug of the listTwitterException
- when Twitter service or network is unavailableUserList showUserList(java.lang.String ownerScreenName, java.lang.String slug) throws TwitterException
ownerScreenName
- The screen name of the user who owns the list being requested by a slug.slug
- slug of the listTwitterException
- when Twitter service or network is unavailablePagableResponseList<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 unavailable