public interface ListsResourcesAsync
| Modifier and Type | Method and Description |
|---|---|
void |
addUserListMember(int listId,
long userId)
Deprecated.
use
createUserListMember(int, long) instead |
void |
addUserListMember(long ownerId,
java.lang.String slug,
long userId)
Deprecated.
use
createUserListMember(long, String, long) instead |
void |
addUserListMembers(int listId,
long[] userIds)
Deprecated.
use
createUserListMembers(int, long[]) instead |
void |
addUserListMembers(int listId,
java.lang.String[] screenNames)
Deprecated.
use
createUserListMembers(int, String[]) instead |
void |
addUserListMembers(long ownerId,
java.lang.String slug,
long[] userIds)
Deprecated.
use
createUserListMembers(int, long[]) instead |
void |
addUserListMembers(long ownerId,
java.lang.String slug,
java.lang.String[] screenNames)
Deprecated.
use
createUserListMembers(int, String[]) instead |
void |
createUserList(java.lang.String listName,
boolean isPublicList,
java.lang.String description)
Creates a new list for the authenticated user.
|
void |
createUserListMember(int listId,
long userId)
Adds a member to a list.
|
void |
createUserListMember(long ownerId,
java.lang.String slug,
long userId)
Adds a member to a list.
|
void |
createUserListMembers(int listId,
long[] userIds)
Adds multiple members to a list, by specifying a comma-separated list of member ids or screen names.
|
void |
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.
|
void |
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.
|
void |
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.
|
void |
createUserListSubscription(int listId)
Make the authenticated user follow the specified list.
|
void |
createUserListSubscription(long ownerId,
java.lang.String slug)
Make the authenticated user follow the specified list.
|
void |
deleteUserListMember(int listId,
long userId)
Deprecated.
use
destroyUserListMember(int, long) instead |
void |
deleteUserListMember(long ownerId,
java.lang.String slug,
long userId)
Deprecated.
use
destroyUserListMember(int, long) instead |
void |
destroyUserList(int listId)
Deletes the specified list.
|
void |
destroyUserList(long ownerId,
java.lang.String slug)
Deletes the specified list.
|
void |
destroyUserListMember(int listId,
long userId)
Removes the specified member from the list.
|
void |
destroyUserListMember(long ownerId,
java.lang.String slug,
long userId)
Removes the specified member from the list.
|
void |
destroyUserListSubscription(int listId)
Unsubscribes the authenticated user form the specified list.
|
void |
destroyUserListSubscription(long ownerId,
java.lang.String slug)
Unsubscribes the authenticated user form the specified list.
|
void |
getUserListMembers(int listId,
long cursor)
Returns the members of the specified list.
|
void |
getUserListMembers(long ownerId,
java.lang.String slug,
long cursor)
Returns the members of the specified list.
|
void |
getUserListMemberships(long cursor)
List the lists the authenticating user has been added to.
|
void |
getUserListMemberships(long listMemberId,
long cursor)
List the lists the specified user has been added to.
|
void |
getUserListMemberships(long listMemberId,
long cursor,
boolean filterToOwnedLists)
List the lists the specified user has been added to.
|
void |
getUserListMemberships(java.lang.String listMemberScreenName,
long cursor)
List the lists the specified user has been added to.
|
void |
getUserListMemberships(java.lang.String listMemberScreenName,
long cursor,
boolean filterToOwnedLists)
List the lists the specified user has been added to.
|
void |
getUserLists(long listOwnerUserId)
List the lists of the specified user.
|
void |
getUserLists(java.lang.String listOwnerScreenName)
List the lists of the specified user.
|
void |
getUserListStatuses(int listId,
Paging paging)
Show tweet timeline for members of the specified list.
|
void |
getUserListStatuses(long ownerId,
java.lang.String slug,
Paging paging)
Show tweet timeline for members of the specified list.
|
void |
getUserListSubscribers(int listId,
long cursor)
Returns the subscribers of the specified list.
|
void |
getUserListSubscribers(long ownerId,
java.lang.String slug,
long cursor)
Returns the subscribers of the specified list.
|
void |
getUserListSubscriptions(java.lang.String listOwnerScreenName,
long cursor)
List the lists the specified user follows.
|
void |
showUserList(int listId)
Show the specified list.
|
void |
showUserList(long ownerId,
java.lang.String slug)
Show the specified list.
|
void |
showUserListMembership(int listId,
long userId)
Check if a user is a member of the specified list.
This method calls http://api.twitter.com/1.1/lists/members/show.json |
void |
showUserListMembership(long ownerId,
java.lang.String slug,
long userId)
Check if a user is a member of the specified list.
This method calls http://api.twitter.com/1.1/lists/members/show.json |
void |
showUserListSubscription(int listId,
long userId)
Check if the specified user is a subscriber of the specified list.
|
void |
showUserListSubscription(long ownerId,
java.lang.String slug,
long userId)
Check if the specified user is a subscriber of the specified list.
|
void |
updateUserList(int listId,
java.lang.String newListName,
boolean isPublicList,
java.lang.String newDescription)
Updates the specified list.
|
void |
updateUserList(long ownerId,
java.lang.String slug,
java.lang.String newListName,
boolean isPublicList,
java.lang.String newDescription)
Updates the specified list.
|
void getUserLists(java.lang.String listOwnerScreenName)
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.void getUserLists(long listOwnerUserId)
listOwnerUserId - The id of the list owner
returned to in the response body's next_cursor and previous_cursor attributes to page back and forth in the list.void getUserListStatuses(int listId,
Paging paging)
listId - The id of the listpaging - controls pagination. Supports since_id, max_id, count and page parameters.void getUserListStatuses(long ownerId,
java.lang.String slug,
Paging paging)
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.void destroyUserListMember(int listId,
long userId)
listId - The id of the list.userId - The screen name of the member you wish to remove from the list.void deleteUserListMember(int listId,
long userId)
destroyUserListMember(int, long) insteadvoid destroyUserListMember(long ownerId,
java.lang.String slug,
long userId)
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.void deleteUserListMember(long ownerId,
java.lang.String slug,
long userId)
destroyUserListMember(int, long) insteadvoid getUserListMemberships(long cursor)
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.void getUserListMemberships(long listMemberId,
long cursor)
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.void getUserListMemberships(java.lang.String listMemberScreenName,
long cursor)
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.void getUserListMemberships(long listMemberId,
long cursor,
boolean filterToOwnedLists)
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 listMemberScreenName is a member of.void getUserListMemberships(java.lang.String listMemberScreenName,
long cursor,
boolean filterToOwnedLists)
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.void getUserListSubscribers(int listId,
long cursor)
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.void getUserListSubscribers(long ownerId,
java.lang.String slug,
long cursor)
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.void createUserListSubscription(int listId)
listId - The id of the list.void createUserListSubscription(long ownerId,
java.lang.String slug)
ownerId - The user ID of the user who owns the list being requested by a slug.slug - slug of the listvoid showUserListSubscription(int listId,
long userId)
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.
, or the user is not a member of the specified list(TwitterException.getStatusCode() returns 404 in that case.)void showUserListSubscription(long ownerId,
java.lang.String slug,
long userId)
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.
, or the user is not a member of the specified list(TwitterException.getStatusCode() returns 404 in that case.)void destroyUserListSubscription(int listId)
listId - The id of the list.void destroyUserListSubscription(long ownerId,
java.lang.String slug)
ownerId - The user ID of the user who owns the list being requested by a slug.slug - slug of the listvoid createUserListMembers(int listId,
long[] userIds)
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.void addUserListMembers(int listId,
long[] userIds)
createUserListMembers(int, long[]) insteadvoid createUserListMembers(long ownerId,
java.lang.String slug,
long[] userIds)
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.void addUserListMembers(long ownerId,
java.lang.String slug,
long[] userIds)
createUserListMembers(int, long[]) insteadvoid createUserListMembers(int listId,
java.lang.String[] screenNames)
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.void addUserListMembers(int listId,
java.lang.String[] screenNames)
createUserListMembers(int, String[]) insteadvoid createUserListMembers(long ownerId,
java.lang.String slug,
java.lang.String[] screenNames)
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.void addUserListMembers(long ownerId,
java.lang.String slug,
java.lang.String[] screenNames)
createUserListMembers(int, String[]) insteadvoid showUserListMembership(int listId,
long userId)
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.void showUserListMembership(long ownerId,
java.lang.String slug,
long userId)
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.
.getStatusCode() returns 404 in that case.)void getUserListMembers(int listId,
long cursor)
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.void getUserListMembers(long ownerId,
java.lang.String slug,
long cursor)
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.void createUserListMember(int listId,
long userId)
listId - The id of the list.userId - The id of the user to add as a member of the list.void addUserListMember(int listId,
long userId)
createUserListMember(int, long) insteadvoid createUserListMember(long ownerId,
java.lang.String slug,
long userId)
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.void addUserListMember(long ownerId,
java.lang.String slug,
long userId)
createUserListMember(long, String, long) insteadvoid destroyUserList(int listId)
listId - The id of the list to deletevoid destroyUserList(long ownerId,
java.lang.String slug)
ownerId - The user ID of the user who owns the list being requested by a slug.slug - slug of the listvoid updateUserList(int listId,
java.lang.String newListName,
boolean isPublicList,
java.lang.String newDescription)
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.void updateUserList(long ownerId,
java.lang.String slug,
java.lang.String newListName,
boolean isPublicList,
java.lang.String newDescription)
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.void createUserList(java.lang.String listName,
boolean isPublicList,
java.lang.String description)
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.void showUserList(int listId)
listId - The id of the list to showvoid showUserList(long ownerId,
java.lang.String slug)
ownerId - The user ID of the user who owns the list being requested by a slug.slug - slug of the listvoid getUserListSubscriptions(java.lang.String listOwnerScreenName,
long cursor)
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.