twitter4j.api
Interface StatusMethodsAsync

All Known Subinterfaces:
AsyncTwitter
All Known Implementing Classes:
AsyncTwitterImpl

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.
Usage note: The authenticating user must be the author of the specified status.
 void getRetweetedBy(long statusId)
          Show user objects of up to 100 members who retweeted the status.
 void getRetweetedByIDs(long statusId)
          Show user ids of up to 100 users who retweeted the status represented by id
This method calls http://api.twitter.com/1/statuses/:id/retweeted_by/ids.format
 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 below.
 void updateStatus(StatusUpdate latestStatus)
          Updates the authenticating user's status.
 void updateStatus(java.lang.String status)
          Updates the authenticating user's status.
 

Method Detail

showStatus

void showStatus(long id)
Returns a single status, specified by the id parameter below. 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:
GET statuses/show/:id | dev.twitter.com

updateStatus

void updateStatus(java.lang.String status)
Updates the authenticating user's status. A status update with text identical to the authenticating user's text identical to the authenticating user's current status will be ignored to prevent duplicates.
This method calls http://api.twitter.com/1/statuses/update

Parameters:
status - String
Since:
Twitter4J 2.0.1
See Also:
POST statuses/update | dev.twitter.com

updateStatus

void updateStatus(StatusUpdate latestStatus)
Updates the authenticating user's status. A status update with text identical to the authenticating user's text identical to the authenticating user's current status will be ignored to prevent duplicates.
Statuses over 140 characters will be forcibly truncated.
This method calls http://api.twitter.com/1/statuses/update

Parameters:
latestStatus - the latest status to be updated.
Since:
Twitter4J 2.1.1
See Also:
POST statuses/update | dev.twitter.com

destroyStatus

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.
This method calls http://api.twitter.com/1/statuses/destroy

Parameters:
statusId - String
Since:
1.1.2
See Also:
POST statuses/destroy/:id | dev.twitter.com

retweetStatus

void retweetStatus(long statusId)
Retweets a tweet. 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:
POST statuses/retweet/:id | dev.twitter.com

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:
Tweets Resources › statuses/retweets/:id

getRetweetedBy

void getRetweetedBy(long statusId)
Show user objects of up to 100 members who retweeted the status.
This method calls http://api.twitter.com/1/statuses/:id/retweeted_by

Parameters:
statusId - The ID of the status you want to get retweeters of
Since:
Twitter4J 2.1.3
See Also:
GET statuses/:id/retweeted_by | dev.twitter.com

getRetweetedByIDs

void getRetweetedByIDs(long statusId)
Show user ids of up to 100 users who retweeted the status represented by id
This method calls http://api.twitter.com/1/statuses/:id/retweeted_by/ids.format

Parameters:
statusId - The ID of the status you want to get retweeters of
Since:
Twitter4J 2.1.3
See Also:
GET statuses/:id/retweeted_by/ids | dev.twitter.com