public function Twitter::account_update_profile_background_image in Twitter 6.5
Same name and namespace in other branches
- 7.6 twitter.lib.php \Twitter::account_update_profile_background_image()
- 7.5 twitter.lib.php \Twitter::account_update_profile_background_image()
Updates the authenticating user's profile background image.
This method can also be used to enable or disable the profile background image. At least one of image, tile or use must be provided when making this request.
Parameters
string $image: A base64-encoded. Must be a valid GIF, JPG, or PNG image of less than 800 kilobytes in size.
bool $tile: Whether or not to tile the background image.
bool $use: Whether or not to use the background image.
array $params: An array of parameters.
See also
https://dev.twitter.com/docs/api/1.1/post/account/update_profile_backgro...
File
- ./
twitter.lib.php, line 949 - 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_background_image($image = NULL, $tile = NULL, $use = NULL, $params = array()) {
if ($image !== NULL) {
$params['image'] = $image;
}
if ($tile !== NULL) {
$params['tile'] = $tile;
}
if ($use !== NULL) {
$params['use'] = $use;
}
return $this
->call('account/update_profile_background_image', $params, 'POST');
}