![JAR search and dependency download from the Maven repository](/logo.png)
twitter4jads.api.internal.TimelinesResources Maven / Gradle / Ivy
The newest version!
package twitter4jads.api.internal;
import twitter4jads.internal.models4j.Status;
import twitter4jads.internal.models4j.Paging;
import twitter4jads.internal.models4j.ResponseList;
import twitter4jads.internal.models4j.TwitterException;
public interface TimelinesResources {
/**
* Returns the 20 most recent mentions (status containing @username) for the authenticating user.
*
This method calls http://api.twitter.com/1.1/statuses/mentions
*
* @return the 20 most recent replies
* @throws TwitterException when Twitter service or network is unavailable
* @see GET statuses/mentions | Twitter Developers
* @since Twitter4J 2.0.1
* @deprecated use {@link #getMentionsTimeline()} instead
*/
ResponseList getMentions() throws TwitterException;
/**
* 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.
*
This method calls http://api.twitter.com/1.1/statuses/mentions_timeline
*
* @return the 20 most recent replies
* @throws TwitterException when Twitter service or network is unavailable
* @see GET statuses/mentions | Twitter Developers
* @since Twitter4J 3.0.0
*/
ResponseList getMentionsTimeline() throws TwitterException;
/**
* Returns the 20 most recent mentions (status containing @username) for the authenticating user.
*
This method calls http://api.twitter.com/1.1/statuses/mentions
*
* @param paging controls pagination. Supports since_id, max_id, count and page parameters.
* @return the 20 most recent replies
* @throws TwitterException when Twitter service or network is unavailable
* @see GET statuses/mentions | Twitter Developers
* @since Twitter4J 2.0.1
*/
ResponseList getMentions(Paging paging) throws TwitterException;
/**
* 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.
*
This method calls http://api.twitter.com/1.1/statuses/mentions_timeline
*
* @param paging controls pagination. Supports since_id, max_id, zcount parameters.
* @return the 20 most recent replies
* @throws TwitterException when Twitter service or network is unavailable
* @see GET statuses/mentions | Twitter Developers
* @since Twitter4J 3.0.0
*/
ResponseList getMentionsTimeline(Paging paging) throws TwitterException;
/**
* Returns the 20 most recent statuses posted from the authenticating user. It's also possible to request another user's timeline via the id parameter.
* This is the equivalent of the Web / page for your own user, or the profile page for a third party.
* For backwards compatibility reasons, retweets are stripped out of the user_timeline when calling in XML or JSON (they appear with 'RT' in RSS and Atom). If you'd like them included, you can merge them in from statuses retweeted_by_me.
*
This method calls http://api.twitter.com/1.1/statuses/user_timeline.json
*
* @param screenName specifies the screen name of the user for whom to return the user_timeline
* @param paging controls pagination. Supports since_id, max_id, count and page parameters.
* @return list of the user Timeline
* @throws TwitterException when Twitter service or network is unavailable
* @see GET statuses/user_timeline | Twitter Developers
* @since Twitter4J 2.0.1
*/
ResponseList getUserTimeline(String screenName, Paging paging) throws TwitterException;
/**
* Returns the 20 most recent statuses posted from the authenticating user. It's also possible to request another user's timeline via the id parameter.
* This is the equivalent of the Web / page for your own user, or the profile page for a third party.
* For backwards compatibility reasons, retweets are stripped out of the user_timeline when calling in XML or JSON (they appear with 'RT' in RSS and Atom). If you'd like them included, you can merge them in from statuses retweeted_by_me.
*
This method calls http://api.twitter.com/1.1/statuses/user_timeline.json
*
* @param userId specifies the ID of the user for whom to return the user_timeline
* @param paging controls pagination. Supports since_id, max_id, count and page parameters.
* @return list of the user Timeline
* @throws TwitterException when Twitter service or network is unavailable
* @see GET statuses/user_timeline | Twitter Developers
* @since Twitter4J 2.1.0
*/
ResponseList getUserTimeline(long userId, Paging paging) throws TwitterException;
/**
* 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.
*
* {@link Status}.scopes.followers values is false for promotable posts
* For Normal tweets {@link Status}.scopes should be null or followers should be null/true
*
* @param userId the user whose promotable posts are to be fetched
* @param paging paging info
* @return
* @throws TwitterException
*/
public ResponseList getScopedTimeLine(long userId, Paging paging) throws TwitterException;
/**
* Returns the 20 most recent statuses posted from the authenticating user. It's also possible to request another user's timeline via the id parameter.
* This is the equivalent of the Web / page for your own user, or the profile page for a third party.
* For backwards compatibility reasons, retweets are stripped out of the user_timeline when calling in XML or JSON (they appear with 'RT' in RSS and Atom). If you'd like them included, you can merge them in from statuses retweeted_by_me.
*
This method calls http://api.twitter.com/1.1/statuses/user_timeline
*
* @param screenName specifies the screen name of the user for whom to return the user_timeline
* @return the 20 most recent statuses posted in the last 24 hours from the user
* @throws TwitterException when Twitter service or network is unavailable
* @see GET statuses/user_timeline | Twitter Developers
*/
ResponseList getUserTimeline(String screenName) throws TwitterException;
/**
* Returns the 20 most recent statuses posted from the authenticating user. It's also possible to request another user's timeline via the id parameter.
* This is the equivalent of the Web / page for your own user, or the profile page for a third party.
* For backwards compatibility reasons, retweets are stripped out of the user_timeline when calling in XML or JSON (they appear with 'RT' in RSS and Atom). If you'd like them included, you can merge them in from statuses retweeted_by_me.
*
This method calls http://api.twitter.com/1.1/statuses/user_timeline
*
* @param userId specifies the ID of the user for whom to return the user_timeline
* @return the 20 most recent statuses posted in the last 24 hours from the user
* @throws TwitterException when Twitter service or network is unavailable
* @see GET statuses/user_timeline | Twitter Developers
* @since Twitter4J 2.1.0
*/
ResponseList getUserTimeline(long userId) throws TwitterException;
/**
* Returns the 20 most recent statuses posted from the authenticating user. It's also possible to request another user's timeline via the id parameter.
* This is the equivalent of the Web / page for your own user, or the profile page for a third party.
* For backwards compatibility reasons, retweets are stripped out of the user_timeline when calling in XML or JSON (they appear with 'RT' in RSS and Atom). If you'd like them included, you can merge them in from statuses retweeted_by_me.
*
This method calls http://api.twitter.com/1.1/statuses/user_timeline
*
* @return the 20 most recent statuses posted in the last 24 hours from the user
* @throws TwitterException when Twitter service or network is unavailable
* @see GET statuses/user_timeline | Twitter Developers
*/
ResponseList getUserTimeline() throws TwitterException;
/**
* Returns the 20 most recent statuses posted from the authenticating user. It's also possible to request another user's timeline via the id parameter.
* This is the equivalent of the Web / page for your own user, or the profile page for a third party.
* For backwards compatibility reasons, retweets are stripped out of the user_timeline when calling in XML or JSON (they appear with 'RT' in RSS and Atom). If you'd like them included, you can merge them in from statuses retweeted_by_me.
*
This method calls http://api.twitter.com/1.1/statuses/user_timeline
*
* @param paging controls pagination. Supports since_id, max_id, count and page parameters.
* @return the 20 most recent statuses posted in the last 24 hours from the user
* @throws TwitterException when Twitter service or network is unavailable
* @see GET statuses/user_timeline | Twitter Developers
* @since Twitter4J 2.0.1
*/
ResponseList getUserTimeline(Paging paging) throws TwitterException;
/**
* Returns the 20 most recent statuses, including retweets, posted by the authenticating user and that user's friends. This is the equivalent of /timeline/home on the Web.
* Usage note: This home_timeline call is identical to statuses/friends_timeline, except that home_timeline also contains retweets, while statuses/friends_timeline does not for backwards compatibility reasons. In a future version of the API, statuses/friends_timeline will be deprected and replaced by home_timeline.
*
This method calls http://api.twitter.com/1.1/statuses/home_timeline
*
* @return list of the home Timeline
* @throws TwitterException when Twitter service or network is unavailable
* @see GET statuses/home_timeline | Twitter Developers
* @since Twitter4J 2.0.10
*/
ResponseList getHomeTimeline() throws TwitterException;
/**
* Returns the 20 most recent statuses, including retweets, posted by the authenticating user and that user's friends. This is the equivalent of /timeline/home on the Web.
* Usage note: This home_timeline call is identical to statuses/friends_timeline, except that home_timeline also contains retweets, while statuses/friends_timeline does not for backwards compatibility reasons. In a future version of the API, statuses/friends_timeline will be deprected and replaced by home_timeline.
*
This method calls http://api.twitter.com/1.1/statuses/home_timeline
*
* @param paging controls pagination. Supports since_id, max_id, count and page parameters.
* @return list of the home Timeline
* @throws TwitterException when Twitter service or network is unavailable
* @see GET statuses/home_timeline | Twitter Developers
* @since Twitter4J 2.0.10
*/
ResponseList getHomeTimeline(Paging paging) throws TwitterException;
/**
* Returns the 20 most recent tweets of the authenticated user that have been retweeted by others.
*
This method calls http://api.twitter.com/1.1/statuses/retweets_of_me.json
*
* @return the 20 most recent tweets of the authenticated user that have been retweeted by others.
* @throws TwitterException when Twitter service or network is unavailable
* @see GET statuses/retweets_of_me | Twitter Developers
* @since Twitter4J 2.0.10
*/
ResponseList getRetweetsOfMe() throws TwitterException;
/**
* Returns the 20 most recent tweets of the authenticated user that have been retweeted by others.
*
This method calls http://api.twitter.com/1.1/statuses/retweets_of_me.json
*
* @param paging controls pagination. Supports since_id, max_id, count and page parameters.
* @return the 20 most recent tweets of the authenticated user that have been retweeted by others.
* @throws TwitterException when Twitter service or network is unavailable
* @see GET statuses/retweets_of_me | Twitter Developers
* @since Twitter4J 2.0.10
*/
ResponseList getRetweetsOfMe(Paging paging) throws TwitterException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy