パッケージ twitter4j.v1
インタフェース TimelinesResources
public interface TimelinesResources
-
メソッドの概要
修飾子とタイプメソッド説明Returns the 20 most recent statuses, including retweets, posted by the authenticating user and that user's friends.getHomeTimeline
(Paging paging) Returns the 20 most recent statuses, including retweets, posted by the authenticating user and that user's friends.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.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.Returns the 20 most recent tweets of the authenticated user that have been retweeted by others.getRetweetsOfMe
(Paging paging) Returns the 20 most recent tweets of the authenticated user that have been retweeted by others.Returns the 20 most recent statuses posted from the authenticating user.getUserTimeline
(long userId) Returns the 20 most recent statuses posted from the authenticating user.getUserTimeline
(long userId, Paging paging) Returns the 20 most recent statuses posted from the authenticating user.getUserTimeline
(String screenName) Returns the 20 most recent statuses posted from the authenticating user.getUserTimeline
(String screenName, Paging paging) Returns the 20 most recent statuses posted from the authenticating user.getUserTimeline
(Paging paging) Returns the 20 most recent statuses posted from the authenticating user.
-
メソッドの詳細
-
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.
This method calls https://api.twitter.com/1.1/statuses/mentions_timeline- 戻り値:
- the 20 most recent replies
- 例外:
TwitterException
- when Twitter service or network is unavailable- 導入されたバージョン:
- Twitter4J 3.0.0
- 関連項目:
-
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.
This method calls https://api.twitter.com/1.1/statuses/mentions_timeline- パラメータ:
paging
- controls pagination. Supports since_id, max_id, zcount parameters.- 戻り値:
- the 20 most recent replies
- 例外:
TwitterException
- when Twitter service or network is unavailable- 導入されたバージョン:
- Twitter4J 3.0.0
- 関連項目:
-
getUserTimeline
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 https://api.twitter.com/1.1/statuses/user_timeline.json- パラメータ:
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.- 戻り値:
- list of the user Timeline
- 例外:
TwitterException
- when Twitter service or network is unavailable- 導入されたバージョン:
- Twitter4J 2.0.1
- 関連項目:
-
getUserTimeline
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 https://api.twitter.com/1.1/statuses/user_timeline.json- パラメータ:
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.- 戻り値:
- list of the user Timeline
- 例外:
TwitterException
- when Twitter service or network is unavailable- 導入されたバージョン:
- Twitter4J 2.1.0
- 関連項目:
-
getUserTimeline
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 https://api.twitter.com/1.1/statuses/user_timeline- パラメータ:
screenName
- specifies the screen name of the user for whom to return the user_timeline- 戻り値:
- the 20 most recent statuses posted in the last 24 hours from the user
- 例外:
TwitterException
- when Twitter service or network is unavailable- 関連項目:
-
getUserTimeline
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 https://api.twitter.com/1.1/statuses/user_timeline- パラメータ:
userId
- specifies the ID of the user for whom to return the user_timeline- 戻り値:
- the 20 most recent statuses posted in the last 24 hours from the user
- 例外:
TwitterException
- when Twitter service or network is unavailable- 導入されたバージョン:
- Twitter4J 2.1.0
- 関連項目:
-
getUserTimeline
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 https://api.twitter.com/1.1/statuses/user_timeline- 戻り値:
- the 20 most recent statuses posted in the last 24 hours from the user
- 例外:
TwitterException
- when Twitter service or network is unavailable- 関連項目:
-
getUserTimeline
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 https://api.twitter.com/1.1/statuses/user_timeline- パラメータ:
paging
- controls pagination. Supports since_id, max_id, count and page parameters.- 戻り値:
- the 20 most recent statuses posted in the last 24 hours from the user
- 例外:
TwitterException
- when Twitter service or network is unavailable- 導入されたバージョン:
- Twitter4J 2.0.1
- 関連項目:
-
getHomeTimeline
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 https://api.twitter.com/1.1/statuses/home_timeline- 戻り値:
- list of the home Timeline
- 例外:
TwitterException
- when Twitter service or network is unavailable- 導入されたバージョン:
- Twitter4J 2.0.10
- 関連項目:
-
getHomeTimeline
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 https://api.twitter.com/1.1/statuses/home_timeline- パラメータ:
paging
- controls pagination. Supports since_id, max_id, count and page parameters.- 戻り値:
- list of the home Timeline
- 例外:
TwitterException
- when Twitter service or network is unavailable- 導入されたバージョン:
- Twitter4J 2.0.10
- 関連項目:
-
getRetweetsOfMe
Returns the 20 most recent tweets of the authenticated user that have been retweeted by others.
This method calls https://api.twitter.com/1.1/statuses/retweets_of_me.json- 戻り値:
- the 20 most recent tweets of the authenticated user that have been retweeted by others.
- 例外:
TwitterException
- when Twitter service or network is unavailable- 導入されたバージョン:
- Twitter4J 2.0.10
- 関連項目:
-
getRetweetsOfMe
Returns the 20 most recent tweets of the authenticated user that have been retweeted by others.
This method calls https://api.twitter.com/1.1/statuses/retweets_of_me.json- パラメータ:
paging
- controls pagination. Supports since_id, max_id, count and page parameters.- 戻り値:
- the 20 most recent tweets of the authenticated user that have been retweeted by others.
- 例外:
TwitterException
- when Twitter service or network is unavailable- 導入されたバージョン:
- Twitter4J 2.0.10
- 関連項目:
-