twitter4j
Class AsyncTwitter

java.lang.Object
  extended by twitter4j.TwitterSupport
      extended by twitter4j.Twitter
          extended by twitter4j.AsyncTwitter
All Implemented Interfaces:
java.io.Serializable

public class AsyncTwitter
extends Twitter

Twitter API with a series of asynchronous APIs.
With this class, you can call TwitterAPI acynchronously.

Author:
Yusuke Yamamoto - yusuke at mac.com
See Also:
AsyncTwitter, TwitterListener, Serialized Form

Nested Class Summary
(package private)  class AsyncTwitter.AsyncTask
           
 
Nested classes/interfaces inherited from class twitter4j.Twitter
Twitter.Device
 
Field Summary
static int BLOCK
          Deprecated. Use CREATED_BLOCK instead.
static int CREATE
           
static int CREATE_FAVORITE
           
static int CREATE_FRIENDSHIP
           
static int CREATED_BLOCK
           
static int CURRENT_TRENDS
           
static int DAILY_TRENDS
           
static int DESTORY
          Deprecated. Use DESTROY_FRIENDSHIP instead.
static int DESTROY
          Deprecated. Use DESTROY_FRIENDSHIP instead.
static int DESTROY_DIRECT_MESSAGES
           
static int DESTROY_FAVORITE
           
static int DESTROY_FRIENDSHIP
           
static int DESTROY_STATUS
           
static int DESTROYED_BLOCK
           
static int DIRECT_MESSAGES
           
static int DISABLE_NOTIFICATION
           
private static Dispatcher dispatcher
           
static int ENABLE_NOTIFICATION
           
static int EXISTS
          Deprecated. Use EXISTS_FRIENDSHIP instead.
private static int EXISTS_BLOCK
           
static int EXISTS_FRIENDSHIP
           
static int FAVORITES
           
static int FEATURED
           
static int FOLLOW
          Deprecated. Use ENABLE_NOTIFICATION instead.
static int FOLLOWERS
           
static int FOLLOWERS_IDS
           
static int FRIENDS
           
static int FRIENDS_IDS
           
static int FRIENDS_TIMELINE
           
private static int GET_BLOCKING_USERS
           
private static int GET_BLOCKING_USERS_IDS
           
static int GET_DOWNTIME_SCHEDULE
          Deprecated. not supported by Twitter API anymore
static int HOME_TIMELINE
           
static int LEAVE
          Deprecated. Use DISABLE_NOTIFICATION instead.
static int MENTIONS
           
static int PUBLIC_TIMELINE
           
static int RATE_LIMIT_STATUS
           
static int REPLIES
          Deprecated. Use DESTROY_FRIENDSHIP instead.
static int RETWEET_STATUS
           
static int RETWEETED_BY_ME
           
static int RETWEETED_TO_ME
           
static int RETWEETS_OF_ME
           
static int SEARCH
           
static int SEND_DIRECT_MESSAGE
           
private static long serialVersionUID
           
static int SHOW
          Deprecated. Use SHOW_STATUS instead.
static int SHOW_STATUS
           
private  boolean shutdown
           
static int TEST
           
static int TRENDS
           
static int UNBLOCK
          Deprecated. Use DESTROYED_BLOCK instead.
static int UPDATE
          Deprecated. Use UPDATE_STATUS instead.
static int UPDATE_DELIVERLY_DEVICE
           
static int UPDATE_LOCATION
          Deprecated. Use UPDATE_PROFILE instead.
static int UPDATE_PROFILE
           
static int UPDATE_PROFILE_COLORS
           
static int UPDATE_STATUS
           
static int USER_DETAIL
           
static int USER_TIMELINE
           
static int WEEKLY_TRENDS
           
 
Fields inherited from class twitter4j.Twitter
IM, NONE, SMS
 
Fields inherited from class twitter4j.TwitterSupport
http, source, USE_SSL
 
Constructor Summary
AsyncTwitter(java.lang.String id, java.lang.String password)
           
AsyncTwitter(java.lang.String id, java.lang.String password, java.lang.String baseURL)
           
 
Method Summary
 void blockAsync(java.lang.String id)
          Deprecated. Use createBlockAsync(String id) instead
 void createAsync(java.lang.String id)
          Deprecated. Use createFriendshipAsync(String id) instead
 void createAsync(java.lang.String id, TwitterListener listener)
          Deprecated. Use createFriendshipAsync(String id, TwitterListener listener) instead
 void createBlockAsync(java.lang.String id)
          Blocks the user specified in the ID parameter as the authenticating user.
 void createBlockAsync(java.lang.String id, TwitterListener listener)
          Blocks the user specified in the ID parameter as the authenticating user.
 void createFavoriteAsync(int id)
          Deprecated. Use createFavoriteAsync(long id, TwitterListener listener) instead.
 void createFavoriteAsync(int id, TwitterListener listener)
          Deprecated. Use createFavoriteAsync(long id, TwitterListener listener) instead.
 void createFavoriteAsync(long id)
          Favorites the status specified in the ID parameter as the authenticating user.
 void createFavoriteAsync(long id, TwitterListener listener)
          Favorites the status specified in the ID parameter as the authenticating user.
 void createFriendshipAsync(java.lang.String id)
          Befriends the user specified in the ID parameter as the authenticating user.
 void createFriendshipAsync(java.lang.String id, boolean follow, TwitterListener listener)
          Befriends the user specified in the ID parameter as the authenticating user.
 void createFriendshipAsync(java.lang.String id, TwitterListener listener)
          Befriends the user specified in the ID parameter as the authenticating user.
 void deleteDirectMessageAsync(int id, TwitterListener listener)
          Deprecated. Use destroyDirectMessageAsync(int id, TwitterListener listener) instead
 void destoryStatusAsync(int statusId)
          Deprecated. Use destroyStatusAsync(long statuId) instead.
 void destoryStatusAsync(int statusId, TwitterListener listener)
          Deprecated. Use destroyStatusAsync(long statuId) instead.
 void destroyAsync(java.lang.String id)
          Deprecated. Use destroyFriendshipAsync(String id) instead
 void destroyAsync(java.lang.String id, TwitterListener listener)
          Deprecated. Use destroyFriendshipAsync(String id, TwitterListener listener) instead
 void destroyBlockAsync(java.lang.String id)
          Un-blocks the user specified in the ID parameter as the authenticating user.
 void destroyBlockAsync(java.lang.String id, TwitterListener listener)
          Un-blocks the user specified in the ID parameter as the authenticating user.
 void destroyDirectMessageAsync(int id)
          Delete specified direct message
This method calls http://twitter.com/direct_messages/destroy
 void destroyDirectMessageAsync(int id, TwitterListener listener)
          Delete specified direct message
This method calls http://twitter.com/direct_messages/destroy
 void destroyFavoriteAsync(int id)
          Deprecated. Use destroyFavoriteAsync(long id) instead.
 void destroyFavoriteAsync(int id, TwitterListener listener)
          Deprecated. Use destroyFavoriteAsync(long id, TwitterListener listener) instead.
 void destroyFavoriteAsync(long id)
          Favorites the status specified in the ID parameter as the authenticating user.
 void destroyFavoriteAsync(long id, TwitterListener listener)
          Favorites the status specified in the ID parameter as the authenticating user.
 void destroyFriendshipAsync(java.lang.String id)
          Discontinues friendship with the specified in the ID parameter as the authenticating user.
 void destroyFriendshipAsync(java.lang.String id, TwitterListener listener)
          Discontinues friendship with the specified in the ID parameter as the authenticating user.
 void destroyStatusAsync(int statusId)
          Deprecated. Use destroyStatusAsync(long statuId) instead.
 void destroyStatusAsync(int statusId, TwitterListener listener)
          Deprecated. Use destroyStatusAsync(long statuId) instead.
 void destroyStatusAsync(long statusId)
          Destroys the status specified by the required ID parameter.
 void destroyStatusAsync(long statusId, TwitterListener listener)
          Destroys the status specified by the required ID parameter.
 void disableNotificationAsync(java.lang.String id)
          Disables notifications for updates from the specified user to the authenticating user.
 void disableNotificationAsync(java.lang.String id, TwitterListener listener)
          Disables notifications for updates from the specified user to the authenticating user.
 void enableNotificationAsync(java.lang.String id)
          Enables notifications for updates from the specified user to the authenticating user.
 void enableNotificationAsync(java.lang.String id, TwitterListener listener)
          Enables notifications for updates from the specified user to the authenticating user.
 void existsAsync(java.lang.String userA, java.lang.String userB, TwitterListener listener)
          Deprecated. existsFriendshipAsync(String user_a, String user_b, TwitterListener listener)
 void existsBlockAsync(java.lang.String id, TwitterListener listener)
          Tests if a friendship exists between two users.
 void existsFriendshipAsync(java.lang.String userA, java.lang.String userB, TwitterListener listener)
          Tests if a friendship exists between two users.
 void favoritesAsync(int page, TwitterListener listener)
          Deprecated. Use getFavoritesAsync(int page, TwitterListener listener) instead
 void favoritesAsync(java.lang.String id, int page, TwitterListener listener)
          Deprecated. Use getFavoritesAsync(String id,int page, TwitterListener listener) instead
 void favoritesAsync(java.lang.String id, TwitterListener listener)
          Deprecated. Use getFavoritesAsync(String id,TwitterListener listener) instead
 void favoritesAsync(TwitterListener listener)
          Deprecated. Use getFavoritesAsync(TwitterListener listener) instead
 void followAsync(java.lang.String id)
          Deprecated. Use enableNotificationAsync(String id) instead
 void followAsync(java.lang.String id, TwitterListener listener)
          Deprecated. Use enableNotificationAsync(String id, TwitterListener listener) instead
 void getAuthenticatedUserAsync(TwitterListener listener)
          Retrieves extended information of the authenticated user.
 void getBlockingUsersAsync(int page, TwitterListener listener)
          Returns a list of user objects that the authenticating user is blocking.
 void getBlockingUsersAsync(TwitterListener listener)
          Returns a list of user objects that the authenticating user is blocking.
 void getBlockingUsersIDsAsync(TwitterListener listener)
          Returns an array of numeric user ids the authenticating user is blocking.
 void getCurrentTrendsAsync(boolean excludeHashTags, TwitterListener listener)
          Returns the current top 10 trending topics on Twitter.
 void getCurrentTrendsAsync(TwitterListener listener)
          Returns the current top 10 trending topics on Twitter.
 void getDailyTrendsAsync(java.util.Date date, boolean excludeHashTags, TwitterListener listener)
          Returns the top 20 trending topics for each hour in a given day.
 void getDailyTrendsAsync(TwitterListener listener)
          Returns the top 20 trending topics for each hour in a given day.
 void getDirectMessagesAsync(java.util.Date since, TwitterListener listener)
          Deprecated. using long sinceId is suggested.
 void getDirectMessagesAsync(int sinceId, TwitterListener listener)
          Deprecated. Use getDirectMessagesAsync(Paging paging, TwitterListener listener) instead
 void getDirectMessagesAsync(Paging paging, TwitterListener listener)
          Returns a list of the direct messages sent to the authenticating user.
 void getDirectMessagesAsync(TwitterListener listener)
          Returns a list of the direct messages sent to the authenticating user.
 void getDirectMessagesByPageAsync(int page, int sinceId, TwitterListener listener)
          Deprecated. Use getDirectMessagesAsync(Paging paging, TwitterListener listener) instead
 void getDirectMessagesByPageAsync(int page, TwitterListener listener)
          Deprecated. Use getDirectMessagesAsync(Paging paging, TwitterListener listener) instead
