public interface ListMembersMethodsAsync
Modifier and Type | Method and Description |
---|---|
void |
addUserListMember(int listId,
int userId)
Adds a member to a list.
|
void |
addUserListMembers(int listId,
int[] userIds)
Adds multiple members to a list, by specifying a comma-separated list of member ids or screen names.
|
void |
addUserListMembers(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 |
checkUserListMembership(java.lang.String listOwnerScreenName,
int listId,
int userId)
Check if a user is a member of the specified list.
This method calls http://api.twitter.com/1/[listOwner]/[listId]/members/id.json |
void |
deleteUserListMember(int listId,
int userId)
Removes the specified member from the list.
|
void |
getUserListMembers(java.lang.String listOwnerScreenName,
int listId,
long cursor)
Returns the members of the specified list.
|
void getUserListMembers(java.lang.String listOwnerScreenName, int listId, long cursor)
listOwnerScreenName
- The screen name of the list ownerlistId
- 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 addUserListMember(int listId, int userId)
listId
- The id of the list.userId
- The id of the user to add as a member of the list.void addUserListMembers(int listId, int[] 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, 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 deleteUserListMember(int listId, int userId)
listId
- The id of the list.userId
- The screen name of the member you wish to remove from the list.void checkUserListMembership(java.lang.String listOwnerScreenName, int listId, int userId)
listOwnerScreenName
- The screen name of the list ownerlistId
- 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.