netflie / whatsapp-cloud-api

The first PHP API to send and receive messages using a cloud-hosted version of the WhatsApp Business Platform
https://netflie.es/portfolio/whatsapp-business-cloud-api-php-sdk/
MIT License
428 stars 151 forks source link

Successful message #175

Closed musavirchukkan closed 4 months ago

musavirchukkan commented 4 months ago

try{

$response = $whatsapp_cloud_api->sendTextMessage($number, 'Hey there! test successful!');
return $response;

}catch(\Netflie\WhatsAppCloudApi\Response\ResponseException $e){ return $e->response(); }

when returning the response it shows an error

musavirchukkan commented 4 months ago

sorry I got the response when I added decodeBody with response return $response->decodedBody();