private  Dispatcher getDispatcher()
           
 void getDowntimeScheduleAsync()
          Returns the same text displayed on http://twitter.com/home when a maintenance window is scheduled, in the requested format.
 void getFavoritesAsync(int page, TwitterListener listener)
          Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
 void getFavoritesAsync(java.lang.String id, int page, TwitterListener listener)
          Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
 void getFavoritesAsync(java.lang.String id, TwitterListener listener)
          Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
 void getFavoritesAsync(TwitterListener listener)
          Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
 void getFeaturedAsync(TwitterListener listener)
          Returns a list of the users currently featured on the site with their current statuses inline.
 void getFollowersAsync(int page, TwitterListener listener)
          Deprecated. Use getFollowersStatusesAsync(Paging paging, TwitterListener listener) instead
 void getFollowersAsync(Paging paging, TwitterListener listener)
          Returns the authenticating user's followers, each with current status inline.
 void getFollowersAsync(java.lang.String id, int page, TwitterListener listener)
          Deprecated. Use getFollowersStatusesAsync(String id, Paging paging, TwitterListener listener) instead
 void getFollowersAsync(java.lang.String id, Paging paging, TwitterListener listener)
          Deprecated. use getFollowersStatusesAsync(id, paging, listener) instead
 void getFollowersAsync(java.lang.String id, TwitterListener listener)
          Deprecated. use getFollowersStatusesAsync(id, listener) instead
 void getFollowersAsync(TwitterListener listener)
          Deprecated. use getFollowersStatusesAsync(listener)
 void getFollowersIDsAsync(int userId, long cursor, TwitterListener listener)
          Returns an array of numeric IDs for every user the specified user is followed by.
 void getFollowersIDsAsync(int userId, Paging paging, TwitterListener listener)
          Deprecated. use getFollowersIDsAsync(int userId, long cursor, TwitterListener listener) instead
 void getFollowersIDsAsync(int userId, TwitterListener listener)
          Returns an array of numeric IDs for every user the specified user is followed by.
 void getFollowersIDsAsync(long cursor, TwitterListener listener)
          Returns an array of numeric IDs for every user the specified user is followed by.
 void getFollowersIDsAsync(Paging paging, TwitterListener listener)
          Deprecated. use getFollowersIDsAsync(long cursor, TwitterListener listener) instead
 void getFollowersIDsAsync(java.lang.String screenName, long cursor, TwitterListener listener)
          Returns an array of numeric IDs for every user the specified user is followed by.
 void getFollowersIDsAsync(java.lang.String screenName, Paging paging, TwitterListener listener)
          Deprecated. use getFollowersIDsAsync(String screenName, long cursor, TwitterListener listener) instead
 void getFollowersIDsAsync(java.lang.String screenName, TwitterListener listener)
          Returns an array of numeric IDs for every user the specified user is followed by.
 void getFollowersIDsAsync(TwitterListener listener)
          Returns an array of numeric IDs for every user the specified user is followed by.
 void getFollowersStatusesAsync(Paging paging, TwitterListener listener)
          Returns the authenticating user's followers, each with current status inline.
 void getFollowersStatusesAsync(java.lang.String id, Paging paging, TwitterListener listener)
          Returns the authenticating user's followers, each with current status inline.
 void getFollowersStatusesAsync(java.lang.String id, TwitterListener listener)
          Returns the authenticating user's followers, each with current status inline.
 void getFollowersStatusesAsync(TwitterListener listener)
          Returns the authenticating user's followers, each with current status inline.
 void getFriendsAsync(int page, TwitterListener listener)
          Deprecated. Use getFriendsStatusesAsync(Paging paging,TwitterListener listener) instead
 void getFriendsAsync(Paging paging, TwitterListener listener)
          Deprecated. use getFriendsStatusesAsync(paging,listener) instead
 void getFriendsAsync(java.lang.String id, int page, TwitterListener listener)
          Deprecated. Use getFriendsStatusesAsync(String id, Paging paging, TwitterListener listener) instead
 void getFriendsAsync(java.lang.String id, Paging paging, TwitterListener listener)
          Deprecated. use getFriendsStatusesAsync(id, paging, listener) instead
 void getFriendsAsync(java.lang.String id, TwitterListener listener)
          Deprecated. use getFriendsStatusesAsync(id, listener) instead
 void getFriendsAsync(TwitterListener listener)
          Deprecated. use getFriendsStatusesAsync(listener)
 void getFriendsIDsAsync(int userId, long cursor, TwitterListener listener)
          Returns an array of numeric IDs for every user the specified user is following.
 void getFriendsIDsAsync(int userId, Paging paging, TwitterListener listener)
          Deprecated. use getFriendsIDsAsync(int userId, long cursor, TwitterListener listener) instead
 void getFriendsIDsAsync(int userId, TwitterListener listener)
          Returns an array of numeric IDs for every user the specified user is following.
 void getFriendsIDsAsync(long cursor, TwitterListener listener)
          Returns an array of numeric IDs for every user the authenticating user is following.
 void getFriendsIDsAsync(Paging paging, TwitterListener listener)
          Deprecated. use getFriendsIDsAsync(long cursor, TwitterListener listener) instead
 void getFriendsIDsAsync(java.lang.String screenName, long cursor, TwitterListener listener)
          Returns an array of numeric IDs for every user the specified user is following.
 void getFriendsIDsAsync(java.lang.String screenName, Paging paging, TwitterListener listener)
          Deprecated. use getFriendsIDsAsync(String screenName, long cursor, TwitterListener listener) instead
 void getFriendsIDsAsync(java.lang.String screenName, TwitterListener listener)
          Returns an array of numeric IDs for every user the specified user is following.
 void getFriendsIDsAsync(TwitterListener listener)
          Returns an array of numeric IDs for every user the authenticating user is following.
 void getFriendsStatusesAsync(Paging paging, TwitterListener listener)
          Returns the specified user's friends, each with current status inline.
 void getFriendsStatusesAsync(java.lang.String id, Paging paging, TwitterListener listener)
          Returns the user's friends, each with current status inline.
 void getFriendsStatusesAsync(java.lang.String id, TwitterListener listener)
          Returns the user's friends, each with current status inline.
 void getFriendsStatusesAsync(TwitterListener listener)
          Returns the specified user's friends, each with current status inline.
 void getFriendsTimelineAsync(java.util.Date since, TwitterListener listener)
          Deprecated. Use getFriendsTimelineAsync(String id, Paging paging, TwitterListener listener) instead
 void getFriendsTimelineAsync(int page, TwitterListener listener)
          Deprecated. Use getFriendsTimelineAsync(Paging paging, TwitterListener listener) instead
 void getFriendsTimelineAsync(long sinceId, int page, TwitterListener listener)
          Deprecated. Use getFriendsTimelineAsync(Paging paging, TwitterListener listener) instead
 void getFriendsTimelineAsync(long sinceId, java.lang.String id, int page, TwitterListener listener)
          Deprecated. The Twitter API does not support this method anymore.
 void getFriendsTimelineAsync(long sinceId, TwitterListener listener)
          Deprecated. Use getFriendsTimelineAsync(Paging paging, TwitterListener listener) instead
 void getFriendsTimelineAsync(Paging paging, TwitterListener listener)
          Returns the 20 most recent statuses posted in the last 24 hours from the authenticating user and that user's friends.
 void getFriendsTimelineAsync(java.lang.String id, java.util.Date since, TwitterListener listener)
          Deprecated. The Twitter API does not support this method anymore.
 void getFriendsTimelineAsync(java.lang.String id, int page, TwitterListener listener)
          Deprecated. The Twitter API does not support this method anymore.
 void getFriendsTimelineAsync(java.lang.String id, long sinceId, TwitterListener listener)
          Deprecated. The Twitter API does not support this method anymore.
 void getFriendsTimelineAsync(java.lang.String id, Paging paging, TwitterListener listener)
          Deprecated. The Twitter API does not support this method anymore.
 void getFriendsTimelineAsync(java.lang.String id, TwitterListener listener)
          Deprecated. The Twitter API does not support this method anymore.
 void getFriendsTimelineAsync(TwitterListener listener)
          Returns the 20 most recent statuses posted in the last 24 hours from the authenticating user and that user's friends.
 void getFriendsTimelineByPageAsync(int page, TwitterListener listener)
          Deprecated. Use getFriendsTimelineAsync(Paging paging, TwitterListener listener) instead
 void getFriendsTimelineByPageAsync(java.lang.String id, int page, TwitterListener listener)
          Deprecated. The Twitter API does not support this method anymore.
 void getHomeTimelineAsync(Paging paging, TwitterListener listener)
          Returns the 20 most recent statuses, including retweets, posted by the authenticating user and that user's friends.
 void getHomeTimelineAsync(TwitterListener listener)
          Returns the 20 most recent statuses, including retweets, posted by the authenticating user and that user's friends.
 void getMentionsAsync(Paging paging, TwitterListener listener)
          Returns the 20 most recent replies (status updates prefixed with @username) to the authenticating user.
 void getMentionsAsync(TwitterListener listener)
          Returns the 20 most recent replies (status updates prefixed with @username) to the authenticating user.
 void getPublicTimelineAsync(int sinceID, TwitterListener listener)
          Deprecated. use getpublicTimelineAsync(long sinceID, TwitterListener listener)
 void getPublicTimelineAsync(long sinceID, TwitterListener listener)
          Returns only public statuses with an ID greater than (that is, more recent than) the specified ID.
 void getPublicTimelineAsync(TwitterListener listener)
          
This method calls http://twitter.com/statuses/public_timeline Returns the 20 most recent statuses from non-protected users who have set a custom user icon.
 void getRepliesAsync(int page, TwitterListener listener)
          Deprecated. Use getMentionsAsync(Paging paging, TwitterListener listener) instead
 void getRepliesAsync(long sinceId, int page, TwitterListener listener)
          Deprecated. Use getMentionsAsync(Paging paging, TwitterListener listener) instead
 void getRepliesAsync(long sinceId, TwitterListener listener)
          Deprecated. Use getMentionsAsync(Paging paging, TwitterListener listener) instead
 void getRepliesAsync(TwitterListener listener)
          Deprecated. Use getMentionsAsync(TwitterListener listener) instead
 void getRepliesByPageAsync(int page, TwitterListener listener)
          Deprecated. Use getMentionsAsync(Paging paging, TwitterListener listener) instead
 void getRetweetedByMeAsync(Paging paging, TwitterListener listener)
          Returns the 20 most recent retweets posted by the authenticating user.
 void getRetweetedByMeAsync(TwitterListener listener)
          Returns the 20 most recent retweets posted by the authenticating user.
 void getRetweetedToMeAsync(Paging paging, TwitterListener listener)
          Returns the 20 most recent retweets posted by the authenticating user's friends.
 void getRetweetedToMeAsync(TwitterListener listener)
          Returns the 20 most recent retweets posted by the authenticating user's friends.
 void getRetweetsOfMeAsync(Paging paging, TwitterListener listener)
          Returns the 20 most recent tweets of the authenticated user that have been retweeted by others.
 void getRetweetsOfMeAsync(TwitterListener listener)
          Returns the 20 most recent tweets of the authenticated user that have been retweeted by others.
 void getSentDirectMessagesAsync(java.util.Date since, TwitterListener listener)
          Deprecated. using long sinceId is suggested.
 void getSentDirectMessagesAsync(int page, int sinceId, TwitterListener listener)
          Deprecated. Use getSentDirectMessagesAsync(Paging paging, TwitterListener listener) instead
 void getSentDirectMessagesAsync(int sinceId, TwitterListener listener)
          Deprecated. Use getSentDirectMessagesAsync(Paging paging, TwitterListener listener) instead
 void getSentDirectMessagesAsync(Paging paging, TwitterListener listener)
          Returns a list of the direct messages sent by the authenticating user.
 void getSentDirectMessagesAsync(TwitterListener listener)
          Returns a list of the direct messages sent by the authenticating user.
 void getTrendsAsync(TwitterListener listener)
          Returns the top ten topics that are currently trending on Twitter.
 void getUserDetailAsync(java.lang.String id, TwitterListener listener)
          Deprecated. use showUserAsync(id,listener) instead
 void getUserTimelineAsync(int count, java.util.Date since, TwitterListener listener)
          Deprecated. using long sinceId is suggested.
 void getUserTimelineAsync(int count, long sinceId, TwitterListener listener)
          Deprecated. Use getUserTimelineAsync(Paging paging, TwitterListener listener) instead
 void getUserTimelineAsync(long sinceId, TwitterListener listener)
          Deprecated. Use getUserTimelineAsync(Paging paging, TwitterListener listener) instead
 void getUserTimelineAsync(Paging paging, TwitterListener listener)
          Returns the most recent statuses posted in the last 24 hours from the specified user id.
 void getUserTimelineAsync(java.lang.String id, java.util.Date since, TwitterListener listener)
          Deprecated. using long sinceId is suggested.
 void getUserTimelineAsync(java.lang.String id, int count, java.util.Date since, TwitterListener listener)
          Deprecated. using long sinceId is suggested.
 void getUserTimelineAsync(java.lang.String id, int page, long sinceId, TwitterListener listener)
          Deprecated. Use getUserTimelineAsync(String id, Paging paging, TwitterListener listener) instead
 void getUserTimelineAsync(java.lang.String id, int count, TwitterListener listener)
          Deprecated. Use getUserTimelineAsync(String id, Paging paging, TwitterListener listener) instead
 void getUserTimelineAsync(java.lang.String id, long sinceId, TwitterListener listener)
          Deprecated. Use getUserTimelineAsync(String id, Paging paging, TwitterListener listener) instead
 void getUserTimelineAsync(java.lang.String id, Paging paging, TwitterListener listener)
          Returns the most recent statuses posted in the last 24 hours from the specified user id.
 void getUserTimelineAsync(java.lang.String id, TwitterListener listener)
          Returns the most recent statuses posted in the last 24 hours from the specified user id.
 void getUserTimelineAsync(TwitterListener listener)
          Returns the most recent statuses posted in the last 24 hours from the authenticating user.
 void getWeeklyTrendsAsync(java.util.Date date, boolean excludeHashTags, TwitterListener listener)
          Returns the top 30 trending topics for each day in a given week.
 void getWeeklyTrendsAsync(TwitterListener listener)
          Returns the top 30 trending topics for each day in a given week.
 void leaveAsync(java.lang.String id)
          Deprecated. Use disableNotificationAsync(String id) instead
 void leaveAsync(java.lang.String id, TwitterListener listener)
          Deprecated. Use disableNotificationAsync(String id, TwitterListener listener) instead
 void rateLimitStatusAsync(TwitterListener listener)
          Gets the remaining number of API requests available to the requesting user before the API limit is reached for the current hour.
 void retweetStatusAsync(long statusId)
          Retweets a tweet.
 void retweetStatusAsync(long statusId, TwitterListener listener)
          Retweets a tweet.
 void searchAcync(Query query, TwitterListener listener)
          Returns tweets that match a specified query.
 void sendDirectMessageAsync(java.lang.String id, java.lang.String text)
          Sends a new direct message to the specified user from the authenticating user.
 void sendDirectMessageAsync(java.lang.String id, java.lang.String text, TwitterListener listener)
          Sends a new direct message to the specified user from the authenticating user.
 void showAsync(int id, TwitterListener listener)
          Deprecated. Use showAsync(long id) instead.
 void showAsync(long id, TwitterListener listener)
          Deprecated. Use showStatusAsync(long id, TwitterListener listener) instead
 void showStatusAsync(long id, TwitterListener listener)
          Returns a single status, specified by the id parameter.
 void showUserAsync(java.lang.String id, TwitterListener listener)
          Retrieves extended information of a given user, specified by ID or screen name as per the required id parameter below.
 void shutdown()
          Shuts down internal dispather thread.
 void testAsync()
          Returns the string "ok" in the requested format with a 200 OK HTTP status code.
 void unblockAsync(java.lang.String id)
          Deprecated. Use destroyBlockAsync(String id, TwitterListener listener) instead
 void updateAsync(java.lang.String status)
          Deprecated. Use updateStatusAsync(String status) instead
 void updateAsync(java.lang.String status, long inReplyToStatusId)
          Deprecated. Use updateStatusAsync(String status, long inReplyToStatusId) instead
 void updateAsync(java.lang.String status, long inReplyToStatusId, TwitterListener listener)
          Deprecated. Use updateStatusAsync(String status, long inReplyToStatusId, TwitterListener listener) instead
 void updateAsync(java.lang.String status, TwitterListener listener)
          Deprecated. Use updateStatusAsync(String status, TwitterListener listener) instead
 void updateDeliverlyDeviceAsync(Twitter.Device device, TwitterListener listener)
          Sets which device Twitter delivers updates to for the authenticating user.
 void updateLocationAsync(java.lang.String location, TwitterListener listener)
          Deprecated. Use updateProfileAsync(String name, String email, String url, String location, String description, TwitterListener listener) instead
 void updateProfileAsync(java.lang.String name, java.lang.String email, java.lang.String url, java.lang.String location, java.lang.String description)
          Sets values that users are able to set under the "Account" tab of their settings page.
 void updateProfileAsync(java.lang.String name, java.lang.String email, java.lang.String url, java.lang.String location, java.lang.String description, TwitterListener listener)
          Sets values that users are able to set under the "Account" tab of their settings page.
 void updateProfileColorsAsync(java.lang.String profileBackgroundColor, java.lang.String profileTextColor, java.lang.String profileLinkColor, java.lang.String profileSidebarFillColor, java.lang.String profileSidebarBorderColor)
          Sets one or more hex values that control the color scheme of the authenticating user's profile page on twitter.com.
 void updateProfileColorsAsync(java.lang.String profileBackgroundColor, java.lang.String profileTextColor, java.lang.String profileLinkColor, java.lang.String profileSidebarFillColor, java.lang.String profileSidebarBorderColor, TwitterListener listener)
          Sets one or more hex values that control the color scheme of the authenticating user's profile page on twitter.com.
 void updateStatusAsync(java.lang.String status)
          Updates the user's status asynchronously
