public interface TimelinesResources
| Modifier and Type | Method and Description |
|---|---|
ResponseList<Status> |
getHomeTimeline()
Returns the 20 most recent statuses, including retweets, posted by the authenticating user and that user's friends.
|
ResponseList<Status> |
getHomeTimeline(Paging paging)
Returns the 20 most recent statuses, including retweets, posted by the authenticating user and that user's friends.
|
ResponseList<Status> |
getMentions()
Deprecated.
use
getMentionsTimeline() instead |
ResponseList<Status> |
getMentions(Paging paging)
Returns the 20 most recent mentions (status containing @username) for the authenticating user.
|
ResponseList<Status> |
getMentionsTimeline()
Returns the 20 most recent mentions (tweets containing a users's @screen_name) for the authenticating user.
The timeline returned is the equivalent of the one seen when you view your mentions on twitter.com. This method can only return up to 800 tweets. See Working with Timelines for instructions on traversing timelines. |
ResponseList<Status> |
getMentionsTimeline(Paging paging)
Returns the 20 most recent mentions (tweets containing a users's @screen_name) for the authenticating user.
The timeline returned is the equivalent of the one seen when you view your mentions on twitter.com. This method can only return up to 800 tweets. See Working with Timelines for instructions on traversing timelines. |
ResponseList<Status> |
getRetweetsOfMe()
Returns the 20 most recent tweets of the authenticated user that have been retweeted by others.
|
ResponseList<Status> |
getRetweetsOfMe(Paging paging)
Returns the 20 most recent tweets of the authenticated user that have been retweeted by others.
|
ResponseList<Status> |
getScopedTimeLine(long userId,
Paging paging)
returns upto 200 most recent promotable-only-posts (https://dev.twitter.com/docs/api/advertising/1.1/statuses/scoped_timeline)
Promotable only posts are like normal tweets except that they are not visible to the followers.
|
ResponseList<Status> |
getUserTimeline()
Returns the 20 most recent statuses posted from the authenticating user.
|
ResponseList<Status> |
getUserTimeline(long userId)
Returns the 20 most recent statuses posted from the authenticating user.
|
ResponseList<Status> |
getUserTimeline(long userId,
Paging paging)
Returns the 20 most recent statuses posted from the authenticating user.
|
ResponseList<Status> |
getUserTimeline(Paging paging)
Returns the 20 most recent statuses posted from the authenticating user.
|
ResponseList<Status> |
getUserTimeline(java.lang.String screenName)
Returns the 20 most recent statuses posted from the authenticating user.
|
ResponseList<Status> |
getUserTimeline(java.lang.String screenName,
Paging paging)
Returns the 20 most recent statuses posted from the authenticating user.
|
ResponseList<Status> getMentions() throws TwitterException
getMentionsTimeline() insteadTwitterException - when Twitter service or network is unavailableResponseList<Status> getMentionsTimeline() throws TwitterException
TwitterException - when Twitter service or network is unavailableResponseList<Status> getMentions(Paging paging) throws TwitterException
paging - controls pagination. Supports since_id, max_id, count and page parameters.TwitterException - when Twitter service or network is unavailableResponseList<Status> getMentionsTimeline(Paging paging) throws TwitterException
paging - controls pagination. Supports since_id, max_id, zcount parameters.TwitterException - when Twitter service or network is unavailableResponseList<Status> getUserTimeline(java.lang.String screenName, Paging paging) throws TwitterException
screenName - specifies the screen name of the user for whom to return the user_timelinepaging - controls pagination. Supports since_id, max_id, count and page parameters.TwitterException - when Twitter service or network is unavailableResponseList<Status> getUserTimeline(long userId, Paging paging) throws TwitterException
userId - specifies the ID of the user for whom to return the user_timelinepaging - controls pagination. Supports since_id, max_id, count and page parameters.TwitterException - when Twitter service or network is unavailableResponseList<Status> getScopedTimeLine(long userId, Paging paging) throws TwitterException
Status.scopes.followers values is false for promotable posts
For Normal tweets Status.scopes should be null or followers should be null/trueuserId - the user whose promotable posts are to be fetchedpaging - paging infoTwitterExceptionResponseList<Status> getUserTimeline(java.lang.String screenName) throws TwitterException
screenName - specifies the screen name of the user for whom to return the user_timelineTwitterException - when Twitter service or network is unavailableResponseList<Status> getUserTimeline(long userId) throws TwitterException
userId - specifies the ID of the user for whom to return the user_timelineTwitterException - when Twitter service or network is unavailableResponseList<Status> getUserTimeline() throws TwitterException
TwitterException - when Twitter service or network is unavailableResponseList<Status> getUserTimeline(Paging paging) throws TwitterException
paging - controls pagination. Supports since_id, max_id, count and page parameters.TwitterException - when Twitter service or network is unavailableResponseList<Status> getHomeTimeline() throws TwitterException
TwitterException - when Twitter service or network is unavailableResponseList<Status> getHomeTimeline(Paging paging) throws TwitterException
paging - controls pagination. Supports since_id, max_id, count and page parameters.TwitterException - when Twitter service or network is unavailableResponseList<Status> getRetweetsOfMe() throws TwitterException
TwitterException - when Twitter service or network is unavailableResponseList<Status> getRetweetsOfMe(Paging paging) throws TwitterException
paging - controls pagination. Supports since_id, max_id, count and page parameters.TwitterException - when Twitter service or network is unavailable