blank_app:
$arr_settings = array(
‘profile’ => ‘ChatAPI’,
‘message’ => ‘Test whatsapp en producción’,
‘to’ => ‘5219991379788’
);
sc_send_whatsapp($arr_settings);
sc_alert(“mensaje enviado con exito!”);
API is configure well:
I obtain this error on development environment:
Fatal error : Uncaught Exception: Request errorcURL error 35: SSL: CA certificate set, but certificate verification is disabled (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in /Applications/Scriptcase/v9/wwwroot/scriptcase/prod/third/chatapi/chatapi/whatsapp/src/Client.php:75 Stack trace: #0 /Applications/Scriptcase/v9/wwwroot/scriptcase/app/cobrita/_lib/lib/php/nm_api.php(454): chatapi\WhatsApp\Client->sendMessage(Array) #1 /Applications/Scriptcase/v9/wwwroot/scriptcase/app/cobrita/blank_send_wapp/index.php(1812): sc_send_whatsapp(Array) #2 /Applications/Scriptcase/v9/wwwroot/scriptcase/app/cobrita/blank_send_wapp/index.php(2292): blank_send_wapp_apl->controle() #3 {main} thrown in /Applications/Scriptcase/v9/wwwroot/scriptcase/prod/third/chatapi/chatapi/whatsapp/src/Client.php on line 75
In production just appear in blank no message error, dont execute sc_alert(“mensaje enviado con exito!”);
This is chat-api:
Please let me know what happens?