This method calls http://twitter.com/statuses/update
 void updateStatusAsync(java.lang.String status, long inReplyToStatusId)
          Updates the user's status asynchronously
This method calls http://twitter.com/statuses/update
 void updateStatusAsync(java.lang.String status, long inReplyToStatusId, TwitterListener listener)
          Updates the user's status asynchronously
This method calls http://twitter.com/statuses/update
 void updateStatusAsync(java.lang.String status, TwitterListener listener)
          Updates the user's status asynchronously
This method calls http://twitter.com/statuses/update
 
Methods inherited from class twitter4j.Twitter
block, create, createBlock, createFavorite, createFriendship, createFriendship, createSavedSearch, deleteDirectMessage, destroy, destroyBlock, destroyDirectMessage, destroyFavorite, destroyFriendship, destroySavedSearch, destroyStatus, disableNotification, enableNotification, equals, exists, existsBlock, existsFriendship, favorites, favorites, favorites, favorites, follow, get, get, get, get, getAuthenticatedUser, getBaseURL, getBlockingUsers, getBlockingUsers, getBlockingUsersIDs, getCurrentTrends, getCurrentTrends, getDailyTrends, getDailyTrends, getDirectMessages, getDirectMessages, getDirectMessages, getDirectMessages, getDirectMessages, getDirectMessagesByPage, getDowntimeSchedule, getFavorites, getFavorites, getFavorites, getFavorites, getFeatured, getFollowers, getFollowers, getFollowers, getFollowers, getFollowers, getFollowers, getFollowersIDs, getFollowersIDs, getFollowersIDs, getFollowersIDs, getFollowersIDs, getFollowersIDs, getFollowersIDs, getFollowersIDs, getFollowersIDs, getFollowersStatuses, getFollowersStatuses, getFollowersStatuses, getFollowersStatuses, getFriends, getFriends, getFriends, getFriends, getFriends, getFriends, getFriendsIDs, getFriendsIDs, getFriendsIDs, getFriendsIDs, getFriendsIDs, getFriendsIDs, getFriendsIDs, getFriendsIDs, getFriendsIDs, getFriendsStatuses, getFriendsStatuses, getFriendsStatuses, getFriendsStatuses, getFriendsTimeline, getFriendsTimeline, getFriendsTimeline, getFriendsTimeline, getFriendsTimeline, getFriendsTimeline, getFriendsTimeline, getFriendsTimeline, getFriendsTimeline, getFriendsTimeline, getFriendsTimeline, getFriendsTimeline, getFriendsTimelineByPage, getFriendsTimelineByPage, getHomeTimeline, getHomeTimeline, getMentions, getMentions, getOAuthAccessToken, getOAuthAccessToken, getOAuthAccessToken, getOAuthAccessToken, getOAuthRequestToken, getOAuthRequestToken, getPublicTimeline, getPublicTimeline, getPublicTimeline, getReplies, getReplies, getReplies, getReplies, getRepliesByPage, getRetweetedByMe, getRetweetedByMe, getRetweetedToMe, getRetweetedToMe, getRetweets, getRetweetsOfMe, getRetweetsOfMe, getSavedSearches, getSearchBaseURL, getSentDirectMessages, getSentDirectMessages, getSentDirectMessages, getSentDirectMessages, getSentDirectMessages, getTrends, getUserDetail, getUserTimeline, getUserTimeline, getUserTimeline, getUserTimeline, getUserTimeline, getUserTimeline, getUserTimeline, getUserTimeline, getUserTimeline, getUserTimeline, getUserTimeline, getUserTimeline, getWeeklyTrends, getWeeklyTrends, hashCode, leave, rateLimitStatus, retweetStatus, search, sendDirectMessage, setBaseURL, setOAuthAccessToken, setOAuthAccessToken, setOAuthConsumer, setSearchBaseURL, show, show, showSavedSearch, showStatus, showUser, test, toString, unblock, update, update, updateDeliverlyDevice, updateLocation, updateProfile, updateProfileColors, updateStatus, updateStatus, updateStatus, updateStatus, verifyCredentials
 
Methods inherited from class twitter4j.TwitterSupport
forceUsePost, getClientURL, getClientVersion, getPassword, getSource, getUserAgent, getUserId, isUsePostForced, setClientURL, setClientVersion, setHttpConnectionTimeout, setHttpProxy, setHttpProxyAuth, setHttpReadTimeout, setPassword, setRequestHeader, setRetryCount, setRetryIntervalSecs, setSource, setUserAgent, setUserId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

dispatcher

private static transient Dispatcher dispatcher

shutdown

private boolean shutdown

PUBLIC_TIMELINE

public static final int PUBLIC_TIMELINE
See Also:
Constant Field Values

HOME_TIMELINE

public static final int HOME_TIMELINE
See Also:
Constant Field Values

FRIENDS_TIMELINE

public static final int FRIENDS_TIMELINE
See Also:
Constant Field Values

USER_TIMELINE

public static final int USER_TIMELINE
See Also:
Constant Field Values

SHOW

public static final int SHOW
Deprecated. Use SHOW_STATUS instead.
See Also:
Constant Field Values

SHOW_STATUS

public static final int SHOW_STATUS
See Also:
Constant Field Values

UPDATE

public static final int UPDATE
Deprecated. Use UPDATE_STATUS instead.
See Also:
Constant Field Values

UPDATE_STATUS

public static final int UPDATE_STATUS
See Also:
Constant Field Values

REPLIES

public static final int REPLIES
Deprecated. Use DESTROY_FRIENDSHIP instead.
See Also:
Constant Field Values

MENTIONS

public static final int MENTIONS
See Also:
Constant Field Values

RETWEETED_BY_ME

public static final int RETWEETED_BY_ME
See Also:
Constant Field Values

RETWEETED_TO_ME

public static final int RETWEETED_TO_ME
See Also:
Constant Field Values

RETWEETS_OF_ME

public static final int RETWEETS_OF_ME
See Also:
Constant Field Values

FRIENDS

public static final int FRIENDS
See Also:
Constant Field Values

FOLLOWERS

public static final int FOLLOWERS
See Also:
Constant Field Values

FEATURED

public static final int FEATURED
See Also:
Constant Field Values

USER_DETAIL

public static final int USER_DETAIL
See Also:
Constant Field Values

DIRECT_MESSAGES

public static final int DIRECT_MESSAGES
See Also:
Constant Field Values

DESTROY_DIRECT_MESSAGES

public static final int DESTROY_DIRECT_MESSAGES
See Also:
Constant Field Values

SEND_DIRECT_MESSAGE

public static final int SEND_DIRECT_MESSAGE
See Also:
Constant Field Values

CREATE

public static final int CREATE
See Also:
Constant Field Values

CREATE_FRIENDSHIP

public static final int CREATE_FRIENDSHIP
See Also:
Constant Field Values

DESTORY

public static final int DESTORY
Deprecated. Use DESTROY_FRIENDSHIP instead.
See Also:
Constant Field Values

DESTROY

public static final int DESTROY
Deprecated. Use DESTROY_FRIENDSHIP instead.
See Also:
Constant Field Values

DESTROY_FRIENDSHIP

public static final int DESTROY_FRIENDSHIP
See Also:
Constant Field Values

EXISTS

public static final int EXISTS
Deprecated. Use EXISTS_FRIENDSHIP instead.
See Also:
Constant Field Values

EXISTS_FRIENDSHIP

public static final int EXISTS_FRIENDSHIP
See Also:
Constant Field Values

FOLLOW

public static final int FOLLOW
Deprecated. Use ENABLE_NOTIFICATION instead.
See Also:
Constant Field Values

ENABLE_NOTIFICATION

public static final int ENABLE_NOTIFICATION
See Also:
Constant Field Values

LEAVE

public static final int LEAVE
Deprecated. Use DISABLE_NOTIFICATION instead.
See Also:
Constant Field Values

DISABLE_NOTIFICATION

public static final int DISABLE_NOTIFICATION
See Also:
Constant Field Values

FAVORITES

public static final int FAVORITES
See Also:
Constant Field Values

FRIENDS_IDS

public static final int FRIENDS_IDS
See Also:
Constant Field Values

FOLLOWERS_IDS

public static final int FOLLOWERS_IDS
See Also:
Constant Field Values

CREATE_FAVORITE

public static final int CREATE_FAVORITE
See Also:
Constant Field Values

DESTROY_FAVORITE

public static final int DESTROY_FAVORITE
See Also:
Constant Field Values

UPDATE_LOCATION

public static final int UPDATE_LOCATION
Deprecated. Use UPDATE_PROFILE instead.
See Also:
Constant Field Values

UPDATE_PROFILE

public static final int UPDATE_PROFILE
See Also:
Constant Field Values

UPDATE_PROFILE_COLORS

public static final int UPDATE_PROFILE_COLORS
See Also:
Constant Field Values

RATE_LIMIT_STATUS

public static final int RATE_LIMIT_STATUS
See Also:
Constant Field Values

UPDATE_DELIVERLY_DEVICE

public static final int UPDATE_DELIVERLY_DEVICE
See Also:
Constant Field Values

BLOCK

public static final int BLOCK
Deprecated. Use CREATED_BLOCK instead.
See Also:
Constant Field Values

CREATED_BLOCK

public static final int CREATED_BLOCK
See Also:
Constant Field Values

UNBLOCK

public static final int UNBLOCK
Deprecated. Use DESTROYED_BLOCK instead.
See Also:
Constant Field Values

DESTROYED_BLOCK

public static final int DESTROYED_BLOCK
See Also:
Constant Field Values

EXISTS_BLOCK

private static final int EXISTS_BLOCK
See Also:
Constant Field Values

GET_BLOCKING_USERS

private static final int GET_BLOCKING_USERS
See Also:
Constant Field Values

GET_BLOCKING_USERS_IDS

private static final int GET_BLOCKING_USERS_IDS
See Also:
Constant Field Values

TEST

public static final int TEST
See Also:
Constant Field Values

GET_DOWNTIME_SCHEDULE

public static final int GET_DOWNTIME_SCHEDULE
Deprecated. not supported by Twitter API anymore
See Also:
Constant Field Values

DESTROY_STATUS

public static final int DESTROY_STATUS
See Also:
Constant Field Values

RETWEET_STATUS

public static final int RETWEET_STATUS
See Also:
Constant Field Values

SEARCH

public static final int SEARCH
See Also:
Constant Field Values

TRENDS

public static final int TRENDS
See Also:
Constant Field Values

CURRENT_TRENDS

public static final int CURRENT_TRENDS
See Also:
Constant Field Values

DAILY_TRENDS

public static final int DAILY_TRENDS
See Also:
Constant Field Values

WEEKLY_TRENDS

public static final int WEEKLY_TRENDS
See Also:
Constant Field Values
Constructor Detail

AsyncTwitter

public AsyncTwitter(java.lang.String id,
                    java.lang.String password)

AsyncTwitter

public AsyncTwitter(java.lang.String id,
                    java.lang.String password,
                    java.lang.String baseURL)
Method Detail

searchAcync

public void searchAcync(Query query,
                        TwitterListener listener)
Returns tweets that match a specified query.
This method calls http://search.twitter.com/search

Parameters:
query - - the search condition
listener - a listener object that receives the response
Since:
Twitter4J 1.1.7
See Also:
Twitter API / Search API Documentation, Twitter API / Search Operators

getTrendsAsync

public void getTrendsAsync(TwitterListener listener)
Returns the top ten topics that are currently trending on Twitter. The response includes the time of the request, the name of each trend, and the url to the Twitter Search results page for that topic.
This method calls http://search.twitter.com/trends

Parameters:
listener - a listener object that receives the response
Since:
Twitter4J 2.0.2
See Also:
Twitter Search API Method: trends

getCurrentTrendsAsync

public void getCurrentTrendsAsync(TwitterListener listener)
Returns the current top 10 trending topics on Twitter. The response includes the time of the request, the name of each trending topic, and query used on Twitter Search results page for that topic.
This method calls http://search.twitter.com/trends/current

Parameters:
listener - a listener object that receives the response
Since:
Twitter4J 2.0.2
See Also:
Twitter Search API Method: trends

getCurrentTrendsAsync

public void getCurrentTrendsAsync(boolean excludeHashTags,
                                  TwitterListener listener)
Returns the current top 10 trending topics on Twitter. The response includes the time of the request, the name of each trending topic, and query used on Twitter Search results page for that topic.
This method calls http://search.twitter.com/trends/current

Parameters:
excludeHashTags - Setting this to true will remove all hashtags from the trends list.
listener - a listener object that receives the response
Since:
Twitter4J 2.0.2
See Also:
Twitter Search API Method: trends

getDailyTrendsAsync

public void getDailyTrendsAsync(TwitterListener listener)
Returns the top 20 trending topics for each hour in a given day.
This method calls http://search.twitter.com/trends/daily

Parameters:
listener - a listener object that receives the response
Since:
Twitter4J 2.0.2
See Also:
Twitter Search API Method: trends daily

getDailyTrendsAsync

public void getDailyTrendsAsync(java.util.Date date,
                                boolean excludeHashTags,
                                TwitterListener listener)
Returns the top 20 trending topics for each hour in a given day.
This method calls http://search.twitter.com/trends/daily

Parameters:
date - Permits specifying a start date for the report.
excludeHashTags - Setting this to true will remove all hashtags from the trends list.
listener - a listener object that receives the response
Since:
Twitter4J 2.0.2
See Also:
Twitter Search API Method: trends daily

getWeeklyTrendsAsync

public void getWeeklyTrendsAsync(TwitterListener listener)
Returns the top 30 trending topics for each day in a given week.
This method calls http://search.twitter.com/trends/weekly

Parameters:
listener - a listener object that receives the response
Since:
Twitter4J 2.0.2
See Also:
Twitter Search API Method: trends weekly

getWeeklyTrendsAsync

public void getWeeklyTrendsAsync(java.util.Date date,
                                 boolean excludeHashTags,
                                 TwitterListener listener)
Returns the top 30 trending topics for each day in a given week.
This method calls http://search.twitter.com/trends/weekly

Parameters:
date - Permits specifying a start date for the report.
excludeHashTags - Setting this to true will remove all hashtags from the trends list.
listener - a listener object that receives the response
Since:
Twitter4J 2.0.2
See Also:
Twitter Search API Method: trends weekly

getPublicTimelineAsync

public void getPublicTimelineAsync(TwitterListener listener)

This method calls http://twitter.com/statuses/public_timeline Returns the 20 most recent statuses from non-protected users who have set a custom user icon.
This method calls http://twitter.com/statuses/public_timeline

Parameters:
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: statuses public_timeline

getPublicTimelineAsync

public void getPublicTimelineAsync(int sinceID,
                                   TwitterListener listener)
Deprecated. use getpublicTimelineAsync(long sinceID, TwitterListener listener)

Returns only public statuses with an ID greater than (that is, more recent than) the specified ID.
This method calls http://twitter.com/statuses/public_timeline

Parameters:
sinceID - String
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: statuses public_timeline

getPublicTimelineAsync

public void getPublicTimelineAsync(long sinceID,
                                   TwitterListener listener)
Returns only public statuses with an ID greater than (that is, more recent than) the specified ID.
This method calls http://twitter.com/statuses/public_timeline

Parameters:
sinceID - String
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: statuses public_timeline

getHomeTimelineAsync

public void getHomeTimelineAsync(TwitterListener listener)
Returns the 20 most recent statuses, including retweets, posted by the authenticating user and that user's friends. This is the equivalent of /timeline/home on the Web.
This method calls http://twitter.com/statuses/home_timeline

Parameters:
listener - a listener object that receives the response
Since:
Twitter4J 2.0.10
See Also:
Twitter API Wiki / Twitter REST API Method: statuses home_timeline

getHomeTimelineAsync

public void getHomeTimelineAsync(Paging paging,
                                 TwitterListener listener)
Returns the 20 most recent statuses, including retweets, posted by the authenticating user and that user's friends. This is the equivalent of /timeline/home on the Web.
This method calls http://twitter.com/statuses/home_timeline

Parameters:
paging - controls pagination
listener - a listener object that receives the response
Since:
Twitter4J 2.0.10
See Also:
Twitter API Wiki / Twitter REST API Method: statuses home_timeline

getFriendsTimelineAsync

public void getFriendsTimelineAsync(TwitterListener listener)
Returns the 20 most recent statuses posted in the last 24 hours from the authenticating user and that user's friends. It's also possible to request another user's friends_timeline via the id parameter below.

Parameters:
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: statuses friends_timeline

getFriendsTimelineAsync

public void getFriendsTimelineAsync(Paging paging,
                                    TwitterListener listener)
Returns the 20 most recent statuses posted in the last 24 hours from the authenticating user and that user's friends. It's also possible to request another user's friends_timeline via the id parameter below.
This method calls http://twitter.com/statuses/friends_timeline

Parameters:
paging - controls pagination
listener - a listener object that receives the response
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: statuses friends_timeline

getFriendsTimelineByPageAsync

public void getFriendsTimelineByPageAsync(int page,
                                          TwitterListener listener)
Deprecated. Use getFriendsTimelineAsync(Paging paging, TwitterListener listener) instead

Returns the 20 most recent statuses posted in the last 24 hours from the authenticating user.
This method calls http://twitter.com/statuses/friends_timeline

Parameters:
page - int
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: statuses friends_timeline

getFriendsTimelineAsync

public void getFriendsTimelineAsync(int page,
                                    TwitterListener listener)
Deprecated. Use getFriendsTimelineAsync(Paging paging, TwitterListener listener) instead

Returns the 20 most recent statuses posted in the last 24 hours from the authenticating user.
This method calls http://twitter.com/statuses/friends_timeline

Parameters:
page - int
listener - a listener object that receives the response
Since:
Twitter4J 1.1.8
See Also:
Twitter API Wiki / Twitter REST API Method: statuses friends_timeline

getFriendsTimelineAsync

public void getFriendsTimelineAsync(long sinceId,
                                    int page,
                                    TwitterListener listener)
Deprecated. Use getFriendsTimelineAsync(Paging paging, TwitterListener listener) instead

Returns the 20 most recent statuses posted in the last 24 hours from the authenticating user.
This method calls http://twitter.com/statuses/friends_timeline

Parameters:
sinceId - Returns only statuses with an ID greater than (that is, more recent than) the specified ID
page - int
listener - a listener object that receives the response
Since:
Twitter4J 1.1.8
See Also:
Twitter API Wiki / Twitter REST API Method: statuses friends_timeline

getFriendsTimelineAsync

public void getFriendsTimelineAsync(java.lang.String id,
                                    TwitterListener listener)
Deprecated. The Twitter API does not support this method anymore.

Returns the 20 most recent statuses posted in the last 24 hours from the specified user id.
This method calls http://twitter.com/statuses/friends_timeline

Parameters:
id - String user ID
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: statuses friends_timeline

getFriendsTimelineAsync

public void getFriendsTimelineAsync(java.lang.String id,
                                    Paging paging,
                                    TwitterListener listener)
Deprecated. The Twitter API does not support this method anymore.

Returns the 20 most recent statuses posted in the last 24 hours from the specified user id.
This method calls http://twitter.com/statuses/friends_timeline

Parameters:
id - String user ID
paging - controls pagination
listener - a listener object that receives the response
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: statuses friends_timeline

getFriendsTimelineByPageAsync

public void getFriendsTimelineByPageAsync(java.lang.String id,
                                          int page,
                                          TwitterListener listener)
Deprecated. The Twitter API does not support this method anymore.

Returns the 20 most recent statuses posted in the last 24 hours from the specified user id.
This method calls http://twitter.com/statuses/friends_timeline

Parameters:
id - String user ID
page - int
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: statuses friends_timeline

getFriendsTimelineAsync

public void getFriendsTimelineAsync(java.lang.String id,
                                    int page,
                                    TwitterListener listener)
Deprecated. The Twitter API does not support this method anymore.

Returns the 20 most recent statuses posted in the last 24 hours from the specified user id.
This method calls http://twitter.com/statuses/friends_timeline

Parameters:
id - String user ID
page - int
listener - a listener object that receives the response
Since:
Twitter4J 1.1.8
See Also:
Twitter API Wiki / Twitter REST API Method: statuses friends_timeline

getFriendsTimelineAsync

public void getFriendsTimelineAsync(long sinceId,
                                    java.lang.String id,
                                    int page,
                                    TwitterListener listener)
Deprecated. The Twitter API does not support this method anymore.

Returns the 20 most recent statuses posted in the last 24 hours from the authenticating user.
This method calls http://twitter.com/statuses/friends_timeline

Parameters:
sinceId - Returns only statuses with an ID greater than (that is, more recent than) the specified ID
id - specifies the ID or screen name of the user for whom to return the friends_timeline
page - the number of page
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: statuses friends_timeline

getFriendsTimelineAsync

public void getFriendsTimelineAsync(java.util.Date since,
                                    TwitterListener listener)
Deprecated. Use getFriendsTimelineAsync(String id, Paging paging, TwitterListener listener) instead

Returns the 20 most recent statuses posted in the last 24 hours from the authenticating user.
This method calls http://twitter.com/statuses/friends_timeline

Parameters:
since - Date
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: statuses friends_timeline

getFriendsTimelineAsync

public void getFriendsTimelineAsync(long sinceId,
                                    TwitterListener listener)
Deprecated. Use getFriendsTimelineAsync(Paging paging, TwitterListener listener) instead

Returns the 20 most recent statuses posted in the last 24 hours from the authenticating user.
This method calls http://twitter.com/statuses/friends_timeline

Parameters:
sinceId - Returns only statuses with an ID greater than (that is, more recent than) the specified ID
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: statuses friends_timeline

getFriendsTimelineAsync

public void getFriendsTimelineAsync(java.lang.String id,
                                    java.util.Date since,
                                    TwitterListener listener)
Deprecated. The Twitter API does not support this method anymore.

Returns the most recent statuses posted in the last 24 hours from the specified user id.
This method calls http://twitter.com/statuses/friends_timeline

Parameters:
id - String user ID
since - Date
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: statuses friends_timeline

getFriendsTimelineAsync

public void getFriendsTimelineAsync(java.lang.String id,
                                    long sinceId,
                                    TwitterListener listener)
Deprecated. The Twitter API does not support this method anymore.

Returns the most recent statuses posted in the last 24 hours from the specified user id.
This method calls http://twitter.com/statuses/friends_timeline

Parameters:
sinceId - Returns only statuses with an ID greater than (that is, more recent than) the specified ID
listener - a listener object that receives the response
id - String user ID
See Also:
Twitter API Wiki / Twitter REST API Method: statuses friends_timeline

getUserTimelineAsync

public void getUserTimelineAsync(java.lang.String id,
                                 int count,
                                 java.util.Date since,
                                 TwitterListener listener)
Deprecated. using long sinceId is suggested.

Returns the most recent statuses posted in the last 24 hours from the specified user id.
This method calls http://twitter.com/statuses/user_timeline

Parameters:
id - String
count - int
since - Date
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: statuses user_timeline

getUserTimelineAsync

public void getUserTimelineAsync(java.lang.String id,
                                 Paging paging,
                                 TwitterListener listener)
Returns the most recent statuses posted in the last 24 hours from the specified user id.
This method calls http://twitter.com/statuses/user_timeline

Parameters:
id - Specifies the ID or screen name of the user for whom to return the user_timeline.
paging - controls pagination
listener - a listener object that receives the response
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: statuses user_timeline

getUserTimelineAsync

public void getUserTimelineAsync(java.lang.String id,
                                 int page,
                                 long sinceId,
                                 TwitterListener listener)
Deprecated. Use getUserTimelineAsync(String id, Paging paging, TwitterListener listener) instead

Returns the most recent statuses posted in the last 24 hours from the specified user id.
This method calls http://twitter.com/statuses/user_timeline

Parameters:
id - String
page - int
sinceId - Returns only statuses with an ID greater than (that is, more recent than) the specified ID
listener - a listener object that receives the response
Since:
Twitter4J 2.0.0
See Also:
Twitter API Wiki / Twitter REST API Method: statuses user_timeline

getUserTimelineAsync

public void getUserTimelineAsync(java.lang.String id,
                                 java.util.Date since,
                                 TwitterListener listener)
Deprecated. using long sinceId is suggested.

Returns the most recent statuses posted in the last 24 hours from the specified user id.
This method calls http://twitter.com/statuses/user_timeline

Parameters:
id - String
since - Date
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: statuses user_timeline

getUserTimelineAsync

public void getUserTimelineAsync(java.lang.String id,
                                 int count,
                                 TwitterListener listener)
Deprecated. Use getUserTimelineAsync(String id, Paging paging, TwitterListener listener) instead

Returns the most recent statuses posted in the last 24 hours from the specified user id.
This method calls http://twitter.com/statuses/user_timeline

Parameters:
id - String
count - int
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: statuses user_timeline

getUserTimelineAsync

public void getUserTimelineAsync(int count,
                                 java.util.Date since,
                                 TwitterListener listener)
Deprecated. using long sinceId is suggested.

Returns the most recent statuses posted in the last 24 hours from the authenticating user.
This method calls http://twitter.com/statuses/user_timeline

Parameters:
count - int
since - Date
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: statuses user_timeline

getUserTimelineAsync

public void getUserTimelineAsync(Paging paging,
                                 TwitterListener listener)
Returns the most recent statuses posted in the last 24 hours from the specified user id.
This method calls http://twitter.com/statuses/user_timeline

Parameters:
paging - controls pagination
listener - a listener object that receives the response
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: statuses user_timeline

getUserTimelineAsync

public void getUserTimelineAsync(int count,
                                 long sinceId,
                                 TwitterListener listener)
Deprecated. Use getUserTimelineAsync(Paging paging, TwitterListener listener) instead

Returns the most recent statuses posted in the last 24 hours from the authenticating user.
This method calls http://twitter.com/statuses/user_timeline

Parameters:
count - int
sinceId - Returns only statuses with an ID greater than (that is, more recent than) the specified ID
listener - a listener object that receives the response
Since:
Twitter4J 2.0.0
See Also:
Twitter API Wiki / Twitter REST API Method: statuses user_timeline

getUserTimelineAsync

public void getUserTimelineAsync(java.lang.String id,
                                 TwitterListener listener)
Returns the most recent statuses posted in the last 24 hours from the specified user id.
This method calls http://twitter.com/statuses/user_timeline

Parameters:
id - String
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: statuses user_timeline

getUserTimelineAsync

public void getUserTimelineAsync(java.lang.String id,
                                 long sinceId,
                                 TwitterListener listener)
Deprecated. Use getUserTimelineAsync(String id, Paging paging, TwitterListener listener) instead

Returns the most recent statuses posted in the last 24 hours from the specified user id.
This method calls http://twitter.com/statuses/user_timeline

Parameters:
id - String
sinceId - Returns only statuses with an ID greater than (that is, more recent than) the specified ID
listener - a listener object that receives the response
Since:
Twitter4J 2.0.0
See Also:
Twitter API Wiki / Twitter REST API Method: statuses user_timeline

getUserTimelineAsync

public void getUserTimelineAsync(TwitterListener listener)
Returns the most recent statuses posted in the last 24 hours from the authenticating user.
This method calls http://twitter.com/statuses/user_timeline

Parameters:
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: statuses user_timeline

getUserTimelineAsync

public void getUserTimelineAsync(long sinceId,
                                 TwitterListener listener)
Deprecated. Use getUserTimelineAsync(Paging paging, TwitterListener listener) instead

Returns the most recent statuses posted in the last 24 hours from the authenticating user.
This method calls http://twitter.com/statuses/user_timeline

Parameters:
sinceId - Returns only statuses with an ID greater than (that is, more recent than) the specified ID
listener - a listener object that receives the response
Since:
Twitter4J 2.0.0
See Also:
Twitter API Wiki / Twitter REST API Method: statuses user_timeline

getRepliesAsync

public void getRepliesAsync(TwitterListener listener)
Deprecated. Use getMentionsAsync(TwitterListener listener) instead

