public function Twitter::account_update_delivery_device in Twitter 7.5
Same name and namespace in other branches
- 6.5 twitter.lib.php \Twitter::account_update_delivery_device()
- 7.6 twitter.lib.php \Twitter::account_update_delivery_device()
Sets which device Twitter delivers updates to for the authenticating user.
Parameters
string $device: A string which must be one of: sms, none.
bool $include_entities: Whether tweets should include entities or not.
See also
https://dev.twitter.com/docs/api/1.1/post/account/update_delivery_device
File
- ./
twitter.lib.php, line 948 - 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_delivery_device($device, $include_entities = NULL) {
$params = array(
'device' => $device,
);
if ($include_entities !== NULL) {
$params['include_entities'] = $include_entities;
}
return $this
->call('account/settings', $params, 'POST');
}