|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TimelineOperations
Interface defining the operations for sending and retrieving tweets.
Method Summary | |
---|---|
void |
addToFavorites(long id)
Adds a tweet to the user's collection of favorite tweets. |
void |
deleteStatus(long tweetId)
Removes a status entry. |
java.util.List<Tweet> |
getFavorites()
Retrieves the 20 most recent tweets favorited by the given user. |
java.util.List<Tweet> |
getFriendsTimeline()
Retrieves the 20 most recently posted tweets, excluding retweets, from the authenticating user's home timeline. |
java.util.List<Tweet> |
getHomeTimeline()
Retrieves the 20 most recently posted tweets, including retweets, from the authenticating user's home timeline. |
java.util.List<Tweet> |
getMentions()
Retrieve the 20 most recent tweets that mention the authenticated user. |
java.util.List<Tweet> |
getPublicTimeline()
Retrieves the 20 most recently posted tweets from the public timeline. |
java.util.List<TwitterProfile> |
getRetweetedBy(long id)
Retrieves the profiles of up to 100 users how have retweeted a specific tweet. |
java.util.List<java.lang.Long> |
getRetweetedByIds(long id)
Retrieves the IDs of up to 100 users who have retweeted a specific tweet. |
java.util.List<Tweet> |
getRetweetedByMe()
Retrieve the 20 most recent retweets posted by the authenticated user. |
java.util.List<Tweet> |
getRetweetedToMe()
Retrieve the 20 most recent retweets posted by users the authenticating user follow. |
java.util.List<Tweet> |
getRetweets(long tweetId)
Retrieves up to 100 retweets of a specific tweet. |
java.util.List<Tweet> |
getRetweetsOfMe()
Retrieve the 20 most recent tweets of the authenticated user that have been retweeted by others. |
Tweet |
getStatus(long tweetId)
Returns a single tweet. |
java.util.List<Tweet> |
getUserTimeline()
Retrieves the 20 most recent tweets posted by the authenticating user. |
java.util.List<Tweet> |
getUserTimeline(long userId)
Retrieves the 20 most recent tweets posted by the given user. |
java.util.List<Tweet> |
getUserTimeline(java.lang.String screenName)
Retrieves the 20 most recent tweets posted by the given user. |
void |
removeFromFavorites(long id)
Removes a tweet from the user's collection of favorite tweets. |
void |
retweet(long tweetId)
Posts a retweet of an existing tweet. |
void |
updateStatus(java.lang.String status)
Updates the user's status. |
void |
updateStatus(java.lang.String status,
StatusDetails details)
Updates the user's status, including additional metadata concerning the status. |
Method Detail |
---|
java.util.List<Tweet> getPublicTimeline()
Note that Twitter caches public timeline results for 60 seconds. Calling this method more frequently than that will count against rate limits and will not return any new results.
Tweet
s in the public timeline.java.util.List<Tweet> getHomeTimeline()
Tweet
s in the authenticating user's home
timeline.java.util.List<Tweet> getFriendsTimeline()
Retrieves the 20 most recently posted tweets, excluding retweets, from the authenticating user's home timeline. The friends timeline includes tweets from the user's timeline and the timeline of anyone that they follow, with the exception of any retweets.
Tweet
s in the authenticating user's
friends timeline.java.util.List<Tweet> getUserTimeline()
Tweet
s that have been posted by the
authenticating user.java.util.List<Tweet> getUserTimeline(java.lang.String screenName)
screenName
- The screen name of the user whose timeline is being requested.
Tweet
s from the specified user's
timeline.java.util.List<Tweet> getUserTimeline(long userId)
userId
- The user ID of the user whose timeline is being requested.
Tweet
s from the specified user's
timeline.java.util.List<Tweet> getMentions()
Tweet
objects that mention the authenticated user.java.util.List<Tweet> getRetweetedByMe()
java.util.List<Tweet> getRetweetedToMe()
java.util.List<Tweet> getRetweetsOfMe()
Tweet getStatus(long tweetId)
tweetId
- the tweet's IDvoid updateStatus(java.lang.String status)
status
- The status messagevoid updateStatus(java.lang.String status, StatusDetails details)
status
- The status messagedetails
- Metadata pertaining to the statusvoid deleteStatus(long tweetId)
tweetId
- the tweet's IDvoid retweet(long tweetId)
tweetId
- The ID of the tweet to be retweetedjava.util.List<Tweet> getRetweets(long tweetId)
tweetId
- the tweet's IDjava.util.List<TwitterProfile> getRetweetedBy(long id)
id
- the tweet's IDjava.util.List<java.lang.Long> getRetweetedByIds(long id)
id
- the tweet's ID.java.util.List<Tweet> getFavorites()
Tweet
s from the specified user's favorite
timeline.void addToFavorites(long id)
id
- the tweet's IDvoid removeFromFavorites(long id)
id
- the tweet's ID
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |