twitter4j.api
Interface FavoriteMethodsAsync

All Known Subinterfaces:
AsyncTwitter
All Known Implementing Classes:
AsyncTwitterImpl

public interface FavoriteMethodsAsync

Author:
Joern Huxhorn - jhuxhorn at googlemail.com

Method Summary
 void createFavorite(long id)
          Favorites the status specified in the ID parameter as the authenticating user.
 void destroyFavorite(long id)
          Favorites the status specified in the ID parameter as the authenticating user.
 void getFavorites()
          Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
 void getFavorites(int page)
          Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
 void getFavorites(java.lang.String id)
          Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
 void getFavorites(java.lang.String id, int page)
          Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
 

Method Detail

getFavorites

void 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 http://api.twitter.com/1/favorites

Since:
Twitter4J 2.0.1
See Also:
GET favorites | dev.twitter.com

getFavorites

void getFavorites(int page)
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 http://api.twitter.com/1/favorites

Parameters:
page - number of page to retrieve favorites
Since:
Twitter4J 2.0.1
See Also:
GET favorites | dev.twitter.com

getFavorites

void getFavorites(java.lang.String id)
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 http://api.twitter.com/1/favorites

Parameters:
id - the ID or screen name of the user for whom to request a list of favorite statuses
Since:
Twitter4J 2.0.1
See Also:
GET favorites | dev.twitter.com

getFavorites

void getFavorites(java.lang.String id,
                  int page)
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 http://api.twitter.com/1/favorites

Parameters:
id - the ID or screen name of the user for whom to request a list of favorite statuses.
page - retrieves the 20 next most recent favorite statuses.
Since:
Twitter4J 2.0.1
See Also:
GET favorites | dev.twitter.com

createFavorite

void createFavorite(long id)
Favorites the status specified in the ID parameter as the authenticating user. Returns the favorite status when successful.
This method calls http://api.twitter.com/1/favorites/create%C2%A0

Parameters:
id - the ID or screen name of the user for whom to request a list of favorite statuses.
Since:
1.1.2
See Also:
POST favorites/create/:id | dev.twitter.com

destroyFavorite

void destroyFavorite(long id)
Favorites the status specified in the ID parameter as the authenticating user. Returns the favorite status when successful.
This method calls http://api.twitter.com/1/favorites/destroy

Parameters:
id - the ID or screen name of the user for whom to request a list of un-favorite statuses.
Since:
1.1.2
See Also:
POST favorites/destroy/:id | dev.twitter.com