public function Twitter::account_profile_banner in Twitter 7.5
Same name and namespace in other branches
- 6.5 twitter.lib.php \Twitter::account_profile_banner()
- 7.6 twitter.lib.php \Twitter::account_profile_banner()
Returns a map of the available size variations of the specified user's profile banner.
Parameters
mixed $id: The numeric id or screen name of a Twitter user.
See also
https://dev.twitter.com/docs/api/1.1/get/users/profile_banner
File
- ./
twitter.lib.php, line 1240 - 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 account_profile_banner($id) {
if (is_numeric($id)) {
$params['user_id'] = $id;
}
else {
$params['screen_name'] = $id;
}
return $this
->call('account/profile_banner', $params, 'GET');
}