public function directMessagesDestroy($id, $includeEntities = null) { // build parameters $parameters['id'] = (string) $id; if ($includeEntities !== null) { $parameters['include_entities'] = $includeEntities ? 'true' : 'false'; } // make the call return $this->doCall('direct_messages/destroy.json', $parameters, true, 'POST'); }
/** * 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']); }