twitter4j.api
Interface ListSubscribersMethodsAsync

All Known Subinterfaces:
AsyncTwitter
All Known Implementing Classes:
AsyncTwitterImpl

public interface ListSubscribersMethodsAsync

Author:
Joern Huxhorn - jhuxhorn at googlemail.com

Method Summary
 void checkUserListSubscription(java.lang.String listOwnerScreenName, int listId, long userId)
          Deprecated. use showUserListSubscription(int, long) instead
 void createUserListSubscription(int listId)
          Make the authenticated user follow the specified list.
 void destroyUserListSubscription(int listId)
          Unsubscribes the authenticated user form the specified list.
 void getUserListSubscribers(int listId, long cursor)
          Returns the subscribers of the specified list.
 void getUserListSubscribers(java.lang.String listOwnerScreenName, int listId, long cursor)
          Deprecated. use getUserListSubscribers(int, long) instead
 void showUserListSubscription(int listId, long userId)
          Check if the specified user is a subscriber of the specified list.
 void subscribeUserList(java.lang.String listOwnerScreenName, int listId)
          Deprecated. use createUserListSubscription(int) instead
 void unsubscribeUserList(java.lang.String listOwnerScreenName, int listId)
          Deprecated. use destroyUserListSubscription(int) instead
 

Method Detail

getUserListSubscribers

void getUserListSubscribers(java.lang.String listOwnerScreenName,
                            int listId,
                            long cursor)
Deprecated. use getUserListSubscribers(int, long) instead

Returns the subscribers of the specified list.
This method calls http://api.twitter.com/1/lists/subscribers.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:
GET lists/subscribers | dev.twitter.com

getUserListSubscribers

void getUserListSubscribers(int listId,
                            long cursor)
Returns the subscribers of the specified list.
This method calls http://api.twitter.com/1/lists/subscribers.json

Parameters:
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:
GET lists/subscribers | dev.twitter.com

subscribeUserList

void subscribeUserList(java.lang.String listOwnerScreenName,
                       int listId)
Deprecated. use createUserListSubscription(int) instead

Make the authenticated user follow the specified list.
This method calls http://api.twitter.com/1/list/subscribers/create.json

Parameters:
listOwnerScreenName - The screen name of the list owner
listId - The id of the list.
Since:
Twitter4J 2.1.1
See Also:
POST lists/subscribers/create | dev.twitter.com

createUserListSubscription

void createUserListSubscription(int listId)
Make the authenticated user follow the specified list.
This method calls http://api.twitter.com/1/list/subscribers/create.json

Parameters:
listId - The id of the list.
Since:
Twitter4J 2.2.3
See Also:
POST lists/subscribers/create | dev.twitter.com

unsubscribeUserList

void unsubscribeUserList(java.lang.String listOwnerScreenName,
                         int listId)
Deprecated. use destroyUserListSubscription(int) instead

Unsubscribes the authenticated user form the specified list.
This method calls http://api.twitter.com/1/:listOwner/:listId/subscribers.json

Parameters:
listOwnerScreenName - The screen name of the list owner
listId - The id of the list.
Since:
Twitter4J 2.1.1
See Also:
POST lists/subscribers/destroy | dev.twitter.com

destroyUserListSubscription

void destroyUserListSubscription(int listId)
Unsubscribes the authenticated user form the specified list.
This method calls http://api.twitter.com/1/subscribers/destroy.json

Parameters:
listId - The id of the list.
Since:
Twitter4J 2.2.3
See Also:
POST lists/subscribers/destroy | dev.twitter.com

checkUserListSubscription

void checkUserListSubscription(java.lang.String listOwnerScreenName,
                               int listId,
                               long userId)
Deprecated. use showUserListSubscription(int, long) instead

Check if the specified user is a subscriber of the specified list.
This method calls http://api.twitter.com/1/lists/subscribers/show.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. , or the user is not a member of the specified list(TwitterException.getStatusCode() returns 404 in that case.)
Since:
Twitter4J 2.1.1
See Also:
GET lists/subscribers/show | dev.twitter.com

showUserListSubscription

void showUserListSubscription(int listId,
                              long userId)
Check if the specified user is a subscriber of the specified list.
This method calls http://api.twitter.com/1/lists/subscribers/show.json

Parameters:
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.)
Since:
Twitter4J 2.2.3
See Also:
GET lists/subscribers/show | dev.twitter.com