public interface ListsResources
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 |
createUserListMember(long 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(long listId,
long... userIds)
Adds multiple members to a list, by specifying a comma-separated list of member ids or screen names.
|
UserList |
createUserListMembers(long 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(long 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 |
destroyUserList(long 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(long listId,
long userId)
Removes the specified member from the list.
|
UserList |
destroyUserListMember(long 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(long listId,
long[] userIds)
Removes the specified members from the list.
|
UserList |
destroyUserListMembers(long listId,
java.lang.String[] screenNames)
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(long 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(long listId,
int count,
long cursor)
Returns the members of the specified list.
|
PagableResponseList<User> |
getUserListMembers(long listId,
int count,
long cursor,
boolean skipStatus)
Returns the members of the specified list.
|
PagableResponseList<User> |
getUserListMembers(long listId,
long cursor)
Returns the members of the specified list.
|
PagableResponseList<User> |
getUserListMembers(long ownerId,
java.lang.String slug,
int count,
long cursor)
Returns the members of the specified list.
|
PagableResponseList<User> |
getUserListMembers(long ownerId,
java.lang.String slug,
int count,
long cursor,
boolean skipStatus)
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,
int count,
long cursor)
Returns the members of the specified list.
|
PagableResponseList<User> |
getUserListMembers(java.lang.String ownerScreenName,
java.lang.String slug,
int count,
long cursor,
boolean skipStatus)
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(int count,
long cursor)
List the lists the authenticating user has been added to.
|
PagableResponseList<UserList> |
getUserListMemberships(long cursor)
List the lists the authenticating user has been added to.
|
PagableResponseList<UserList> |
getUserListMemberships(long listMemberId,
int count,
long cursor)
List the lists the specified user has been added to.
|
PagableResponseList<UserList> |
getUserListMemberships(long listMemberId,
int count,
long cursor,
boolean filterToOwnedLists)
List the lists the specified 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,
int count,
long cursor)
List the lists the specified user has been added to.
|
PagableResponseList<UserList> |
getUserListMemberships(java.lang.String listMemberScreenName,
int count,
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(long listOwnerUserId,
boolean reverse)
List the lists of the specified user.
|
ResponseList<UserList> |
getUserLists(java.lang.String listOwnerScreenName)
List the lists of the specified user.
|
ResponseList<UserList> |
getUserLists(java.lang.String listOwnerScreenName,
boolean reverse)
List the lists of the specified user.
|
PagableResponseList<UserList> |
getUserListsOwnerships(long listOwnerId,
int count,
long cursor)
Returns the lists owned by the specified Twitter user.
|
PagableResponseList<UserList> |
getUserListsOwnerships(long listOwnerId,
long cursor)
Returns the lists owned by the specified Twitter user.
|
PagableResponseList<UserList> |
getUserListsOwnerships(java.lang.String listOwnerScreenName,
int count,
long cursor)
Returns the lists owned by the specified Twitter user.
|
PagableResponseList<UserList> |
getUserListsOwnerships(java.lang.String listOwnerScreenName,
long cursor)
Returns the lists owned by the specified Twitter user.
|
ResponseList<Status> |
getUserListStatuses(long 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(long listId,
int count,
long cursor)
Returns the subscribers of the specified list.
|
PagableResponseList<User> |
getUserListSubscribers(long listId,
int count,
long cursor,
boolean skipStatus)
Returns the subscribers of the specified list.
|
PagableResponseList<User> |
getUserListSubscribers(long listId,
long cursor)
Returns the subscribers of the specified list.
|
PagableResponseList<User> |
getUserListSubscribers(long ownerId,
java.lang.String slug,
int count,
long cursor)
Returns the subscribers of the specified list.
|
PagableResponseList<User> |
getUserListSubscribers(long ownerId,
java.lang.String slug,
int count,
long cursor,
boolean skipStatus)
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,
int count,
long cursor)
Returns the subscribers of the specified list.
|
PagableResponseList<User> |
getUserListSubscribers(java.lang.String ownerScreenName,
java.lang.String slug,
int count,
long cursor,
boolean skipStatus)
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(long listSubscriberId,
int count,
long cursor)
List the lists the specified user follows.
|
PagableResponseList<UserList> |
getUserListSubscriptions(long listSubscriberId,
long cursor)
List the lists the specified user follows.
|
PagableResponseList<UserList> |
getUserListSubscriptions(java.lang.String listSubscriberScreenName,
int count,
long cursor)
List the lists the specified user follows.
|
PagableResponseList<UserList> |
getUserListSubscriptions(java.lang.String listSubscriberScreenName,
long cursor)
List the lists the specified user follows.
|
UserList |
showUserList(long 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(long 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(long 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(long 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(java.lang.String listOwnerScreenName, boolean reverse) 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.reverse
- Set this to true if you would like owned lists to be returned firstTwitterException
- 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<UserList> getUserLists(long listOwnerUserId, boolean reverse) throws TwitterException
listOwnerUserId
- The id of the list ownerreverse
- Set this to true if you would like owned lists to be returned firstTwitterException
- when Twitter service or network is unavailableResponseList<Status> getUserListStatuses(long 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(long 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(long 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(long 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(long 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 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 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(int count, long cursor) throws TwitterException
count
- The amount of results to return per page. No more than 1000 results will ever be returned in a single page.cursor
- Breaks the results into pages. 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(long listMemberId, int count, long cursor) throws TwitterException
listMemberId
- The id of the list membercount
- The amount of results to return per page. No more than 1000 results will ever be returned in a single page.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 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, int count, long cursor) throws TwitterException
listMemberScreenName
- The screen name of the list membercount
- The amount of results to return per page. No more than 1000 results will ever be returned in a single page.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 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(java.lang.String listMemberScreenName, int count, long cursor, boolean filterToOwnedLists) throws TwitterException
listMemberScreenName
- The screen name of the list membercount
- The amount of results to return per page. No more than 1000 results will ever be returned in a single page.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.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> getUserListMemberships(long listMemberId, int count, long cursor, boolean filterToOwnedLists) throws TwitterException
listMemberId
- The id of the list membercount
- The amount of results to return per page. No more than 1000 results will ever be returned in a single page.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.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(long 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 listId, int count, long cursor) throws TwitterException
listId
- The id of the listcount
- Specifies the number of results to return per page. The default is 20, with a maximum of 5,000.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 unavailablePagableResponseList<User> getUserListSubscribers(long listId, int count, long cursor, boolean skipStatus) throws TwitterException
listId
- The id of the listcount
- Specifies the number of results to return per page. The default is 20, with a maximum of 5,000.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.skipStatus
- When set to either true, t or 1 statuses will not be included in the returned user objects.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(long ownerId, java.lang.String slug, int count, long cursor) throws TwitterException
ownerId
- The user ID of the user who owns the list being requested by a slug.slug
- slug of the listcount
- Specifies the number of results to return per page. The default is 20, with a maximum of 5,000.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 unavailablePagableResponseList<User> getUserListSubscribers(long ownerId, java.lang.String slug, int count, long cursor, boolean skipStatus) throws TwitterException
ownerId
- The user ID of the user who owns the list being requested by a slug.slug
- slug of the listcount
- Specifies the number of results to return per page. The default is 20, with a maximum of 5,000.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.skipStatus
- When set to either true, t or 1 statuses will not be included in the returned user objects.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 unavailablePagableResponseList<User> getUserListSubscribers(java.lang.String ownerScreenName, java.lang.String slug, int count, long cursor) throws TwitterException
ownerScreenName
- The screen name of the user who owns the list being requested by a slug.slug
- slug of the listcount
- Specifies the number of results to return per page. The default is 20, with a maximum of 5,000.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 unavailablePagableResponseList<User> getUserListSubscribers(java.lang.String ownerScreenName, java.lang.String slug, int count, long cursor, boolean skipStatus) throws TwitterException
ownerScreenName
- The screen name of the user who owns the list being requested by a slug.slug
- slug of the listcount
- Specifies the number of results to return per page. The default is 20, with a maximum of 5,000.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.skipStatus
- When set to either true, t or 1 statuses will not be included in the returned user objects.TwitterException
- when Twitter service or network is unavailableUserList createUserListSubscription(long 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(long 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(long 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(long 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 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 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(long 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
- when Twitter service or network is unavailableUserList 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
- when Twitter service or network is unavailableUserList 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
- when Twitter service or network is unavailableUser showUserListMembership(long 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(long 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 listId, int count, long cursor) throws TwitterException
listId
- The id of the listcount
- Specifies the number of results to return per page. The default is 20, with a maximum of 5,000.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 unavailablePagableResponseList<User> getUserListMembers(long listId, int count, long cursor, boolean skipStatus) throws TwitterException
listId
- The id of the listcount
- Specifies the number of results to return per page. The default is 20, with a maximum of 5,000.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.skipStatus
- When set to either true, t or 1 statuses will not be included in the returned user objects.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(long ownerId, java.lang.String slug, int count, long cursor) throws TwitterException
ownerId
- The user ID of the user who owns the list being requested by a slug.slug
- slug of the listcount
- Specifies the number of results to return per page. The default is 20, with a maximum of 5,000.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 unavailablePagableResponseList<User> getUserListMembers(long ownerId, java.lang.String slug, int count, long cursor, boolean skipStatus) throws TwitterException
ownerId
- The user ID of the user who owns the list being requested by a slug.slug
- slug of the listcount
- Specifies the number of results to return per page. The default is 20, with a maximum of 5,000.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.skipStatus
- When set to either true, t or 1 statuses will not be included in the returned user objects.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 unavailablePagableResponseList<User> getUserListMembers(java.lang.String ownerScreenName, java.lang.String slug, int count, long cursor) throws TwitterException
ownerScreenName
- The screen name of the user who owns the list being requested by a slug.slug
- slug of the listcount
- Specifies the number of results to return per page. The default is 20, with a maximum of 5,000.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 unavailablePagableResponseList<User> getUserListMembers(java.lang.String ownerScreenName, java.lang.String slug, int count, long cursor, boolean skipStatus) throws TwitterException
ownerScreenName
- The screen name of the user who owns the list being requested by a slug.slug
- slug of the listcount
- Specifies the number of results to return per page. The default is 20, with a maximum of 5,000.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.skipStatus
- When set to either true, t or 1 statuses will not be included in the returned user objects.TwitterException
- when Twitter service or network is unavailableUserList createUserListMember(long 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 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 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(long 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(long 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(long 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 listSubscriberScreenName, long cursor) throws TwitterException
listSubscriberScreenName
- The screen name of the list subscribercursor
- 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> getUserListSubscriptions(java.lang.String listSubscriberScreenName, int count, long cursor) throws TwitterException
listSubscriberScreenName
- The screen name of the list subscribercount
- The amount of results to return per page. Defaults to 20. No more than 1000 results will ever be returned in a single page.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 unavailablePagableResponseList<UserList> getUserListSubscriptions(long listSubscriberId, long cursor) throws TwitterException
listSubscriberId
- The ID of the list subscribercursor
- 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> getUserListSubscriptions(long listSubscriberId, int count, long cursor) throws TwitterException
listSubscriberId
- The ID of the list subscribercount
- The amount of results to return per page. Defaults to 20. No more than 1000 results will ever be returned in a single page.cursor
- Breaks the results into pages. 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> getUserListsOwnerships(java.lang.String listOwnerScreenName, long cursor) throws TwitterException
listOwnerScreenName
- The screen name of the list ownercursor
- Breaks the results into pages. Provide a value of -1 to begin paging. Provide values as returned in the response body's next_cursor and previous_cursor attributes to page back and forth in the list. It is recommended to always use cursors when the method supports them. See Using cursors to navigate collections for more information.TwitterException
- when Twitter service or network is unavailablePagableResponseList<UserList> getUserListsOwnerships(java.lang.String listOwnerScreenName, int count, long cursor) throws TwitterException
listOwnerScreenName
- The screen name of the list ownercount
- The amount of results to return per page. Defaults to 20. No more than 1000 results will ever be returned in a single page.cursor
- Breaks the results into pages. Provide a value of -1 to begin paging. Provide values as returned in the response body's next_cursor and previous_cursor attributes to page back and forth in the list. It is recommended to always use cursors when the method supports them. See Using cursors to navigate collections for more information.TwitterException
- when Twitter service or network is unavailablePagableResponseList<UserList> getUserListsOwnerships(long listOwnerId, long cursor) throws TwitterException
listOwnerId
- The id of the list ownercursor
- Breaks the results into pages. Provide a value of -1 to begin paging. Provide values as returned in the response body's next_cursor and previous_cursor attributes to page back and forth in the list. It is recommended to always use cursors when the method supports them. See Using cursors to navigate collections for more information.TwitterException
- when Twitter service or network is unavailablePagableResponseList<UserList> getUserListsOwnerships(long listOwnerId, int count, long cursor) throws TwitterException
listOwnerId
- The id of the list ownercount
- The amount of results to return per page. Defaults to 20. No more than 1000 results will ever be returned in a single page.cursor
- Breaks the results into pages. Provide a value of -1 to begin paging. Provide values as returned in the response body's next_cursor and previous_cursor attributes to page back and forth in the list. It is recommended to always use cursors when the method supports them. See Using cursors to navigate collections for more information.TwitterException
- when Twitter service or network is unavailable