History | Log In      
Issue Details (XML | Word | Printable)

Key: TFJ-19
Type: New Feature
Status: Closed
Resolution: Fixed
Priority: Major
Assignee: Yusuke Yamamoto
Reporter: Yusuke Yamamoto
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Twitter4J

support for favorite methods

Created: 19/Jan/08 05:03 PM   Updated: 20/Jan/08 01:35 AM
Component/s: Core
Affects Version/s: None
Fix Version/s: 1.0.3


 Description  « Hide
------------
Favorite Methods

favorites

Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
URL: http://twitter.com/favourings.format
Formats: xml, json, rss, atom
Parameters:
id. Optional. The ID or screen name of the user for whom to request a list of favorite statuses. Ex: http://twitter.com/favourings/bob.json or http://twitter.com/favourings/bob.rss
page. Optional. Retrieves the 20 next most recent favorite statuses. Ex: http://twitter.com/favourings.xml?page=3
create

Favorites the status specified in the ID parameter as the authenticating user. Returns the favorite status when successful.
URL: http://twitter.com/favourings/create/id.format
Formats: xml, json
Parameters:
id. Required. The ID of the status to favorite. Ex: http://twitter.com/favourings/create/12345.json or http://twitter.com/favourings/create/45567.xml
destroy
Un-favorites the status specified in the ID parameter as the authenticating user. Returns the un-favorited status in the requested format when successful.
URL: http://twitter.com/favourings/destroy/id.format
Formats: xml, json
Parameters:
id. Required. The ID of the status to un-favorite. Ex: http://twitter.com/favourings/destroy/12345.json or http://twitter.com/favourings/destroy/23456.xml
---------

 All   Comments   Change History   Subversion Commits      Sort Order:
Yusuke Yamamoto - [20/Jan/08 01:35 AM ]
Here's the list of added methods.

    public final synchronized List<Status> favorites() throws TwitterException
    public final synchronized List<Status> favorites(int page) throws TwitterException  
    public final synchronized List<Status> favorites(String id) throws TwitterException
    public final synchronized List<Status> favorites(String id,int page) throws TwitterException
    public final synchronized Status createFavorite(int id) throws TwitterException
    public final synchronized Status destroyFavorite(int id) throws TwitterException