Returns the 20 most recent replies (status updates prefixed with @username) to the authenticating user. Replies are only available to the authenticating user; you can not request a list of replies to another user whether public or protected.
This method calls http://twitter.com/statuses/mentions

Parameters:
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: statuses mentions

getMentionsAsync

public void getMentionsAsync(TwitterListener listener)
Returns the 20 most recent replies (status updates prefixed with @username) to the authenticating user. Replies are only available to the authenticating user; you can not request a list of replies to another user whether public or protected.
This method calls http://twitter.com/statuses/mentions

Parameters:
listener - a listener object that receives the response
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: statuses mentions

getMentionsAsync

public void getMentionsAsync(Paging paging,
                             TwitterListener listener)
Returns the 20 most recent replies (status updates prefixed with @username) to the authenticating user. Replies are only available to the authenticating user; you can not request a list of replies to another user whether public or protected.
This method calls http://twitter.com/statuses/mentions

Parameters:
paging - controls pagination
listener - a listener object that receives the response
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: statuses mentions

getRetweetedByMeAsync

public void getRetweetedByMeAsync(TwitterListener listener)
Returns the 20 most recent retweets posted by the authenticating user.
This method calls http://twitter.com/statuses/retweeted_by_me

Parameters:
listener - a listener object that receives the response
Since:
Twitter4J 2.0.10
See Also:
Twitter API Wiki / Twitter REST API Method: statuses/retweeted_by_me

getRetweetedByMeAsync

public void getRetweetedByMeAsync(Paging paging,
                                  TwitterListener listener)
Returns the 20 most recent retweets posted by the authenticating user.
This method calls http://twitter.com/statuses/retweeted_by_me

Parameters:
paging - controls pagination
listener - a listener object that receives the response
Since:
Twitter4J 2.0.10
See Also:
Twitter API Wiki / Twitter REST API Method: statuses/retweeted_by_me

getRetweetedToMeAsync

public void getRetweetedToMeAsync(TwitterListener listener)
Returns the 20 most recent retweets posted by the authenticating user's friends.
This method calls http://twitter.com/statuses/retweeted_to_me

Parameters:
listener - a listener object that receives the response
Since:
Twitter4J 2.0.10
See Also:
Twitter API Wiki / Twitter REST API Method: statuses/retweeted_to_me

getRetweetedToMeAsync

public void getRetweetedToMeAsync(Paging paging,
                                  TwitterListener listener)
Returns the 20 most recent retweets posted by the authenticating user's friends.
This method calls http://twitter.com/statuses/retweeted_to_me

Parameters:
paging - controls pagination
listener - a listener object that receives the response
Since:
Twitter4J 2.0.10
See Also:
Twitter API Wiki / Twitter REST API Method: statuses/retweeted_to_me

getRetweetsOfMeAsync

public void getRetweetsOfMeAsync(TwitterListener listener)
Returns the 20 most recent tweets of the authenticated user that have been retweeted by others.
This method calls http://twitter.com/statuses/retweets_of_me

Parameters:
listener - a listener object that receives the response
Since:
Twitter4J 2.0.10
See Also:
Twitter API Wiki / Twitter REST API Method: statuses/retweets_of_me

getRetweetsOfMeAsync

public void getRetweetsOfMeAsync(Paging paging,
                                 TwitterListener listener)
Returns the 20 most recent tweets of the authenticated user that have been retweeted by others.
This method calls http://twitter.com/statuses/retweets_of_me

Parameters:
paging - controls pagination
listener - a listener object that receives the response
Since:
Twitter4J 2.0.10
See Also:
Twitter API Wiki / Twitter REST API Method: statuses/retweets_of_me

getRepliesAsync

public void getRepliesAsync(long sinceId,
                            TwitterListener listener)
Deprecated. Use getMentionsAsync(Paging paging, TwitterListener listener) instead

Returns the 20 most recent replies (status updates prefixed with @username) to the authenticating user. Replies are only available to the authenticating user; you can not request a list of replies to another user whether public or protected.
This method calls http://twitter.com/statuses/mentions

Parameters:
sinceId - Returns only statuses with an ID greater than (that is, more recent than) the specified ID
listener - a listener object that receives the response
Since:
Twitter4J 1.1.8
See Also:
Twitter API Wiki / Twitter REST API Method: statuses mentions

getRepliesByPageAsync

public void getRepliesByPageAsync(int page,
                                  TwitterListener listener)
Deprecated. Use getMentionsAsync(Paging paging, TwitterListener listener) instead

Returns the 20 most recent replies (status updates prefixed with @username) to the authenticating user. Replies are only available to the authenticating user; you can not request a list of replies to another user whether public or protected.

Parameters:
page - int
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: statuses mentions

getRepliesAsync

public void getRepliesAsync(int page,
                            TwitterListener listener)
Deprecated. Use getMentionsAsync(Paging paging, TwitterListener listener) instead

Returns the 20 most recent replies (status updates prefixed with @username) to the authenticating user. Replies are only available to the authenticating user; you can not request a list of replies to another user whether public or protected.
This method calls http://twitter.com/statuses/mentions

Parameters:
page - int
listener - a listener object that receives the response
Since:
Twitter4J 1.1.8
See Also:
Twitter API Wiki / Twitter REST API Method: statuses mentions

getRepliesAsync

public void getRepliesAsync(long sinceId,
                            int page,
                            TwitterListener listener)
Deprecated. Use getMentionsAsync(Paging paging, TwitterListener listener) instead

Returns the 20 most recent replies (status updates prefixed with @username) to the authenticating user. Replies are only available to the authenticating user; you can not request a list of replies to another user whether public or protected.
This method calls http://twitter.com/statuses/mentions

Parameters:
sinceId - Returns only statuses with an ID greater than (that is, more recent than) the specified ID
page - int
listener - a listener object that receives the response
Since:
Twitter4J 1.1.8
See Also:
Twitter API Wiki / Twitter REST API Method: statuses mentions

showAsync

public void showAsync(int id,
                      TwitterListener listener)
Deprecated. Use showAsync(long id) instead.

Returns a single status, specified by the id parameter. The status's author will be returned inline.
This method calls http://twitter.com/statuses/show

Parameters:
id - int
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0show

showAsync

public void showAsync(long id,
                      TwitterListener listener)
Deprecated. Use showStatusAsync(long id, TwitterListener listener) instead

Returns a single status, specified by the id parameter. The status's author will be returned inline.
This method calls http://twitter.com/statuses/show

Parameters:
id - int
listener - a listener object that receives the response
Since:
1.1.1
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0show

showStatusAsync

public void showStatusAsync(long id,
                            TwitterListener listener)
Returns a single status, specified by the id parameter. The status's author will be returned inline.
This method calls http://twitter.com/statuses/show

Parameters:
id - int
listener - a listener object that receives the response
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0show

updateAsync

public void updateAsync(java.lang.String status,
                        TwitterListener listener)
Deprecated. Use updateStatusAsync(String status, TwitterListener listener) instead

Updates the user's status asynchronously
This method calls http://twitter.com/statuses/update

Parameters:
status - String
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0update

updateAsync

public void updateAsync(java.lang.String status)
Deprecated. Use updateStatusAsync(String status) instead

Updates the user's status asynchronously
This method calls http://twitter.com/statuses/update

Parameters:
status - String
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0update

updateStatusAsync

public void updateStatusAsync(java.lang.String status,
                              TwitterListener listener)
Updates the user's status asynchronously
This method calls http://twitter.com/statuses/update

Parameters:
status - String
listener - a listener object that receives the response
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0update

updateStatusAsync

public void updateStatusAsync(java.lang.String status)
Updates the user's status asynchronously
This method calls http://twitter.com/statuses/update

Parameters:
status - String
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0update

updateAsync

public void updateAsync(java.lang.String status,
                        long inReplyToStatusId,
                        TwitterListener listener)
Deprecated. Use updateStatusAsync(String status, long inReplyToStatusId, TwitterListener listener) instead

Updates the user's status asynchronously
This method calls http://twitter.com/statuses/update

Parameters:
status - String
inReplyToStatusId - The ID of an existing status that the status to be posted is in reply to. This implicitly sets the in_reply_to_user_id attribute of the resulting status to the user ID of the message being replied to. Invalid/missing status IDs will be ignored.
listener - a listener object that receives the response
Since:
Twitter4J 1.1.6
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0update

updateAsync

public void updateAsync(java.lang.String status,
                        long inReplyToStatusId)
Deprecated. Use updateStatusAsync(String status, long inReplyToStatusId) instead

Updates the user's status asynchronously
This method calls http://twitter.com/statuses/update

Parameters:
status - String
inReplyToStatusId - The ID of an existing status that the status to be posted is in reply to. This implicitly sets the in_reply_to_user_id attribute of the resulting status to the user ID of the message being replied to. Invalid/missing status IDs will be ignored.
Since:
Twitter4J 1.1.6
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0update

updateStatusAsync

public void updateStatusAsync(java.lang.String status,
                              long inReplyToStatusId,
                              TwitterListener listener)
Updates the user's status asynchronously
This method calls http://twitter.com/statuses/update

Parameters:
status - String
inReplyToStatusId - The ID of an existing status that the status to be posted is in reply to. This implicitly sets the in_reply_to_user_id attribute of the resulting status to the user ID of the message being replied to. Invalid/missing status IDs will be ignored.
listener - a listener object that receives the response
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0update

updateStatusAsync

public void updateStatusAsync(java.lang.String status,
                              long inReplyToStatusId)
Updates the user's status asynchronously
This method calls http://twitter.com/statuses/update

Parameters:
status - String
inReplyToStatusId - The ID of an existing status that the status to be posted is in reply to. This implicitly sets the in_reply_to_user_id attribute of the resulting status to the user ID of the message being replied to. Invalid/missing status IDs will be ignored.
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0update

destoryStatusAsync

public void destoryStatusAsync(int statusId)
Deprecated. Use destroyStatusAsync(long statuId) instead.

Destroys the status specified by the required ID parameter. asynchronously
This method calls http://twitter.com/statuses/destroy

Parameters:
statusId - String
Since:
1.0.5
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0destroy

destroyStatusAsync

public void destroyStatusAsync(int statusId)
Deprecated. Use destroyStatusAsync(long statuId) instead.

Destroys the status specified by the required ID parameter. asynchronously
This method calls http://twitter.com/statuses/destroy

Parameters:
statusId - String
Since:
1.1.2
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0destroy

destroyStatusAsync

public void destroyStatusAsync(long statusId)
Destroys the status specified by the required ID parameter. asynchronously
This method calls http://twitter.com/statuses/destroy

Parameters:
statusId - String
Since:
1.1.2
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0destroy

destoryStatusAsync

public void destoryStatusAsync(int statusId,
                               TwitterListener listener)
Deprecated. Use destroyStatusAsync(long statuId) instead.

Destroys the status specified by the required ID parameter. asynchronously
This method calls http://twitter.com/statuses/destroy

Parameters:
statusId - String
listener - a listener object that receives the response
Since:
1.0.6
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0destroy

destroyStatusAsync

public void destroyStatusAsync(int statusId,
                               TwitterListener listener)
Deprecated. Use destroyStatusAsync(long statuId) instead.

Destroys the status specified by the required ID parameter. asynchronously
This method calls http://twitter.com/statuses/destroy

Parameters:
statusId - String
listener - a listener object that receives the response
Since:
1.1.2
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0destroy

destroyStatusAsync

public void destroyStatusAsync(long statusId,
                               TwitterListener listener)
Destroys the status specified by the required ID parameter. asynchronously
This method calls http://twitter.com/statuses/destroy

Parameters:
statusId - String
listener - a listener object that receives the response
Since:
1.1.2
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0destroy

retweetStatusAsync

public void retweetStatusAsync(long statusId,
                               TwitterListener listener)
Retweets a tweet. Requires the id parameter of the tweet you are retweeting. Returns the original tweet with retweet details embedded.
This method calls http://twitter.com/statuses/retweet

Parameters:
statusId - The ID of the status to retweet.
listener - a listener object that receives the response
Since:
Twitter4J 2.0.10
See Also:
Twitter API Wiki / Twitter REST API Method: statuses retweet

retweetStatusAsync

public void retweetStatusAsync(long statusId)
Retweets a tweet. Requires the id parameter of the tweet you are retweeting. Returns the original tweet with retweet details embedded.
This method calls http://twitter.com/statuses/retweet

Parameters:
statusId - The ID of the status to retweet.
Since:
Twitter4J 2.0.10
See Also:
Twitter API Wiki / Twitter REST API Method: statuses retweet

getUserDetailAsync

public void getUserDetailAsync(java.lang.String id,
                               TwitterListener listener)
Deprecated. use showUserAsync(id,listener) instead

Retrieves extended information of a given user, specified by ID or screen name as per the required id parameter below. This information includes design settings, so third party developers can theme their widgets according to a given user's preferences.
This method calls http://twitter.com/users/show

Parameters:
id - String
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: users%C2%A0show

showUserAsync

public void showUserAsync(java.lang.String id,
                          TwitterListener listener)
Retrieves extended information of a given user, specified by ID or screen name as per the required id parameter below. This information includes design settings, so third party developers can theme their widgets according to a given user's preferences.
This method calls http://twitter.com/users/show

Parameters:
id - String
listener - a listener object that receives the response
Since:
Twitter4J 2.0.9
See Also:
Twitter API Wiki / Twitter REST API Method: users%C2%A0show

getFriendsAsync

public void getFriendsAsync(TwitterListener listener)
Deprecated. use getFriendsStatusesAsync(listener)

Returns the specified user's friends, each with current status inline.
This method calls http://twitter.com/statuses/friends

Parameters:
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0friends

getFriendsStatusesAsync

public void getFriendsStatusesAsync(TwitterListener listener)
Returns the specified user's friends, each with current status inline.
This method calls http://twitter.com/statuses/friends

Parameters:
listener - a listener object that receives the response
Since:
Twitter4J 2.0.9
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0friends

getFriendsAsync

public void getFriendsAsync(Paging paging,
                            TwitterListener listener)
Deprecated. use getFriendsStatusesAsync(paging,listener) instead

Returns the specified user's friends, each with current status inline.
This method calls http://twitter.com/statuses/friends

Parameters:
paging - controls pagination
listener - a listener object that receives the response
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0friends

getFriendsStatusesAsync

public void getFriendsStatusesAsync(Paging paging,
                                    TwitterListener listener)
Returns the specified user's friends, each with current status inline.
This method calls http://twitter.com/statuses/friends

Parameters:
paging - controls pagination
listener - a listener object that receives the response
Since:
Twitter4J 2.0.9
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0friends

