|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ListMembersMethods
Method Summary | |
---|---|
UserList |
addUserListMember(int listId,
int userId)
Adds a member to a list. |
User |
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 |
UserList |
deleteUserListMember(int listId,
int userId)
Removes the specified member from the list. |
PagableResponseList<User> |
getUserListMembers(java.lang.String listOwnerScreenName,
int listId,
long cursor)
Returns the members of the specified list. |
Method Detail |
---|
PagableResponseList<User> getUserListMembers(java.lang.String listOwnerScreenName, int listId, long cursor) throws TwitterException
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.
TwitterException
- when Twitter service or network is unavailableUserList addUserListMember(int listId, int 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 deleteUserListMember(int listId, int 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 unavailableUser checkUserListMembership(java.lang.String listOwnerScreenName, int listId, int userId) throws TwitterException
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.
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.)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |