-
favorites()returns the 20 most recent favorite statuses for the authenticating user or user specified by theidparameter.Example 860. Retrieving favorites
<?php
$twitter = new Zend_Service_Twitter(array(
'username' => 'johndoe',
'accessToken' => $token
));
$response = $twitter->favorite->favorites();The
favorites()method accepts an array of optional parameters to modify the query.idspecifies the ID or screen name of the user for whom to request a list of favorite statuses.pagespecifies which page you want to return.
-
create()favorites the status specified in theidparameter as the authenticating user.Example 861. Creating favorites
<?php
$twitter = new Zend_Service_Twitter(array(
'username' => 'johndoe',
'accessToken' => $token
));
$response = $twitter->favorite->create(12351);
-
destroy()un-favorites the status specified in theidparameter as the authenticating user.Example 862. Deleting favorites
<?php
$twitter = new Zend_Service_Twitter(array(
'username' => 'johndoe',
'accessToken' => $token
));
$response = $twitter->favorite->destroy(12351);




