twitter4j
Class AsyncTwitter

java.lang.Object
  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

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 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
           
static int ENABLE_NOTIFICATION
           
static int EXISTS
          Deprecated. use EXISTS_FRIENDSHIP instead.
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
           
static int GET_DOWNTIME_SCHEDULE
           
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 SEARCH
           
static int SEND_DIRECT_MESSAGE
           
static int SHOW
          Deprecated. use SHOW_STATUS instead.
static int SHOW_STATUS
           
static int TEST
           
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
           
static int UPDATE_PROFILE_COLORS
           
static int UPDATE_STATUS
           
static int USER_DETAIL
           
static int USER_TIMELINE
           
 
Fields inherited from class twitter4j.Twitter
http, IM, NONE, SMS
 
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
calls http://twitter.com/direct_messages/destroy 
 void destroyDirectMessageAsync(int id, TwitterListener listener)
          Delete specified direct message
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 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 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
 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 getFollowersAsync(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 getFollowersAsync(String id, Paging paging, TwitterListener listener) instead
 void getFollowersAsync(java.lang.String id, Paging paging, TwitterListener listener)
          Returns the authenticating user's followers, each with current status inline.
 void getFollowersAsync(java.lang.String id, TwitterListener listener)
          Returns the authenticating user's followers, each with current status inline.
 void getFollowersAsync(TwitterListener listener)
          Returns the authenticating user's followers, each with current status inline.
 void getFollowersIDsAsync(int userId, Paging paging, TwitterListener listener)
          Returns an array of numeric IDs for every user the specified user is followed by.
 void getFollowersIDsAsync(int userId, TwitterListener listener)
          Returns an array of numeric IDs for every user the specified user is followed by.
 void getFollowersIDsAsync(Paging paging, 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)
          Returns an array of numeric IDs for every user the specified user is followed by.
 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 getFriendsAsync(int page, TwitterListener listener)
          Deprecated. use getFriendsAsync(Paging paging,TwitterListener listener) instead
 void getFriendsAsync(Paging paging, TwitterListener listener)
          Returns the specified user's friends, each with current status inline.
 void getFriendsAsync(java.lang.String id, int page, TwitterListener listener)
          Deprecated. use getFriendsAsync(String id, Paging paging, TwitterListener listener) instead
 void getFriendsAsync(java.lang.String id, Paging paging, TwitterListener listener)
          Returns the user's friends, each with current status inline.
 void getFriendsAsync(java.lang.String id, TwitterListener listener)
          Returns the user's friends, each with current status inline.
 void getFriendsAsync(TwitterListener listener)
          Returns the specified user's friends, each with current status inline.
 void getFriendsIDsAsync(int userId, Paging paging, TwitterListener listener)
          Returns an array of numeric IDs for every user the specified user is following.
 void getFriendsIDsAsync(int userId, TwitterListener listener)
          Returns an array of numeric IDs for every user the specified user is following.
 void getFriendsIDsAsync(Paging paging, TwitterListener listener)
          Returns an array of numeric IDs for every user the authenticating user is following.
 void getFriendsIDsAsync(java.lang.String screenName, Paging paging, TwitterListener listener)
          Returns an array of numeric IDs for every user the specified user is following.
 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 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. use getFriendsTimelineAsync(String id, Paging paging, TwitterListener listener) instead
 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. use getFriendsTimelineAsync(String id, Paging paging, TwitterListener listener) instead
 void getFriendsTimelineAsync(java.lang.String id, int page, TwitterListener listener)
          Deprecated. use getFriendsTimelineAsync(String id, Paging paging, TwitterListener listener) instead
 void getFriendsTimelineAsync(java.lang.String id, long sinceId, TwitterListener listener)
          Deprecated. use getFriendsTimelineAsync(String id, Paging paging, TwitterListener listener) instead
 void getFriendsTimelineAsync(java.lang.String id, Paging paging, TwitterListener listener)
          Returns the 20 most recent statuses posted in the last 24 hours from the specified user id.
 void getFriendsTimelineAsync(java.lang.String id, TwitterListener listener)
          Returns the 20 most recent statuses posted in the last 24 hours from the specified user id.
 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. use getFriendsTimelineAsync(String id, Paging paging, TwitterListener listener) instead
 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)
          Returns only public statuses with an ID greater than (that is, more recent than) the specified ID.
 void getPublicTimelineAsync(TwitterListener listener)
          
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)
          Returns the 20 most recent replies (status updates prefixed with @username) to the authenticating user.
 void getRepliesByPageAsync(int page, TwitterListener listener)
          Deprecated. use getMentionsAsync(Paging paging, TwitterListener listener) instead
 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 getUserDetailAsync(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 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 leaveAsync(java.lang.String id)
          Disables notifications for updates from the specified user to the authenticating user.
 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 searchAcync(Query query, TwitterListener listener)
          
calls http://search.twitter.com/search
 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 testAsync()
          Returns the string "ok" in the requested format with a 200 OK HTTP status code.
 void unblockAsync(java.lang.String id)
          Un-blocks the user specified in the ID parameter as the authenticating user.
 void updateAsync(java.lang.String status)
          Deprecated. use updateStatusAsync(String status) instead
 void updateAsync(java.lang.String status, long inReplyToStatusId)
          Updates the user's status asynchronously
calls http://twitter.com/statuses/update
 void updateAsync(java.lang.String status, long inReplyToStatusId, TwitterListener listener)
          Updates the user's status asynchronously
calls http://twitter.com/statuses/update
 void updateAsync(java.lang.String status, TwitterListener listener)
          Deprecated. use updateStatusAsync(String status, TwitterListener listener) instead
 void updateDeliverlyDeviceAsync(twitter4j.Twitter.Device device, TwitterListener listener)
          Sets which device Twitter delivers updates to for the authenticating user.
 void updateLocationAsync(java.lang.String location, TwitterListener listener)
          Update the location
 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
calls http://twitter.com/statuses/update
 void updateStatusAsync(java.lang.String status, long inReplyToStatusId)
          Updates the user's status asynchronously
calls http://twitter.com/statuses/update
 void updateStatusAsync(java.lang.String status, long inReplyToStatusId, TwitterListener listener)
          Updates the user's status asynchronously
calls http://twitter.com/statuses/update
 void updateStatusAsync(java.lang.String status, TwitterListener listener)
          Updates the user's status asynchronously
calls http://twitter.com/statuses/update
 
Methods inherited from class twitter4j.Twitter
block, create, createBlock, createFavorite, createFriendship, createFriendship, deleteDirectMessage, destroy, destroyBlock, destroyDirectMessage, destroyFavorite, destroyFriendship, destroyStatus, disableNotification, enableNotification, equals, exists, existsFriendship, favorites, favorites, favorites, favorites, follow, forceUsePost, get, get, get, get, getAuthenticatedUser, getBaseURL, getClientURL, getClientVersion, getDirectMessages, getDirectMessages, getDirectMessages, getDirectMessages, getDirectMessages, getDirectMessagesByPage, getDowntimeSchedule, getFavorites, getFavorites, getFavorites, getFavorites, getFeatured, getFollowers, getFollowers, getFollowers, getFollowers, getFollowers, getFollowers, getFollowersIDs, getFollowersIDs, getFollowersIDs, getFollowersIDs, getFollowersIDs, getFollowersIDs, getFriends, getFriends, getFriends, getFriends, getFriends, getFriends, getFriendsIDs, getFriendsIDs, getFriendsIDs, getFriendsIDs, getFriendsIDs, getFriendsIDs, getFriendsTimeline, getFriendsTimeline, getFriendsTimeline, getFriendsTimeline, getFriendsTimeline, getFriendsTimeline, getFriendsTimeline, getFriendsTimeline, getFriendsTimeline, getFriendsTimeline, getFriendsTimeline, getFriendsTimeline, getFriendsTimelineByPage, getFriendsTimelineByPage, getMentions, getMentions, getOAuthAccessToken, getOAuthAccessToken, getOAuthRequestToken, getPassword, getPublicTimeline, getPublicTimeline, getReplies, getReplies, getReplies, getReplies, getRepliesByPage, getSearchBaseURL, getSentDirectMessages, getSentDirectMessages, getSentDirectMessages, getSentDirectMessages, getSentDirectMessages, getSource, getUserAgent, getUserDetail, getUserId, getUserTimeline, getUserTimeline, getUserTimeline, getUserTimeline, getUserTimeline, getUserTimeline, getUserTimeline, getUserTimeline, getUserTimeline, getUserTimeline, getUserTimeline, getUserTimeline, hashCode, isUsePostForced, leave, rateLimitStatus, search, sendDirectMessage, setBaseURL, setClientURL, setClientVersion, setHttpConnectionTimeout, setHttpProxy, setHttpProxyAuth, setHttpReadTimeout, setOAuthAccessToken, setOAuthAccessToken, setOAuthConsumer, setPassword, setRequestHeader, setRetryCount, setRetryIntervalSecs, setSearchBaseURL, setSource, setUserAgent, setUserId, show, show, showStatus, test, toString, unblock, update, update, updateDeliverlyDevice, updateLocation, updateProfileColors, updateStatus, updateStatus, verifyCredentials
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PUBLIC_TIMELINE

public static final int PUBLIC_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

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
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

TEST

public static final int TEST
See Also:
Constant Field Values

GET_DOWNTIME_SCHEDULE

public static final int GET_DOWNTIME_SCHEDULE
See Also:
Constant Field Values

DESTROY_STATUS

public static final int DESTROY_STATUS
See Also:
Constant Field Values

SEARCH

public static final int SEARCH
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)

