パッケージ 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.
    Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
  • メソッドの詳細

    • getFavorites

      ResponseList<Status> getFavorites() throws TwitterException
      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

      ResponseList<Status> getFavorites(long userId) throws TwitterException
      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

      ResponseList<Status> getFavorites(String screenName) throws TwitterException
      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

      ResponseList<Status> getFavorites(Paging paging) throws TwitterException
      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

      ResponseList<Status> getFavorites(long userId, Paging paging) throws TwitterException
      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 statuses
      paging - controls pagination. Supports sinceId and page parameters.
      戻り値:
      favorite statuses
      例外:
      TwitterException - when Twitter service or network is unavailable
      導入されたバージョン:
      Twitter4J 3.0.0
      関連項目:
    • getFavorites

      ResponseList<Status> getFavorites(String screenName, Paging paging) throws TwitterException
      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 statuses
      paging - controls pagination. Supports sinceId and page parameters.
      戻り値:
      favorite statuses
      例外:
      TwitterException - when Twitter service or network is unavailable
      導入されたバージョン:
      Twitter4J 2.2.5
      関連項目:
    • createFavorite

      Status createFavorite(long id) throws TwitterException
      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

      Status destroyFavorite(long id) throws TwitterException
      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
      関連項目: