You are here

public function Twitter::account_update_profile_banner in Twitter 6.5

Same name and namespace in other branches
  1. 7.6 twitter.lib.php \Twitter::account_update_profile_banner()
  2. 7.5 twitter.lib.php \Twitter::account_update_profile_banner()

Uploads a profile banner on behalf of the authenticating user.

Parameters

string $banner: The Base64-encoded or raw image data being uploaded as the user's new profile banner.

array $params: An array of parameters.

See also

https://dev.twitter.com/docs/api/1.1/post/account/update_profile_banner

File

./twitter.lib.php, line 1187
Integration layer to communicate with the Twitter REST API 1.1. https://dev.twitter.com/docs/api/1.1

Class

Twitter
Primary Twitter API implementation class

Code

public function account_update_profile_banner($banner, $params = array()) {
  $params['banner'] = $banner;
  return $this
    ->call('account/update_profile_banner', $params, 'POST');
}