calls http://search.twitter.com/search

Parameters:
query - - the search condition
Throws:
TwitterException
Since:
Twitter4J 1.1.7
See Also:
Twitter API / Search API Documentation, Twitter API / Search Operators

getPublicTimelineAsync

public void getPublicTimelineAsync(TwitterListener listener)

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

Parameters:
listener - TwitterListener 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)
Returns only public statuses with an ID greater than (that is, more recent than) the specified ID.
calls http://twitter.com/statuses/public_timeline 

Parameters:
sinceID - String
listener - TwitterListener a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: statuses public_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 - TwitterListener 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.
calls http://twitter.com/statuses/friends_timeline

Parameters:
paging - controls pagination
listener - TwitterListener 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.
calls http://twitter.com/statuses/friends_timeline

Parameters:
page - int
listener - TwitterListener 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.
calls http://twitter.com/statuses/friends_timeline

Parameters:
page - int
listener - TwitterListener 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.
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 - TwitterListener 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)
Returns the 20 most recent statuses posted in the last 24 hours from the specified user id.
calls http://twitter.com/statuses/friends_timeline

Parameters:
id - String user ID
listener - TwitterListener 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)
Returns the 20 most recent statuses posted in the last 24 hours from the specified user id.
calls http://twitter.com/statuses/friends_timeline

Parameters:
id - String user ID
paging - controls pagination
listener - TwitterListener 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. use getFriendsTimelineAsync(String id, Paging paging, TwitterListener listener) instead

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

Parameters:
id - String user ID
page - int
listener - TwitterListener 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. use getFriendsTimelineAsync(String id, Paging paging, TwitterListener listener) instead

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

Parameters:
id - String user ID
page - int
listener - TwitterListener 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. 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.
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 - TwitterListener 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.
calls http://twitter.com/statuses/friends_timeline

Parameters:
since - Date
listener - TwitterListener 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.
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 - TwitterListener 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. use getFriendsTimelineAsync(String id, Paging paging, TwitterListener listener) instead

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

Parameters:
id - String user ID
since - Date
listener - TwitterListener 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. use getFriendsTimelineAsync(String id, Paging paging, TwitterListener listener) instead

Returns the most recent statuses posted in the last 24 hours from the specified user id.
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 - TwitterListener 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.
calls http://twitter.com/statuses/user_timeline 

Parameters:
id - String
count - int
since - Date
listener - TwitterListener 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.
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 - TwitterListener 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.
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 - TwitterListener 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.
calls http://twitter.com/statuses/user_timeline 

Parameters:
id - String
since - Date
listener - TwitterListener 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.
calls http://twitter.com/statuses/user_timeline 

Parameters:
id - String
count - int
listener - TwitterListener 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.
calls http://twitter.com/statuses/user_timeline 

Parameters:
count - int
since - Date
listener - TwitterListener 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.
calls http://twitter.com/statuses/user_timeline 

Parameters:
paging - controls pagination
listener - TwitterListener 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.
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 - TwitterListener 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.
calls http://twitter.com/statuses/user_timeline 

Parameters:
id - String
listener - TwitterListener 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.
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 - TwitterListener 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.
calls http://twitter.com/statuses/user_timeline 

Parameters:
listener - TwitterListener 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.
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 - TwitterListener 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)
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.
calls http://twitter.com/statuses/mentions

Parameters:
listener - TwitterListener 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.
calls http://twitter.com/statuses/mentions

Parameters:
listener - TwitterListener 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.
calls http://twitter.com/statuses/mentions

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

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.
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 - TwitterListener 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 - TwitterListener 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.
calls http://twitter.com/statuses/mentions

Parameters:
page - int
listener - TwitterListener 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.
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 - TwitterListener 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.
calls http://twitter.com/statuses/show

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

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.
calls http://twitter.com/statuses/show

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

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.
calls http://twitter.com/statuses/show

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

updateAsync

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

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

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

updateAsync

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

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