getFriendsAsync

public void getFriendsAsync(int page,
                            TwitterListener listener)
Deprecated. Use getFriendsStatusesAsync(Paging paging,TwitterListener listener) instead

Returns the specified user's friends, each with current status inline.
This method calls http://twitter.com/statuses/friends

Parameters:
page - number of the page to retrieve friends
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0friends

getFriendsAsync

public void getFriendsAsync(java.lang.String id,
                            TwitterListener listener)
Deprecated. use getFriendsStatusesAsync(id, listener) instead

Returns the user's friends, each with current status inline.
This method calls http://twitter.com/statuses/friends

Parameters:
id - String
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0friends

getFriendsStatusesAsync

public void getFriendsStatusesAsync(java.lang.String id,
                                    TwitterListener listener)
Returns the user's friends, each with current status inline.
This method calls http://twitter.com/statuses/friends

Parameters:
id - String
listener - a listener object that receives the response
Since:
Twitter4J 2.0.9
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0friends

getFriendsAsync

public void getFriendsAsync(java.lang.String id,
                            Paging paging,
                            TwitterListener listener)
Deprecated. use getFriendsStatusesAsync(id, paging, listener) instead

Returns the user's friends, each with current status inline.
This method calls http://twitter.com/statuses/friends

Parameters:
id - String
paging - controls pagination
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0friends

getFriendsStatusesAsync

public void getFriendsStatusesAsync(java.lang.String id,
                                    Paging paging,
                                    TwitterListener listener)
Returns the user's friends, each with current status inline.
This method calls http://twitter.com/statuses/friends

Parameters:
id - String
paging - controls pagination
listener - a listener object that receives the response
Since:
Twitter4J 2.0.9
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0friends

getFriendsAsync

public void getFriendsAsync(java.lang.String id,
                            int page,
                            TwitterListener listener)
Deprecated. Use getFriendsStatusesAsync(String id, Paging paging, TwitterListener listener) instead

Returns the user's friends, each with current status inline.
This method calls http://twitter.com/statuses/friends

Parameters:
id - String
page - int
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0friends

getFollowersAsync

public void getFollowersAsync(TwitterListener listener)
Deprecated. use getFollowersStatusesAsync(listener)

Returns the authenticating user's followers, each with current status inline. They are ordered by the order in which they joined Twitter (this is going to be changed).
This method calls http://twitter.com/statuses/followers

Parameters:
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0followers

getFollowersStatusesAsync

public void getFollowersStatusesAsync(TwitterListener listener)
Returns the authenticating user's followers, each with current status inline. They are ordered by the order in which they joined Twitter (this is going to be changed).
This method calls http://twitter.com/statuses/followers

Parameters:
listener - a listener object that receives the response
Since:
Twitter4J 2.0.9
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0followers

getFollowersAsync

public void getFollowersAsync(Paging paging,
                              TwitterListener listener)
Returns the authenticating user's followers, each with current status inline. They are ordered by the order in which they joined Twitter (this is going to be changed).
This method calls http://twitter.com/statuses/followers

Parameters:
paging - controls pagination
listener - a listener object that receives the response
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0followers deprecated use getFollowersStatusesAsync(paging, listener) instead

getFollowersStatusesAsync

public void getFollowersStatusesAsync(Paging paging,
                                      TwitterListener listener)
Returns the authenticating user's followers, each with current status inline. They are ordered by the order in which they joined Twitter (this is going to be changed).
This method calls http://twitter.com/statuses/followers

Parameters:
paging - controls pagination
listener - a listener object that receives the response
Since:
Twitter4J 2.0.9
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0followers

getFollowersAsync

public void getFollowersAsync(int page,
                              TwitterListener listener)
Deprecated. Use getFollowersStatusesAsync(Paging paging, TwitterListener listener) instead

Returns the authenticating user's followers, each with current status inline. They are ordered by the order in which they joined Twitter (this is going to be changed).
This method calls http://twitter.com/statuses/followers

Parameters:
page - Retrieves the next 100 followers.
listener - a listener object that receives the response
Since:
Twitter4J 1.1.0
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0followers

getFollowersAsync

public void getFollowersAsync(java.lang.String id,
                              TwitterListener listener)
Deprecated. use getFollowersStatusesAsync(id, listener) instead

Returns the authenticating user's followers, each with current status inline. They are ordered by the order in which they joined Twitter (this is going to be changed).
This method calls http://twitter.com/statuses/followers

Parameters:
id - The ID or screen name of the user for whom to request a list of followers.
listener - a listener object that receives the response
Since:
Twitter4J 1.1.0
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0followers

getFollowersStatusesAsync

public void getFollowersStatusesAsync(java.lang.String id,
                                      TwitterListener listener)
Returns the authenticating user's followers, each with current status inline. They are ordered by the order in which they joined Twitter (this is going to be changed).
This method calls http://twitter.com/statuses/followers

Parameters:
id - The ID or screen name of the user for whom to request a list of followers.
listener - a listener object that receives the response
Since:
Twitter4J 2.0.9
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0followers

getFollowersAsync

public void getFollowersAsync(java.lang.String id,
                              Paging paging,
                              TwitterListener listener)
Deprecated. use getFollowersStatusesAsync(id, paging, listener) instead

Returns the authenticating user's followers, each with current status inline. They are ordered by the order in which they joined Twitter (this is going to be changed).
This method calls http://twitter.com/statuses/followers

Parameters:
id - The ID or screen name of the user for whom to request a list of followers.
paging - controls pagination
listener - a listener object that receives the response
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0followers

getFollowersStatusesAsync

public void getFollowersStatusesAsync(java.lang.String id,
                                      Paging paging,
                                      TwitterListener listener)
Returns the authenticating user's followers, each with current status inline. They are ordered by the order in which they joined Twitter (this is going to be changed).
This method calls http://twitter.com/statuses/followers

Parameters:
id - The ID or screen name of the user for whom to request a list of followers.
paging - controls pagination
listener - a listener object that receives the response
Since:
Twitter4J 2.0.9
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0followers

getFollowersAsync

public void getFollowersAsync(java.lang.String id,
                              int page,
                              TwitterListener listener)
Deprecated. Use getFollowersStatusesAsync(String id, Paging paging, TwitterListener listener) instead

Returns the authenticating user's followers, each with current status inline. They are ordered by the order in which they joined Twitter (this is going to be changed).
This method calls http://twitter.com/statuses/followers

Parameters:
id - The ID or screen name of the user for whom to request a list of followers.
page - Retrieves the next 100 followers.
listener - a listener object that receives the response
Since:
Twitter4J 1.1.0
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0followers

getFeaturedAsync

public void getFeaturedAsync(TwitterListener listener)
Returns a list of the users currently featured on the site with their current statuses inline.

Parameters:
listener - a listener object that receives the response

getDirectMessagesAsync

public void getDirectMessagesAsync(TwitterListener listener)
Returns a list of the direct messages sent to the authenticating user.
This method calls http://twitter.com/direct_messages

Parameters:
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: direct_messages

getDirectMessagesAsync

public void getDirectMessagesAsync(Paging paging,
                                   TwitterListener listener)
Returns a list of the direct messages sent to the authenticating user.
This method calls http://twitter.com/direct_messages

Parameters:
paging - controls pagination
listener - a listener object that receives the response
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: direct_messages

getDirectMessagesByPageAsync

public void getDirectMessagesByPageAsync(int page,
                                         TwitterListener listener)
Deprecated. Use getDirectMessagesAsync(Paging paging, TwitterListener listener) instead

Returns a list of the direct messages sent to the authenticating user.
This method calls http://twitter.com/direct_messages

Parameters:
page - int
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: direct_messages

getDirectMessagesByPageAsync

public void getDirectMessagesByPageAsync(int page,
                                         int sinceId,
                                         TwitterListener listener)
Deprecated. Use getDirectMessagesAsync(Paging paging, TwitterListener listener) instead

Returns a list of the direct messages sent to the authenticating user.
This method calls http://twitter.com/direct_messages

Parameters:
page - int
sinceId - Returns only direct messages with an ID greater than (that is, more recent than) the specified ID.
listener - a listener object that receives the response
Since:
Twitter4J 2.0.0
See Also:
Twitter API Wiki / Twitter REST API Method: direct_messages

getDirectMessagesAsync

public void getDirectMessagesAsync(int sinceId,
                                   TwitterListener listener)
Deprecated. Use getDirectMessagesAsync(Paging paging, TwitterListener listener) instead

Returns a list of the direct messages sent to the authenticating user.
This method calls http://twitter.com/direct_messages

Parameters:
sinceId - int
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: direct_messages

getDirectMessagesAsync

public void getDirectMessagesAsync(java.util.Date since,
                                   TwitterListener listener)
Deprecated. using long sinceId is suggested.

Returns a list of the direct messages sent to the authenticating user.
This method calls http://twitter.com/direct_messages

Parameters:
since - Date
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: direct_messages

getSentDirectMessagesAsync

public void getSentDirectMessagesAsync(TwitterListener listener)
Returns a list of the direct messages sent by the authenticating user.
This method calls http://twitter.com/direct_messages/sent

Parameters:
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: direct_messages%C2%A0sent

getSentDirectMessagesAsync

public void getSentDirectMessagesAsync(Paging paging,
                                       TwitterListener listener)
Returns a list of the direct messages sent by the authenticating user.
This method calls http://twitter.com/direct_messages/sent

Parameters:
paging - controls pagination
listener - a listener object that receives the response
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: direct_messages%C2%A0sent

getSentDirectMessagesAsync

public void getSentDirectMessagesAsync(java.util.Date since,
                                       TwitterListener listener)
Deprecated. using long sinceId is suggested.

Returns a list of the direct messages sent by the authenticating user.
This method calls http://twitter.com/direct_messages/sent

Parameters:
since - Date
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: direct_messages%C2%A0sent

getSentDirectMessagesAsync

public void getSentDirectMessagesAsync(int sinceId,
                                       TwitterListener listener)
Deprecated. Use getSentDirectMessagesAsync(Paging paging, TwitterListener listener) instead

Returns a list of the direct messages sent by the authenticating user.
This method calls http://twitter.com/direct_messages/sent

Parameters:
sinceId - returns only sent direct messages with an ID greater than (that is, more recent than) the specified ID
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: direct_messages%C2%A0sent

getSentDirectMessagesAsync

public void getSentDirectMessagesAsync(int page,
                                       int sinceId,
                                       TwitterListener listener)
Deprecated. Use getSentDirectMessagesAsync(Paging paging, TwitterListener listener) instead

Returns a list of the direct messages sent by the authenticating user.
This method calls http://twitter.com/direct_messages/sent

Parameters:
page - Retrieves the 20 next most recent direct messages.
sinceId - returns only sent direct messages with an ID greater than (that is, more recent than) the specified ID
listener - a listener object that receives the response
Since:
Twitter4J 2.0.0
See Also:
Twitter API Wiki / Twitter REST API Method: direct_messages%C2%A0sent

sendDirectMessageAsync

public void sendDirectMessageAsync(java.lang.String id,
                                   java.lang.String text,
                                   TwitterListener listener)
Sends a new direct message to the specified user from the authenticating user. Requires both the user and text parameters below. The text will be trimed if the length of the text is exceeding 140 characters.
This method calls http://twitter.com/direct_messages/new

Parameters:
id - String
text - String
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: direct_messages%C2%A0new

sendDirectMessageAsync

public void sendDirectMessageAsync(java.lang.String id,
                                   java.lang.String text)
Sends a new direct message to the specified user from the authenticating user. Requires both the user and text parameters below. The text will be trimed if the length of the text is exceeding 140 characters.
This method calls http://twitter.com/direct_messages/new

Parameters:
id - String
text - String
See Also:
Twitter API Wiki / Twitter REST API Method: direct_messages%C2%A0new

deleteDirectMessageAsync

public void deleteDirectMessageAsync(int id,
                                     TwitterListener listener)
Deprecated. Use destroyDirectMessageAsync(int id, TwitterListener listener) instead

Delete specified direct message
This method calls http://twitter.com/direct_messages/destroy

Parameters:
id - int
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: direct_messages%C2%A0destroy

destroyDirectMessageAsync

public void destroyDirectMessageAsync(int id,
                                      TwitterListener listener)
Delete specified direct message
This method calls http://twitter.com/direct_messages/destroy

Parameters:
id - int
listener - a listener object that receives the response
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: direct_messages%C2%A0destroy

destroyDirectMessageAsync

public void destroyDirectMessageAsync(int id)
Delete specified direct message
This method calls http://twitter.com/direct_messages/destroy

Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: direct_messages%C2%A0destroy

createAsync

public void createAsync(java.lang.String id,
                        TwitterListener listener)
Deprecated. Use createFriendshipAsync(String id, TwitterListener listener) instead

Befriends the user specified in the ID parameter as the authenticating user. Returns the befriended user in the requested format when successful.
This method calls http://twitter.com/friendships/create

Parameters:
id - String
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: friendships%C2%A0create

createFriendshipAsync

public void createFriendshipAsync(java.lang.String id,
                                  TwitterListener listener)
Befriends the user specified in the ID parameter as the authenticating user. Returns the befriended user in the requested format when successful.
This method calls http://twitter.com/friendships/create

Parameters:
id - String
listener - a listener object that receives the response
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: friendships%C2%A0create

createFriendshipAsync

public void createFriendshipAsync(java.lang.String id,
                                  boolean follow,
                                  TwitterListener listener)
Befriends the user specified in the ID parameter as the authenticating user. Returns the befriended user in the requested format when successful.
This method calls http://twitter.com/friendships/create

Parameters:
id - the ID or screen name of the user to be befriended
follow - Enable notifications for the target user in addition to becoming friends.
listener - a listener object that receives the response
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: friendships%C2%A0create

createAsync

public void createAsync(java.lang.String id)
Deprecated. Use createFriendshipAsync(String id) instead

Befriends the user specified in the ID parameter as the authenticating user. Returns the befriended user in the requested format when successful.
This method calls http://twitter.com/friendships/create

Parameters:
id - String
See Also:
Twitter API Wiki / Twitter REST API Method: friendships%C2%A0create

createFriendshipAsync

public void createFriendshipAsync(java.lang.String id)
Befriends the user specified in the ID parameter as the authenticating user. Returns the befriended user in the requested format when successful.
This method calls http://twitter.com/friendships/create

Parameters:
id - String
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: friendships%C2%A0create

destroyAsync

