You are here

public function Twitter::user_timeline in Twitter 6.3

Same name and namespace in other branches
  1. 6.5 twitter.lib.php \Twitter::user_timeline()
  2. 7.6 twitter.lib.php \Twitter::user_timeline()
  3. 7.3 twitter.lib.php \Twitter::user_timeline()
  4. 7.5 twitter.lib.php \Twitter::user_timeline()

Fetch a user's timeline

See also

http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses-user_time...

File

./twitter.lib.php, line 165
Classes to implement the full Twitter API

Class

Twitter
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);
}