Parameters:
status - String
See Also:
Twitter API Wiki / Twitter REST API Method: statuses update

updateStatusAsync

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

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

updateStatusAsync

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

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

updateAsync

public void updateAsync(java.lang.String status,
                        long inReplyToStatusId,
                        TwitterListener listener)
Updates the user's status asynchronously
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 - TwitterListener a listener object that receives the response
Since:
Twitter4J 1.1.6
See Also:
Twitter API Wiki / Twitter REST API Method: statuses update

updateAsync

public void updateAsync(java.lang.String status,
                        long inReplyToStatusId)
Updates the user's status asynchronously
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 update

updateStatusAsync

public void updateStatusAsync(java.lang.String status,
                              long inReplyToStatusId,
                              TwitterListener listener)
Updates the user's status asynchronously
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 - TwitterListener a listener object that receives the response
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: statuses update

updateStatusAsync

public void updateStatusAsync(java.lang.String status,
                              long inReplyToStatusId)
Updates the user's status asynchronously
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 update

destoryStatusAsync

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

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

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

destroyStatusAsync

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

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

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

destroyStatusAsync

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

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

destoryStatusAsync

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

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

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

destroyStatusAsync

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

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

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

destroyStatusAsync

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

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

getUserDetailAsync

public void getUserDetailAsync(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.
calls http://twitter.com/users/show 

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

getFriendsAsync

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

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

getFriendsAsync

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

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

getFriendsAsync

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

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

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

getFriendsAsync

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

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

getFriendsAsync

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

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

getFriendsAsync

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

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

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

getFollowersAsync

public void getFollowersAsync(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).
calls http://twitter.com/statuses/followers

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

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).
calls http://twitter.com/statuses/followers

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

getFollowersAsync

public void getFollowersAsync(int page,
                              TwitterListener listener)
Deprecated. use getFollowersAsync(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).
calls http://twitter.com/statuses/followers

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

getFollowersAsync

public void getFollowersAsync(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).
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 - TwitterListener a listener object that receives the response
Since:
Twitter4J 1.1.0
See Also:
Twitter API Wiki / Twitter REST API Method: statuses followers

getFollowersAsync

public void getFollowersAsync(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).
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 - TwitterListener a listener object that receives the response
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: statuses followers

getFollowersAsync

public void getFollowersAsync(java.lang.String id,
                              int page,
                              TwitterListener listener)
Deprecated. use getFollowersAsync(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).
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 - TwitterListener a listener object that receives the response
Since:
Twitter4J 1.1.0
See Also:
Twitter API Wiki / Twitter REST API Method: statuses followers

getFeaturedAsync

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

Parameters:
listener - TwitterListener 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.
calls http://twitter.com/direct_messages

Parameters:
listener - TwitterListener 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.
calls http://twitter.com/direct_messages

Parameters:
paging - controls pagination
listener - TwitterListener 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.
calls http://twitter.com/direct_messages

Parameters:
page - int
listener - TwitterListener 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.
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 - TwitterListener 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.
calls http://twitter.com/direct_messages

Parameters:
sinceId - int
listener - TwitterListener 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.
calls http://twitter.com/direct_messages

Parameters:
since - Date
listener - TwitterListener 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.
calls http://twitter.com/direct_messages/sent

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

getSentDirectMessagesAsync

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

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

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.
calls http://twitter.com/direct_messages/sent

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

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.
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 - TwitterListener a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: direct_messages sent

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.
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 - TwitterListener a listener object that receives the response
Since:
Twitter4J 2.0.0
See Also:
Twitter API Wiki / Twitter REST API Method: direct_messages sent

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.
calls http://twitter.com/direct_messages/new

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

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.
calls http://twitter.com/direct_messages/new

Parameters:
id - String
text - String
See Also:
Twitter API Wiki / Twitter REST API Method: direct_messages new

deleteDirectMessageAsync

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

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

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

destroyDirectMessageAsync

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

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

destroyDirectMessageAsync

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

Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: direct_messages destroy

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.
calls http://twitter.com/friendships/create

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

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.
calls http://twitter.com/friendships/create

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

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.
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 - TwitterListener a listener object that receives the response
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: friendships create

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.
calls http://twitter.com/friendships/create

Parameters:
id - String
See Also:
Twitter API Wiki / Twitter REST API Method: friendships create

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.
calls http://twitter.com/friendships/create

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

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.
calls http://twitter.com/friendships/destroy 

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

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.
calls http://twitter.com/friendships/destroy 

