Update WhatsappHelper.php

This commit is contained in:
Jagad R R
2025-03-03 14:22:02 +07:00
parent b3ce444c97
commit d016ca4f6a
-5
View File
@@ -233,8 +233,6 @@ class WhatsappHelper
]; ];
} }
dd(env('WABLAS_HOST'), env('WABLAS_TOKEN'), $data);
try { try {
// Send the request to the WABLAS API // Send the request to the WABLAS API
$response = $client->post(env('WABLAS_HOST') . '/api/v2/send-message', [ $response = $client->post(env('WABLAS_HOST') . '/api/v2/send-message', [
@@ -248,11 +246,8 @@ class WhatsappHelper
'verify' => false, 'verify' => false,
]); ]);
dd($response->getBody()->getContents());
return $response->getBody()->getContents(); return $response->getBody()->getContents();
} catch (\Exception $e) { } catch (\Exception $e) {
dd($e->getMessage());
AuditTrailHelper::AddAuditTrail('Error', 'Failed to send WhatsApp message at Form (' . $expense_number . ')'); AuditTrailHelper::AddAuditTrail('Error', 'Failed to send WhatsApp message at Form (' . $expense_number . ')');
return null; return null;
} }