Update WhatsappHelper.php
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user