public function Twitter::favorites_list in Twitter 7.5
Same name and namespace in other branches
- 6.5 twitter.lib.php \Twitter::favorites_list()
- 7.6 twitter.lib.php \Twitter::favorites_list()
Returns the 20 most recent favorited tweets for a user.
Parameters
mixed $id: The numeric id or screen name of a Twitter user.
array $params: an array of parameters.
See also
https://dev.twitter.com/docs/api/1.1/get/favorites/list
File
- ./
twitter.lib.php, line 1263 - Integration layer to communicate with the Twitter REST API 1.1. https://dev.twitter.com/docs/api/1.1
Class
- Primary Twitter API implementation class
Code
public function favorites_list($id, $params = array()) {
if (is_numeric($id)) {
$params['user_id'] = $id;
}
else {
$params['screen_name'] = $id;
}
return $this
->get_statuses('favorites/list', $params);
}