public interface FavoritesResources
Modifier and Type | Method and Description |
---|---|
Status |
createFavorite(long id)
Favorites the status specified in the ID parameter as the authenticating user.
|
Status |
destroyFavorite(long id)
Un-favorites the status specified in the ID parameter as the authenticating user.
|
ResponseList<Status> |
getFavorites()
Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
|
ResponseList<Status> |
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.
|
ResponseList<Status> |
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.
|
ResponseList<Status> |
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.
|
ResponseList<Status> |
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.
|
ResponseList<Status> |
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.
|
ResponseList<Status> getFavorites() throws TwitterException
TwitterException
- when Twitter service or network is unavailableResponseList<Status> getFavorites(long userId) throws TwitterException
userId
- the id of the user for whom to request a list of favorite statusesTwitterException
- when Twitter service or network is unavailableResponseList<Status> getFavorites(String screenName) throws TwitterException
screenName
- the screen name of the user for whom to request a list of favorite statusesTwitterException
- when Twitter service or network is unavailableResponseList<Status> getFavorites(Paging paging) throws TwitterException
paging
- controls pagination. Supports sinceId and page parameters.TwitterException
- when Twitter service or network is unavailableResponseList<Status> getFavorites(long userId, Paging paging) throws TwitterException
userId
- the id of the user for whom to request a list of favorite statusespaging
- controls pagination. Supports sinceId and page parameters.TwitterException
- when Twitter service or network is unavailableResponseList<Status> getFavorites(String screenName, Paging paging) throws TwitterException
screenName
- the screen name of the user for whom to request a list of favorite statusespaging
- controls pagination. Supports sinceId and page parameters.TwitterException
- when Twitter service or network is unavailableStatus createFavorite(long id) throws TwitterException
id
- the ID of the status to favoriteTwitterException
- when Twitter service or network is unavailableStatus destroyFavorite(long id) throws TwitterException
id
- the ID of the status to un-favoriteTwitterException
- when Twitter service or network is unavailableCopyright © 2018. All rights reserved.