twitter4j.api
Interface StatusMethodsAsync

All Known Implementing Classes:
AsyncTwitter

public interface StatusMethodsAsync

Author:
Joern Huxhorn - jhuxhorn at googlemail.com

Method Summary
 void destroyStatus(long statusId)
          Destroys the status specified by the required ID parameter.
 void getRetweets(long statusId)
          Returns up to 100 of the first retweets of a given tweet.
 void retweetStatus(long statusId)
          Retweets a tweet.
 void showStatus(long id)
          Returns a single status, specified by the id parameter.
 void updateStatus(java.lang.String status)
          Updates the user's status asynchronously
This method calls http://api.twitter.com/1/statuses/update
 void updateStatus(java.lang.String status, GeoLocation location)
          Updates the user's status asynchronously.
 void updateStatus(java.lang.String status, long inReplyToStatusId)
          Updates the user's status asynchronously
This method calls http://api.twitter.com/1/statuses/update
 void updateStatus(java.lang.String status, long inReplyToStatusId, GeoLocation location)
          Updates the user's status.
 

Method Detail

showStatus

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

Parameters:
id - int
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0show

updateStatus

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

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

updateStatus

void updateStatus(java.lang.String status,
                  GeoLocation location)
Updates the user's status asynchronously.
Statuses over 140 characters will be forcibly truncated.
This method calls http://api.twitter.com/1/statuses/update

Parameters:
status - the text of your status update
location - The location that this tweet refers to.
Since:
Twitter4J 2.1.0
See Also:
Twitter API Wiki / Twitter REST API Method: statuses update

updateStatus

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

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

updateStatus

void updateStatus(java.lang.String status,
                  long inReplyToStatusId,
                  GeoLocation location)
Updates the user's status.
Statuses over 140 characters will be forcibly truncated.
This method calls http://api.twitter.com/1/statuses/update

Parameters:
status - the text of your status update
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.
location - The location that this tweet refers to.
Since:
Twitter4J 2.1.0
See Also:
Twitter API Wiki / Twitter REST API Method: statuses update

destroyStatus

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

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

retweetStatus

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

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

getRetweets

void getRetweets(long statusId)
Returns up to 100 of the first retweets of a given tweet.
This method calls http://api.twitter.com/1/statuses/retweets

Parameters:
statusId - The numerical ID of the tweet you want the retweets of.
Since:
Twitter4J 2.1.0
See Also:
Twitter API Wiki / Twitter REST API Method: statuses retweets