public interface TweetsResources
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
createVideo(java.lang.String tonVideoLocation,
java.lang.String title,
java.lang.String description) |
java.lang.String |
createVideoImage(java.lang.String tonImageLocation,
java.lang.String title,
java.lang.String description) |
VideoTweetResponse |
createVideoTweet(VideoTweetRequest request) |
Status |
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. |
ResponseList<Status> |
getRetweets(long statusId)
Returns up to 100 of the first retweets of a given tweet.
|
ResponseList<Status> |
lookupStatuses(long[] statusIds)
Returns fully-hydrated tweet objects for up to 100 tweets per request, as specified by comma-separated values passed to the id parameter.
|
Status |
retweetStatus(long statusId)
Retweets a tweet.
|
Status |
showStatus(long id)
Returns a single status, specified by the id parameter below.
|
Status |
updateStatus(StatusUpdate latestStatus)
Updates the authenticating user's status.
|
Status |
updateStatus(java.lang.String status)
Updates the authenticating user's status.
|
Media |
upload(MediaUpload mediaUpload) |
java.lang.String |
uploadMediaInChunks(java.lang.String filePath,
long fileSize,
java.lang.String mediaType,
java.lang.String mediaCategory,
int maxChunkSize,
long maxWaitTimeTranscoding,
java.lang.String accountUserId) |
java.lang.String |
uploadToTon(TonUpload tonUpload) |
ResponseList<Status> getRetweets(long statusId) throws TwitterException
statusId - The numerical ID of the tweet you want the retweets of.TwitterException - when Twitter service or network is unavailableStatus showStatus(long id) throws TwitterException
id - the numerical ID of the status you're trying to retrieveTwitterExceptionStatus destroyStatus(long statusId) throws TwitterException
statusId - The ID of the status to destroy.TwitterException - when Twitter service or network is unavailableStatus updateStatus(java.lang.String status) throws TwitterException
status - the text of your status updateTwitterException - when Twitter service or network is unavailableStatus updateStatus(StatusUpdate latestStatus) throws TwitterException
latestStatus - the latest status to be updated.TwitterException - when Twitter service or network is unavailableStatus retweetStatus(long statusId) throws TwitterException
statusId - The ID of the status to retweet.TwitterException - when Twitter service or network is unavailableResponseList<Status> lookupStatuses(long[] statusIds) throws TwitterException
statusIds - array of the statusIds to statusesLookupTwitterException - when Twitter service or network is unavailableMedia upload(MediaUpload mediaUpload) throws TwitterException
TwitterExceptionjava.lang.String uploadToTon(TonUpload tonUpload) throws TwitterException
TwitterExceptionjava.lang.String createVideo(java.lang.String tonVideoLocation,
java.lang.String title,
java.lang.String description)
throws TwitterException
TwitterExceptionjava.lang.String createVideoImage(java.lang.String tonImageLocation,
java.lang.String title,
java.lang.String description)
throws TwitterException
TwitterExceptionVideoTweetResponse createVideoTweet(VideoTweetRequest request) throws TwitterException
TwitterExceptionjava.lang.String uploadMediaInChunks(java.lang.String filePath,
long fileSize,
java.lang.String mediaType,
java.lang.String mediaCategory,
int maxChunkSize,
long maxWaitTimeTranscoding,
java.lang.String accountUserId)
throws TwitterException
filePath - temporary filefileSize - mediaType - maxChunkSize - Maximum chunk size allowed for twitter. @return mediaId of the video..TwitterException