Example usage for Java twitter4j AsyncTwitter fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addListener(TwitterListener listener) Adds twitter listener |
void | createFavorite(long id) Favorites the status specified in the ID parameter as the authenticating user. |
void | createFriendship(long userId, boolean follow) Allows the authenticating users to follow the user specified in the ID parameter. Returns the befriended user in the requested format when successful. |
void | destroyFavorite(long id) Favorites the status specified in the ID parameter as the authenticating user. |
void | destroyFriendship(long userId) Allows the authenticating users to unfollow the user specified in the ID parameter. Returns the unfollowed user in the requested format when successful. |
void | destroyStatus(long statusId) Destroys the status specified by the required ID parameter. Usage note: The authenticating user must be the author of the specified status. |
void | getFavorites(long userId, Paging paging) Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format. |
void | getFollowersList(long userId, long cursor) Returns a cursored collection of user objects for users following the specified user. At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues. |
void | getFriendsList(long userId, long cursor) Returns a cursored collection of user objects for every user the specified user is following (otherwise known as their "friends"). At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues. |
void | getHomeTimeline(Paging paging) Returns the 20 most recent statuses, including retweets, posted by the authenticating user and that user's friends. |
void | getOAuthAccessTokenAsync(RequestToken requestToken, String oauthVerifier) Retrieves an access token associated with the supplied request token and sets userId. |
void | getOAuthRequestTokenAsync(String callbackURL) Retrieves a request token |
void | getUserTimeline(String screenName, Paging paging) Returns the 20 most recent statuses posted from the authenticating user. |
void | retweetStatus(long statusId) Retweets a tweet. |
void | search(Query query) Returns tweets that match a specified query. |
void | sendDirectMessage(long userId, String text) Sends a new direct message to the specified user from the authenticating user. |
void | setOAuthAccessToken(AccessToken accessToken) Sets the access token |
void | setOAuthConsumer(String consumerKey, String consumerSecret) sets the OAuth consumer key and consumer secret |
void | showUser(long userId) Returns extended information of a given user, specified by ID or screen name as per the required id parameter. |
void | updateStatus(String status) Updates the authenticating user's status. |
void | verifyCredentials() Returns an HTTP 200 OK response code and a representation of the requesting user if authentication was successful; returns a 401 status code and an error message if not. |