twitter4j.api
Interface ListMembersMethodsAsync

All Known Implementing Classes:
AsyncTwitter

public interface ListMembersMethodsAsync

Author:
Joern Huxhorn - jhuxhorn at googlemail.com

Method Summary
 void addUserListMember(int listId, int userId)
          Adds a member to a list.
 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.
 

Method Detail

getUserListMembers

void getUserListMembers(java.lang.String listOwnerScreenName,
                        int listId,
                        long cursor)
Returns the members of the specified list.
This method calls http://api.twitter.com/1/[user]/[list_id]/members.json

Parameters:
listOwnerScreenName - The screen name of the list owner
listId - The id of the list
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.
Since:
Twitter4J 2.1.1
See Also:
Twitter REST API Method: GET /:user/:list_id/members

addUserListMember

void addUserListMember(int listId,
                       int userId)
Adds a member to a list. The authenticated user must own the list to be able to add members to it. Lists are limited to having 500 members.
This method calls http://api.twitter.com/1/[listOwner]/[listId]/members.json

Parameters:
listId - The id of the list.
userId - The id of the user to add as a member of the list.
Since:
Twitter4J 2.1.1
See Also:
Twitter REST API Method: POST /:user/:id/members

deleteUserListMember

void deleteUserListMember(int listId,
                          int userId)
Removes the specified member from the list. The authenticated user must be the list's owner to remove members from the list.
This method calls http://api.twitter.com/1/[listOwner]/[listId]/members.json

Parameters:
listId - The id of the list.
userId - The screen name of the member you wish to remove from the list.
Since:
Twitter4J 2.1.0
See Also:
Twitter REST API Method: DELETE /:user/:list_id/members

checkUserListMembership

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

Parameters:
listOwnerScreenName - The screen name of the list owner
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.
Since:
Twitter4J 2.1.0
See Also:
Twitter REST API Method: GET /:user/:list_id/members/:id