public function Twitter::user_timeline in Twitter 7.3
Same name and namespace in other branches
- 6.5 twitter.lib.php \Twitter::user_timeline()
- 6.3 twitter.lib.php \Twitter::user_timeline()
- 7.6 twitter.lib.php \Twitter::user_timeline()
- 7.5 twitter.lib.php \Twitter::user_timeline()
Fetch a user's timeline
See also
https://dev.twitter.com/docs/api/1/get/statuses/user_timeline
File
- ./
twitter.lib.php, line 96 - Classes to implement the full Twitter API
Class
- Primary Twitter API implementation class Supports the full REST API for twitter.
Code
public function user_timeline($id, $params = array(), $use_auth = FALSE) {
if (is_numeric($id)) {
$params['user_id'] = $id;
}
else {
$params['screen_name'] = $id;
}
return $this
->get_statuses('statuses/user_timeline', $params, $use_auth);
}