You are here

public function Twitter::account_update_profile_image in Twitter 6.5

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

Updates the authenticating user's profile image.

Parameters

string $image: The avatar image for the profile, base64-encoded. Must be a valid GIF, JPG, or PNG

array $params: An array of parameters.

See also

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

File

./twitter.lib.php, line 987
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_image($image, $params = array()) {
  $params['image'] = $image;
  return $this
    ->call('account_update_profile_image', $params, 'POST');
}