public void destroyAsync(java.lang.String id,
                         TwitterListener listener)
Deprecated. Use destroyFriendshipAsync(String id, TwitterListener listener) instead

Discontinues friendship with the specified in the ID parameter as the authenticating user. Returns the un-friended user in the requested format when successful.
This method calls http://twitter.com/friendships/destroy

Parameters:
id - String
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: friendships%C2%A0destroy

destroyAsync

public void destroyAsync(java.lang.String id)
Deprecated. Use destroyFriendshipAsync(String id) instead

Discontinues friendship with the specified in the ID parameter as the authenticating user. Returns the un-friended user in the requested format when successful.
This method calls http://twitter.com/friendships/destroy

Parameters:
id - String
See Also:
Twitter API Wiki / Twitter REST API Method: friendships%C2%A0destroy

destroyFriendshipAsync

public void destroyFriendshipAsync(java.lang.String id,
                                   TwitterListener listener)
Discontinues friendship with the specified in the ID parameter as the authenticating user. Returns the un-friended user in the requested format when successful.
This method calls http://twitter.com/friendships/destroy

Parameters:
id - String
listener - a listener object that receives the response
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: friendships%C2%A0destroy

destroyFriendshipAsync

public void destroyFriendshipAsync(java.lang.String id)
Discontinues friendship with the specified in the ID parameter as the authenticating user. Returns the un-friended user in the requested format when successful.
This method calls http://twitter.com/friendships/destroy

Parameters:
id - String
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: friendships%C2%A0destroy

existsAsync

public void existsAsync(java.lang.String userA,
                        java.lang.String userB,
                        TwitterListener listener)
Deprecated. existsFriendshipAsync(String user_a, String user_b, TwitterListener listener)

Tests if a friendship exists between two users.
This method calls http://twitter.com/friendships/exists

Parameters:
userA - The ID or screen_name of the first user to test friendship for.
userB - The ID or screen_name of the second user to test friendship for.
See Also:
Twitter API Wiki / Twitter REST API Method: friendships exists

existsFriendshipAsync

public void existsFriendshipAsync(java.lang.String userA,
                                  java.lang.String userB,
                                  TwitterListener listener)
Tests if a friendship exists between two users.
This method calls http://twitter.com/friendships/exists

Parameters:
userA - The ID or screen_name of the first user to test friendship for.
userB - The ID or screen_name of the second user to test friendship for.
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: friendships exists

getFriendsIDsAsync

public void getFriendsIDsAsync(TwitterListener listener)
Returns an array of numeric IDs for every user the authenticating user is following.
This method calls http://twitter.com/friends/ids%C2%A0%C2%A0

Parameters:
listener - a listener object that receives the response
Since:
Twitter4J 2.0.0
See Also:
Twitter API Wiki / Twitter REST API Method: friends%C2%A0ids

getFriendsIDsAsync

public void getFriendsIDsAsync(Paging paging,
                               TwitterListener listener)
Deprecated. use getFriendsIDsAsync(long cursor, TwitterListener listener) instead

Returns an array of numeric IDs for every user the authenticating user is following.
This method calls http://twitter.com/friends/ids%C2%A0%C2%A0

Parameters:
listener - a listener object that receives the response
paging - Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: friends%C2%A0ids

getFriendsIDsAsync

public void getFriendsIDsAsync(long cursor,
                               TwitterListener listener)
Returns an array of numeric IDs for every user the authenticating user is following.
This method calls http://twitter.com/friends/ids%C2%A0%C2%A0

Parameters:
listener - a listener object that receives the response
cursor - Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.
Since:
Twitter4J 2.0.10
See Also:
Twitter API Wiki / Twitter REST API Method: friends%C2%A0ids

getFriendsIDsAsync

public void getFriendsIDsAsync(int userId,
                               TwitterListener listener)
Returns an array of numeric IDs for every user the specified user is following.
This method calls http://twitter.com/friends/ids%C2%A0%C2%A0

Parameters:
userId - Specfies the ID of the user for whom to return the friends list.
listener - a listener object that receives the response
Since:
Twitter4J 2.0.0
See Also:
Twitter API Wiki / Twitter REST API Method: friends%C2%A0ids

getFriendsIDsAsync

public void getFriendsIDsAsync(int userId,
                               Paging paging,
                               TwitterListener listener)
Deprecated. use getFriendsIDsAsync(int userId, long cursor, TwitterListener listener) instead

Returns an array of numeric IDs for every user the specified user is following.
This method calls http://twitter.com/friends/ids%C2%A0%C2%A0

Parameters:
userId - Specfies the ID of the user for whom to return the friends list.
paging - Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.
listener - a listener object that receives the response
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: friends%C2%A0ids

getFriendsIDsAsync

public void getFriendsIDsAsync(int userId,
                               long cursor,
                               TwitterListener listener)
Returns an array of numeric IDs for every user the specified user is following.
This method calls http://twitter.com/friends/ids%C2%A0%C2%A0

Parameters:
userId - Specifies the ID of the user for whom to return the friends list.
cursor - Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.
listener - a listener object that receives the response
Since:
Twitter4J 2.0.10
See Also:
Twitter API Wiki / Twitter REST API Method: friends%C2%A0ids

getFriendsIDsAsync

public void getFriendsIDsAsync(java.lang.String screenName,
                               TwitterListener listener)
Returns an array of numeric IDs for every user the specified user is following.
This method calls http://twitter.com/friends/ids%C2%A0%C2%A0

Parameters:
screenName - Specfies the screen name of the user for whom to return the friends list.
listener - a listener object that receives the response
Since:
Twitter4J 2.0.0
See Also:
Twitter API Wiki / Twitter REST API Method: friends%C2%A0ids

getFriendsIDsAsync

public void getFriendsIDsAsync(java.lang.String screenName,
                               Paging paging,
                               TwitterListener listener)
Deprecated. use getFriendsIDsAsync(String screenName, long cursor, TwitterListener listener) instead

Returns an array of numeric IDs for every user the specified user is following.
This method calls http://twitter.com/friends/ids%C2%A0%C2%A0

Parameters:
screenName - Specfies the screen name of the user for whom to return the friends list.
paging - Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.
listener - a listener object that receives the response
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: friends%C2%A0ids

getFriendsIDsAsync

public void getFriendsIDsAsync(java.lang.String screenName,
                               long cursor,
                               TwitterListener listener)
Returns an array of numeric IDs for every user the specified user is following.
This method calls http://twitter.com/friends/ids%C2%A0%C2%A0

Parameters:
screenName - Specfies the screen name of the user for whom to return the friends list.
cursor - Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.
listener - a listener object that receives the response
Since:
Twitter4J 2.0.10
See Also:
Twitter API Wiki / Twitter REST API Method: friends%C2%A0ids

getFollowersIDsAsync

public void getFollowersIDsAsync(TwitterListener listener)
Returns an array of numeric IDs for every user the specified user is followed by.
This method calls http://twitter.com/followers/ids

Parameters:
listener - a listener object that receives the response
Since:
Twitter4J 2.0.0
See Also:
Twitter API Wiki / Twitter REST API Method: followers%C2%A0ids

getFollowersIDsAsync

public void getFollowersIDsAsync(Paging paging,
                                 TwitterListener listener)
Deprecated. use getFollowersIDsAsync(long cursor, TwitterListener listener) instead

Returns an array of numeric IDs for every user the specified user is followed by.
This method calls http://twitter.com/followers/ids

Parameters:
listener - a listener object that receives the response
paging - Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: followers%C2%A0ids

getFollowersIDsAsync

public void getFollowersIDsAsync(long cursor,
                                 TwitterListener listener)
Returns an array of numeric IDs for every user the specified user is followed by.
This method calls http://twitter.com/followers/ids

Parameters:
cursor - Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.
listener - a listener object that receives the response
Since:
Twitter4J 2.0.10
See Also:
Twitter API Wiki / Twitter REST API Method: followers%C2%A0ids

getFollowersIDsAsync

public void getFollowersIDsAsync(int userId,
                                 TwitterListener listener)
Returns an array of numeric IDs for every user the specified user is followed by.
This method calls http://twitter.com/followers/ids

Parameters:
userId - Specfies the ID of the user for whom to return the followers list.
listener - a listener object that receives the response
Since:
Twitter4J 2.0.0
See Also:
Twitter API Wiki / Twitter REST API Method: followers%C2%A0ids

getFollowersIDsAsync

public void getFollowersIDsAsync(int userId,
                                 Paging paging,
                                 TwitterListener listener)
Deprecated. use getFollowersIDsAsync(int userId, long cursor, TwitterListener listener) instead

Returns an array of numeric IDs for every user the specified user is followed by.
This method calls http://twitter.com/followers/ids

Parameters:
userId - Specfies the ID of the user for whom to return the followers list.
paging - Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.
listener - a listener object that receives the response
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: followers%C2%A0ids

getFollowersIDsAsync

public void getFollowersIDsAsync(int userId,
                                 long cursor,
                                 TwitterListener listener)
Returns an array of numeric IDs for every user the specified user is followed by.
This method calls http://twitter.com/followers/ids

Parameters:
userId - Specfies the ID of the user for whom to return the followers list.
cursor - Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.
listener - a listener object that receives the response
Since:
Twitter4J 2.0.10
See Also:
Twitter API Wiki / Twitter REST API Method: followers%C2%A0ids

getFollowersIDsAsync

public void getFollowersIDsAsync(java.lang.String screenName,
                                 TwitterListener listener)
                          throws TwitterException
Returns an array of numeric IDs for every user the specified user is followed by.
This method calls http://twitter.com/followers/ids

Parameters:
screenName - Specfies the screen name of the user for whom to return the followers list.
listener - a listener object that receives the response
Throws:
TwitterException
Since:
Twitter4J 2.0.0
See Also:
Twitter API Wiki / Twitter REST API Method: followers%C2%A0ids

getFollowersIDsAsync

public void getFollowersIDsAsync(java.lang.String screenName,
                                 Paging paging,
                                 TwitterListener listener)
                          throws TwitterException
Deprecated. use getFollowersIDsAsync(String screenName, long cursor, TwitterListener listener) instead

Returns an array of numeric IDs for every user the specified user is followed by.
This method calls http://twitter.com/followers/ids

Parameters:
screenName - Specfies the screen name of the user for whom to return the followers list.
paging - Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.
listener - a listener object that receives the response
Throws:
TwitterException
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: followers%C2%A0ids

getFollowersIDsAsync

public void getFollowersIDsAsync(java.lang.String screenName,
                                 long cursor,
                                 TwitterListener listener)
                          throws TwitterException
Returns an array of numeric IDs for every user the specified user is followed by.
This method calls http://twitter.com/followers/ids

Parameters:
screenName - Specfies the screen name of the user for whom to return the followers list.
cursor - Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.
listener - a listener object that receives the response
Throws:
TwitterException
Since:
Twitter4J 2.0.10
See Also:
Twitter API Wiki / Twitter REST API Method: followers%C2%A0ids

updateLocationAsync

public void updateLocationAsync(java.lang.String location,
                                TwitterListener listener)
Deprecated. Use updateProfileAsync(String name, String email, String url, String location, String description, TwitterListener listener) instead

Updates the location

Parameters:
location - the current location of the user
listener - a listener object that receives the response
Since:
Twitter4J 1.0.4

updateProfileAsync

public void updateProfileAsync(java.lang.String name,
                               java.lang.String email,
                               java.lang.String url,
                               java.lang.String location,
                               java.lang.String description,
                               TwitterListener listener)
Sets values that users are able to set under the "Account" tab of their settings page. Only the parameters specified(non-null) will be updated.

Parameters:
name - Optional. Maximum of 20 characters.
email - Optional. Maximum of 40 characters. Must be a valid email address.
url - Optional. Maximum of 100 characters. Will be prepended with "http://" if not present.
location - Optional. Maximum of 30 characters. The contents are not normalized or geocoded in any way.
description - Optional. Maximum of 160 characters.
listener - a listener object that receives the response
Since:
Twitter4J 2.0.2

updateProfileAsync

public void updateProfileAsync(java.lang.String name,
                               java.lang.String email,
                               java.lang.String url,
                               java.lang.String location,
                               java.lang.String description)
Sets values that users are able to set under the "Account" tab of their settings page. Only the parameters specified(non-null) will be updated.

Parameters:
name - Optional. Maximum of 20 characters.
email - Optional. Maximum of 40 characters. Must be a valid email address.
url - Optional. Maximum of 100 characters. Will be prepended with "http://" if not present.
location - Optional. Maximum of 30 characters. The contents are not normalized or geocoded in any way.
description - Optional. Maximum of 160 characters.
Since:
Twitter4J 2.0.2

rateLimitStatusAsync

public void rateLimitStatusAsync(TwitterListener listener)
Gets the remaining number of API requests available to the requesting user before the API limit is reached for the current hour. Calls to rate_limit_status do not count against the rate limit. If authentication credentials are provided, the rate limit status for the authenticating user is returned. Otherwise, the rate limit status for the requester's IP address is returned.
This method calls http://twitter.com/account/rate_limit_status

Since:
Twitter4J 1.1.4
See Also:
Twitter API Wiki / Twitter REST API Method: account%C2%A0rate_limit_status

updateDeliverlyDeviceAsync

public void updateDeliverlyDeviceAsync(Twitter.Device device,
                                       TwitterListener listener)
Sets which device Twitter delivers updates to for the authenticating user. Sending none as the device parameter will disable IM or SMS updates.
This method calls http://twitter.com/account/update_delivery_device

Parameters:
device - new Delivery device. Must be one of: IM, SMS, NONE.
listener - a listener object that receives the response
Since:
Twitter4J 1.0.4
See Also:
Twitter API Wiki / Twitter REST API Method: account%C2%A0update_delivery_device

updateProfileColorsAsync

public void updateProfileColorsAsync(java.lang.String profileBackgroundColor,
                                     java.lang.String profileTextColor,
                                     java.lang.String profileLinkColor,
                                     java.lang.String profileSidebarFillColor,
                                     java.lang.String profileSidebarBorderColor,
                                     TwitterListener listener)
Sets one or more hex values that control the color scheme of the authenticating user's profile page on twitter.com. These values are also returned in the getUserDetail() method.
This method calls http://twitter.com/account/update_profile_colors

Parameters:
profileBackgroundColor - optional, can be null
profileTextColor - optional, can be null
profileLinkColor - optional, can be null
profileSidebarFillColor - optional, can be null
profileSidebarBorderColor - optional, can be null
listener - a listener object that receives the response
Since:
Twitter4J 2.0.0
See Also:
Twitter API Wiki / Twitter REST API Method: account%C2%A0update_profile_colors

