パッケージ twitter4j.v1
インタフェース FavoritesResources
public interface FavoritesResources
-
メソッドの概要
修飾子とタイプメソッド説明createFavorite
(long id) Favorites the status specified in the ID parameter as the authenticating user.destroyFavorite
(long id) Un-favorites the status specified in the ID parameter as the authenticating user.Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.getFavorites
(long userId) Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.getFavorites
(long userId, Paging paging) Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.getFavorites
(String screenName) Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.getFavorites
(String screenName, Paging paging) Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.getFavorites
(Paging paging) Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
-
メソッドの詳細
-
getFavorites
Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
This method calls https://api.twitter.com/1.1/favorites.json- 戻り値:
- favorite statuses
- 例外:
TwitterException
- when Twitter service or network is unavailable- 導入されたバージョン:
- Twitter4J 2.0.1
- 関連項目:
-
getFavorites
Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.- パラメータ:
userId
- the id of the user for whom to request a list of favorite statuses- 戻り値:
- favorite statuses
- 例外:
TwitterException
- when Twitter service or network is unavailable- 導入されたバージョン:
- Twitter4J 3.0.0
- 関連項目:
-
getFavorites
Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.- パラメータ:
screenName
- the screen name of the user for whom to request a list of favorite statuses- 戻り値:
- favorite statuses
- 例外:
TwitterException
- when Twitter service or network is unavailable- 導入されたバージョン:
- Twitter4J 2.0.1
- 関連項目:
-
getFavorites
Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
This method calls https://api.twitter.com/1.1/favorites.json- パラメータ:
paging
- controls pagination. Supports sinceId and page parameters.- 戻り値:
- favorite statuses
- 例外:
TwitterException
- when Twitter service or network is unavailable- 導入されたバージョン:
- Twitter4J 2.2.5
- 関連項目:
-
getFavorites
Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
This method calls https://api.twitter.com/1.1/favorites/[id].json- パラメータ:
userId
- the id of the user for whom to request a list of favorite statusespaging
- controls pagination. Supports sinceId and page parameters.- 戻り値:
- favorite statuses
- 例外:
TwitterException
- when Twitter service or network is unavailable- 導入されたバージョン:
- Twitter4J 3.0.0
- 関連項目:
-
getFavorites
Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
This method calls https://api.twitter.com/1.1/favorites/[id].json- パラメータ:
screenName
- the screen name of the user for whom to request a list of favorite statusespaging
- controls pagination. Supports sinceId and page parameters.- 戻り値:
- favorite statuses
- 例外:
TwitterException
- when Twitter service or network is unavailable- 導入されたバージョン:
- Twitter4J 2.2.5
- 関連項目:
-
createFavorite
Favorites the status specified in the ID parameter as the authenticating user. Returns the favorite status when successful.
This method calls https://api.twitter.com/1.1/favorites/create/[id].json- パラメータ:
id
- the ID of the status to favorite- 戻り値:
- created favorite status
- 例外:
TwitterException
- when Twitter service or network is unavailable- 関連項目:
-
destroyFavorite
Un-favorites the status specified in the ID parameter as the authenticating user. Returns the un-favorited status in the requested format when successful.
This method calls https://api.twitter.com/1.1/favorites/destroy/[id].json- パラメータ:
id
- the ID of the status to un-favorite- 戻り値:
- destroyed statuses
- 例外:
TwitterException
- when Twitter service or network is unavailable- 関連項目:
-