Important: This method requires an access token with RWD (read, write & direct message) permissions. Consult The Application Permission Model for more information.
public directMessagesDestroy ( string $id, bool[optional] $includeEntities = null ) : array | ||
$id | string | The ID of the direct message to delete. |
$includeEntities | bool[optional] | |
return | array |
/** * Tests Twitter->directMessagesNew */ public function testDirectMessagesNew() { $response = $this->twitter->directMessagesNew(null, 'tijs_dev', 'Running the tests.. 私のさえずりを設定する ' . time()); $this->isDirectMessage($response); $this->twitter->directMessagesDestroy($response['id']); }