updateProfileColorsAsync

public void updateProfileColorsAsync(java.lang.String profileBackgroundColor,
                                     java.lang.String profileTextColor,
                                     java.lang.String profileLinkColor,
                                     java.lang.String profileSidebarFillColor,
                                     java.lang.String profileSidebarBorderColor)
Sets one or more hex values that control the color scheme of the authenticating user's profile page on twitter.com. These values are also returned in the getUserDetail() method.
This method calls http://twitter.com/account/update_profile_colors

Parameters:
profileBackgroundColor - optional, can be null
profileTextColor - optional, can be null
profileLinkColor - optional, can be null
profileSidebarFillColor - optional, can be null
profileSidebarBorderColor - optional, can be null
Since:
Twitter4J 2.0.0
See Also:
Twitter API Wiki / Twitter REST API Method: account%C2%A0update_profile_colors

favoritesAsync

public void favoritesAsync(TwitterListener listener)
Deprecated. Use getFavoritesAsync(TwitterListener listener) instead

Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
This method calls http://twitter.com/favorites

Parameters:
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: favorites

getFavoritesAsync

public void getFavoritesAsync(TwitterListener listener)
Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
This method calls http://twitter.com/favorites

Parameters:
listener - a listener object that receives the response
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: favorites

favoritesAsync

public void favoritesAsync(int page,
                           TwitterListener listener)
Deprecated. Use getFavoritesAsync(int page, TwitterListener listener) instead

Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
This method calls http://twitter.com/favorites

Parameters:
page - number of page to retrieve favorites
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: favorites

getFavoritesAsync

public void getFavoritesAsync(int page,
                              TwitterListener listener)
Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
This method calls http://twitter.com/favorites

Parameters:
page - number of page to retrieve favorites
listener - a listener object that receives the response
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: favorites

favoritesAsync

public void favoritesAsync(java.lang.String id,
                           TwitterListener listener)
Deprecated. Use getFavoritesAsync(String id,TwitterListener listener) instead

Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
This method calls http://twitter.com/favorites

Parameters:
id - the ID or screen name of the user for whom to request a list of favorite statuses
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: favorites

getFavoritesAsync

public void getFavoritesAsync(java.lang.String id,
                              TwitterListener listener)
Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
This method calls http://twitter.com/favorites

Parameters:
id - the ID or screen name of the user for whom to request a list of favorite statuses
listener - a listener object that receives the response
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: favorites

favoritesAsync

public void favoritesAsync(java.lang.String id,
                           int page,
                           TwitterListener listener)
Deprecated. Use getFavoritesAsync(String id,int page, TwitterListener listener) instead

Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
This method calls http://twitter.com/favorites

Parameters:
id - the ID or screen name of the user for whom to request a list of favorite statuses.
page - retrieves the 20 next most recent favorite statuses.
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: favorites

getFavoritesAsync

public void getFavoritesAsync(java.lang.String id,
                              int page,
                              TwitterListener listener)
Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
This method calls http://twitter.com/favorites

Parameters:
id - the ID or screen name of the user for whom to request a list of favorite statuses.
page - retrieves the 20 next most recent favorite statuses.
listener - a listener object that receives the response
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: favorites

createFavoriteAsync

public void createFavoriteAsync(int id,
                                TwitterListener listener)
Deprecated. Use createFavoriteAsync(long id, TwitterListener listener) instead.

Favorites the status specified in the ID parameter as the authenticating user. Returns the favorite status when successful.
This method calls http://twitter.com/favorites/create%C2%A0

Parameters:
id - the ID or screen name of the user for whom to request a list of favorite statuses.
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: favorites%C2%A0create

createFavoriteAsync

public void createFavoriteAsync(long id,
                                TwitterListener listener)
Favorites the status specified in the ID parameter as the authenticating user. Returns the favorite status when successful.
This method calls http://twitter.com/favorites/create%C2%A0

Parameters:
id - the ID or screen name of the user for whom to request a list of favorite statuses.
listener - a listener object that receives the response
Since:
1.1.2
See Also:
Twitter API Wiki / Twitter REST API Method: favorites%C2%A0create

createFavoriteAsync

public void createFavoriteAsync(int id)
Deprecated. Use createFavoriteAsync(long id, TwitterListener listener) instead.

Favorites the status specified in the ID parameter as the authenticating user. Returns the favorite status when successful.
This method calls http://twitter.com/favorites/create%C2%A0

Parameters:
id - the ID or screen name of the user for whom to request a list of favorite statuses.
See Also:
Twitter API Wiki / Twitter REST API Method: favorites%C2%A0create

createFavoriteAsync

public void createFavoriteAsync(long id)
Favorites the status specified in the ID parameter as the authenticating user. Returns the favorite status when successful.
This method calls http://twitter.com/favorites/create%C2%A0

Parameters:
id - the ID or screen name of the user for whom to request a list of favorite statuses.
Since:
1.1.2
See Also:
Twitter API Wiki / Twitter REST API Method: favorites%C2%A0create

destroyFavoriteAsync

public void destroyFavoriteAsync(int id,
                                 TwitterListener listener)
Deprecated. Use destroyFavoriteAsync(long id, TwitterListener listener) instead.

Favorites the status specified in the ID parameter as the authenticating user. Returns the favorite status when successful.
This method calls http://twitter.com/favorites/destroy

Parameters:
id - the ID or screen name of the user for whom to request a list of un-favorite statuses.
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: favorites%C2%A0destroy

destroyFavoriteAsync

public void destroyFavoriteAsync(long id,
                                 TwitterListener listener)
Favorites the status specified in the ID parameter as the authenticating user. Returns the favorite status when successful.
This method calls http://twitter.com/favorites/destroy

Parameters:
id - the ID or screen name of the user for whom to request a list of un-favorite statuses.
listener - a listener object that receives the response
Since:
1.1.2
See Also:
Twitter API Wiki / Twitter REST API Method: favorites%C2%A0destroy

destroyFavoriteAsync

public void destroyFavoriteAsync(int id)
Deprecated. Use destroyFavoriteAsync(long id) instead.

Favorites the status specified in the ID parameter as the authenticating user. Returns the favorite status when successful.
This method calls http://twitter.com/favorites/destroy

Parameters:
id - the ID or screen name of the user for whom to request a list of un-favorite statuses.
See Also:
Twitter API Wiki / Twitter REST API Method: favorites%C2%A0destroy

destroyFavoriteAsync

public void destroyFavoriteAsync(long id)
Favorites the status specified in the ID parameter as the authenticating user. Returns the favorite status when successful.
This method calls http://twitter.com/favorites/destroy

Parameters:
id - the ID or screen name of the user for whom to request a list of un-favorite statuses.
Since:
1.1.2
See Also:
Twitter API Wiki / Twitter REST API Method: favorites%C2%A0destroy

followAsync

public void followAsync(java.lang.String id,
                        TwitterListener listener)
Deprecated. Use enableNotificationAsync(String id, TwitterListener listener) instead

Enables notifications for updates from the specified user to the authenticating user. Returns the specified user when successful.
This method calls http://twitter.com/notifications/follow

Parameters:
id - String
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: notifications%C2%A0follow

enableNotificationAsync

public void enableNotificationAsync(java.lang.String id,
                                    TwitterListener listener)
Enables notifications for updates from the specified user to the authenticating user. Returns the specified user when successful.
This method calls http://twitter.com/notifications/follow

Parameters:
id - String
listener - a listener object that receives the response
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: notifications%C2%A0follow

followAsync

public void followAsync(java.lang.String id)
Deprecated. Use enableNotificationAsync(String id) instead

Enables notifications for updates from the specified user to the authenticating user. Returns the specified user when successful.
This method calls http://twitter.com/notifications/follow

Parameters:
id - String
See Also:
Twitter API Wiki / Twitter REST API Method: notifications%C2%A0follow

enableNotificationAsync

public void enableNotificationAsync(java.lang.String id)
Enables notifications for updates from the specified user to the authenticating user. Returns the specified user when successful.
This method calls http://twitter.com/notifications/leave

Parameters:
id - String
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: notifications%C2%A0follow

leaveAsync

public void leaveAsync(java.lang.String id,
                       TwitterListener listener)
Deprecated. Use disableNotificationAsync(String id, TwitterListener listener) instead

Disables notifications for updates from the specified user to the authenticating user. Returns the specified user when successful.
This method calls http://twitter.com/notifications/leave

Parameters:
id - String
listener - a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: notifications%C2%A0leave

disableNotificationAsync

public void disableNotificationAsync(java.lang.String id,
                                     TwitterListener listener)
Disables notifications for updates from the specified user to the authenticating user. Returns the specified user when successful.
This method calls http://twitter.com/notifications/leave

Parameters:
id - String
listener - a listener object that receives the response
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: notifications%C2%A0leave

leaveAsync

public void leaveAsync(java.lang.String id)
Deprecated. Use disableNotificationAsync(String id) instead

Disables notifications for updates from the specified user to the authenticating user. Returns the specified user when successful.
This method calls http://twitter.com/notifications/leave

Parameters:
id - String
See Also:
Twitter API Wiki / Twitter REST API Method: notifications%C2%A0leave

disableNotificationAsync

public void disableNotificationAsync(java.lang.String id)
Disables notifications for updates from the specified user to the authenticating user. Returns the specified user when successful.
This method calls http://twitter.com/notifications/leave

Parameters:
id - String
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: notifications%C2%A0leave

blockAsync

public void blockAsync(java.lang.String id)
Deprecated. Use createBlockAsync(String id) instead

Blocks the user specified in the ID parameter as the authenticating user. Returns the blocked user in the requested format when successful.
This method calls http://twitter.com/blocks/create%C2%A0

Parameters:
id - the ID or screen_name of the user to block
Since:
Twitter4J 1.0.4
See Also:
Twitter API Wiki / Twitter REST API Method: blocks%C2%A0create

createBlockAsync

public void createBlockAsync(java.lang.String id,
                             TwitterListener listener)
Blocks the user specified in the ID parameter as the authenticating user. Returns the blocked user in the requested format when successful.
This method calls http://twitter.com/blocks/create%C2%A0

Parameters:
id - the ID or screen_name of the user to block
listener - a listener object that receives the response
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: blocks%C2%A0create

createBlockAsync

public void createBlockAsync(java.lang.String id)
Blocks the user specified in the ID parameter as the authenticating user. Returns the blocked user in the requested format when successful.
This method calls http://twitter.com/blocks/create%C2%A0

Parameters:
id - the ID or screen_name of the user to block
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: blocks%C2%A0create

unblockAsync

public void unblockAsync(java.lang.String id)
Deprecated. Use destroyBlockAsync(String id, TwitterListener listener) instead

Un-blocks the user specified in the ID parameter as the authenticating user. Returns the un-blocked user in the requested format when successful.
This method calls http://twitter.com/blocks/create%C2%A0

Parameters:
id - the ID or screen_name of the user to block
Since:
Twitter4J 1.0.4
See Also:
Twitter API Wiki / Twitter REST API Method: blocks%C2%A0destroy

destroyBlockAsync

public void destroyBlockAsync(java.lang.String id,
                              TwitterListener listener)
Un-blocks the user specified in the ID parameter as the authenticating user. Returns the un-blocked user in the requested format when successful.
This method calls http://twitter.com/blocks/create%C2%A0

Parameters:
id - the ID or screen_name of the user to block
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: blocks%C2%A0destroy

destroyBlockAsync

public void destroyBlockAsync(java.lang.String id)
Un-blocks the user specified in the ID parameter as the authenticating user. Returns the un-blocked user in the requested format when successful.
This method calls http://twitter.com/blocks/create%C2%A0

Parameters:
id - the ID or screen_name of the user to block
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: blocks%C2%A0destroy

existsBlockAsync

public void existsBlockAsync(java.lang.String id,
                             TwitterListener listener)
Tests if a friendship exists between two users.
This method calls http://twitter.com/blocks/exists/id.xml

Parameters:
id - The ID or screen_name of the potentially blocked user.
Since:
Twitter4J 2.0.4
See Also:
Twitter API Wiki / Twitter REST API Method: blocks exists

getBlockingUsersAsync

public void getBlockingUsersAsync(TwitterListener listener)
                           throws TwitterException
Returns a list of user objects that the authenticating user is blocking.
This method calls http://twitter.com/blocks/blocking.xml

Throws:
TwitterException - when Twitter service or network is unavailable
Since:
Twitter4J 2.0.4
See Also:
Twitter API Wiki / Twitter REST API Method: blocks blocking

getBlockingUsersAsync

public void getBlockingUsersAsync(int page,
                                  TwitterListener listener)
                           throws TwitterException
Returns a list of user objects that the authenticating user is blocking.
This method calls http://twitter.com/blocks/blocking.xml

Parameters:
page - the number of page
Throws:
TwitterException - when Twitter service or network is unavailable
Since:
Twitter4J 2.0.4
See Also:
Twitter API Wiki / Twitter REST API Method: blocks blocking

getBlockingUsersIDsAsync

public void getBlockingUsersIDsAsync(TwitterListener listener)
                              throws TwitterException
Returns an array of numeric user ids the authenticating user is blocking.
This method calls http://twitter.com/blocks/blocking/ids

Throws:
TwitterException - when Twitter service or network is unavailable
Since:
Twitter4J 2.0.4
See Also:
Twitter API Wiki / Twitter REST API Method: blocks blocking ids

testAsync

public void testAsync()
Returns the string "ok" in the requested format with a 200 OK HTTP status code.
This method calls http://twitter.com/help/test

Since:
Twitter4J 1.0.4
See Also:
Twitter API Wiki / Twitter REST API Method: help%C2%A0test

shutdown

public void shutdown()
Shuts down internal dispather thread.

Since:
Twitter4J 2.0.2

getDispatcher

private Dispatcher getDispatcher()

getDowntimeScheduleAsync

public void getDowntimeScheduleAsync()
Returns the same text displayed on http://twitter.com/home when a maintenance window is scheduled, in the requested format.

Since:
Twitter4J 1.0.4

getAuthenticatedUserAsync

public void getAuthenticatedUserAsync(TwitterListener listener)
Retrieves extended information of the authenticated user. This information includes design settings, so third party developers can theme their widgets according to a given user's preferences.
The call Twitter.getAuthenticatedUser() is equivalent to the call:
twitter.getUserDetailAsync(twitter.getUserId(), listener);

Since:
Twitter4J 1.1.3