public function Twitter::direct_messages_destroy in Twitter 6.5
Same name and namespace in other branches
- 7.6 twitter.lib.php \Twitter::direct_messages_destroy()
- 7.5 twitter.lib.php \Twitter::direct_messages_destroy()
Destroys the direct message specified in the required ID parameter.
This method requires an access token with RWD (read, write & direct message) permissions
Parameters
int $id: The ID of the direct message.
array $params: An array of parameters.
Return value
The deleted direct message
See also
https://dev.twitter.com/docs/api/1.1/post/direct_messages/destroy
File
- ./
twitter.lib.php, line 617 - 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 direct_messages_destroy($id, $params = array()) {
$params['id'] = $id;
return $this
->get_statuses('direct_messages/destroy', $params);
}