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.
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 getRetweetedBy(long statusId, Paging paging)
          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 getRetweetedByIDs(long statusId, Paging paging)
          Show user ids of up to 100 users who retweeted the status.
 void getRetweets(long statusId)
          Returns up to 100 of the first retweets of a given tweet.
 void getRetweetsOfMe()
          Returns the 20 most recent tweets of the authenticated user that have been retweeted by others.
 void getRetweetsOfMe(Paging paging)
          Returns the 20 most recent tweets of the authenticated user that have been retweeted by others.
 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.
 void updateStatus(java.lang.String status, GeoLocation location)
          Deprecated. use updateStatus(StatusUpdate) instead.
 void updateStatus(java.lang.String status, long inReplyToStatusId)
          Deprecated. use updateStatus(StatusUpdate) instead.
 void updateStatus(java.lang.String status, long inReplyToStatusId, GeoLocation location)
          Deprecated. use updateStatus(StatusUpdate) instead.
 

Method Detail

getRetweetsOfMe

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

Since:
Twitter4J 2.0.10
See Also:
GET statuses/retweets_of_me | dev.twitter.com

getRetweetsOfMe

void getRetweetsOfMe(Paging paging)
Returns the 20 most recent tweets of the authenticated user that have been retweeted by others.
This method calls http://api.twitter.com/1/statuses/retweets_of_me

Parameters:
paging - controls pagination
Since:
Twitter4J 2.0.10
See Also:
GET statuses/retweets_of_me | dev.twitter.com

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 | 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(java.lang.String status,
                  GeoLocation location)
Deprecated. use updateStatus(StatusUpdate) instead.

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:
status - the text of your status update
location - The location that this tweet refers to.
Since:
Twitter4J 2.1.0
See Also:
POST statuses/update | dev.twitter.com

updateStatus

void updateStatus(java.lang.String status,
                  long inReplyToStatusId)
Deprecated. use updateStatus(StatusUpdate) instead.

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
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:
POST statuses/update | dev.twitter.com

updateStatus

void updateStatus(java.lang.String status,
                  long inReplyToStatusId,
                  GeoLocation location)
Deprecated. use updateStatus(StatusUpdate) instead.

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

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

getRetweetedBy

void getRetweetedBy(long statusId,
                    Paging paging)
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
paging - specify your paging requirements
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

getRetweetedByIDs

void getRetweetedByIDs(long statusId,
                       Paging paging)
Show user ids of up to 100 users who retweeted the status.
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
paging - specify your paging requirements
Since:
Twitter4J 2.1.3
See Also:
GET statuses/:id/retweeted_by/ids | dev.twitter.com