Parameters:
id - String
See Also:
Twitter API Wiki / Twitter REST API Method: friendships destroy

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.
calls http://twitter.com/friendships/destroy 

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

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.
calls http://twitter.com/friendships/destroy 

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

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.
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.
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.
calls http://twitter.com/friends/ids   

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

getFriendsIDsAsync

public void getFriendsIDsAsync(Paging paging,
                               TwitterListener listener)
Returns an array of numeric IDs for every user the authenticating user is following.
calls http://twitter.com/friends/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: friends ids

getFriendsIDsAsync

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

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 ids

getFriendsIDsAsync

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

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 ids

getFriendsIDsAsync

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

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 ids

getFriendsIDsAsync

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

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 ids

getFollowersIDsAsync

public void getFollowersIDsAsync(TwitterListener listener)
Returns an array of numeric IDs for every user the specified user is followed by.
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 ids

getFollowersIDsAsync

public void getFollowersIDsAsync(Paging paging,
                                 TwitterListener listener)
Returns an array of numeric IDs for every user the specified user is followed by.
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 ids

getFollowersIDsAsync

public void getFollowersIDsAsync(int userId,
                                 TwitterListener listener)
Returns an array of numeric IDs for every user the specified user is followed by.
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 ids

getFollowersIDsAsync

public void getFollowersIDsAsync(int userId,
                                 Paging paging,
                                 TwitterListener listener)
Returns an array of numeric IDs for every user the specified user is followed by.
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 ids

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.
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 ids

getFollowersIDsAsync

public void getFollowersIDsAsync(java.lang.String screenName,
                                 Paging paging,
                                 TwitterListener listener)
                          throws TwitterException
Returns an array of numeric IDs for every user the specified user is followed by.
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 ids

updateLocationAsync

public void updateLocationAsync(java.lang.String location,
                                TwitterListener listener)
Update the location

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

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.
calls http://twitter.com/account/rate_limit_status

Since:
Twitter4J 1.1.4
See Also:
Twitter API Wiki / Twitter REST API Method: account rate_limit_status

updateDeliverlyDeviceAsync

public void updateDeliverlyDeviceAsync(twitter4j.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.
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 update_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.
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 update_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.
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 update_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.
calls http://twitter.com/favorites

Parameters:
listener - TwitterListener 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.
calls http://twitter.com/favorites

Parameters:
listener - TwitterListener 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.
calls http://twitter.com/favorites

Parameters:
page - number of page to retrieve favorites
listener - TwitterListener 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.
calls http://twitter.com/favorites

Parameters:
page - number of page to retrieve favorites
listener - TwitterListener 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.
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 - TwitterListener 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.
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 - TwitterListener 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.
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 - TwitterListener 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.
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 - TwitterListener 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.
calls http://twitter.com/favorites/create  

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

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.
calls http://twitter.com/favorites/create  

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

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.
calls http://twitter.com/favorites/create  

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 create

createFavoriteAsync

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

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 create

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.
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 - TwitterListener a listener object that receives the response
See Also:
Twitter API Wiki / Twitter REST API Method: favorites destroy

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.
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 - TwitterListener a listener object that receives the response
Since:
1.1.2
See Also:
Twitter API Wiki / Twitter REST API Method: favorites destroy

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.
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 destroy

destroyFavoriteAsync

public void destroyFavoriteAsync(long id)
Favorites the status specified in the ID parameter as the authenticating user. Returns the favorite status when successful.
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 destroy

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.
calls http://twitter.com/notifications/follow 

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

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.
calls http://twitter.com/notifications/follow 

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

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.
calls http://twitter.com/notifications/follow 

Parameters:
id - String
See Also:
Twitter API Wiki / Twitter REST API Method: notifications follow

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.
calls http://twitter.com/notifications/leave 

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

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.
calls http://twitter.com/notifications/leave 

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

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.
calls http://twitter.com/notifications/leave 

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

leaveAsync

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

Parameters:
id - String
See Also:
Twitter API Wiki / Twitter REST API Method: notifications leave

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.
calls http://twitter.com/notifications/leave 

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

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.
calls http://twitter.com/blocks/create  

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 create

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.
calls http://twitter.com/blocks/create  

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

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.
calls http://twitter.com/blocks/create  

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 create

unblockAsync

public void unblockAsync(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.
calls http://twitter.com/blocks/create  

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 destroy

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.
calls http://twitter.com/blocks/create  

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 destroy

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.
calls http://twitter.com/blocks/create  

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 destroy

testAsync

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

Since:
Twitter4J 1.0.4
See Also:
Twitter API Wiki / Twitter REST API Method: help test

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


Copyright © 2009. All Rights Reserved.