public function deleteTweet($case, $answer)
{
$client = initTwitter();
try {
if ($case->origin == 'Twitter mention') {
$client->post('statuses/destroy/' . $answer->tweet_id . '.json');
} else {
if ($case->origin == 'Twitter direct') {
$client->post('direct_messages/destroy.json?id=' . $answer->tweet_id);
}
}
Session::flash('flash_success', trans('crm-launcher::success.tweet_deleted'));
} catch (\GuzzleHttp\Exception\ClientException $e) {
getErrorMessage($e->getResponse()->getStatusCode());
return back();
}
}