composer require econsulte/whatsapp-api-sdk
Creat a new object BoletoSDK with token
use Econsulte\whatsappApiSDK\whatsappSDK;
$api = new WhatsAppSDK('################################', 'phone_number_id');
message + whatsapp_number
$app->sendTextMessage('hello world', "55###########")
template_name + whatsapp_number + parameters + lang
$app->sendTemplateMessage('template_name', "55###########", [[
"type" => "body",
"parameters" => [
[
'type' => 'text',
'text' => $var1,
],
[
'type' => 'text',
'text' => $var2
]
]
]])