public function Twitter::account_update_profile_image in Twitter 7.6
Same name and namespace in other branches
- 6.5 twitter.lib.php \Twitter::account_update_profile_image()
- 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 1052 - 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_update_profile_image($image, $params = array()) {
$params['image'] = $image;
return $this
->call('account_update_profile_image', $params, 'POST');
}