Erro macro sc_send_sms

(adriano_cirino) #1

Ond ende estou errando em minha implementação para enviar sms:

$arr_settings = array(
‘message’ =>
[
‘to’ => ‘+556198327390’,
‘message’ => ‘Scriptcase SMS’
],
‘settings’ =>
[
‘gateway’ => ‘clickatell’,
‘auth_token’ => ‘meu token aqui’
]);

sc_send_sms($arr_settings);

retorna com este erro:

Fatal error: Uncaught Error: Class ‘Clickatell\ClickatellException’ not found in C:\Program Files\NetMake\v9\wwwroot\scriptcase\prod\third\clickatell\src\Rest.php:72 Stack trace: #0 C:\Program Files\NetMake\v9\wwwroot\scriptcase\prod\third\clickatell\src\Rest.php(119): Clickatell\Rest->handle(false, 0) #1 C:\Program Files\NetMake\v9\wwwroot\scriptcase\prod\third\clickatell\src\Rest.php(131): Clickatell\Rest->curl(‘messages’, Array) #2 C:\Program Files\NetMake\v9\wwwroot\scriptcase\app\OS_AcSoftwares_lib\lib\php\nm_api.php(373): Clickatell\Rest->sendMessage(Array) #3 C:\Program Files\NetMake\v9\wwwroot\scriptcase\app\OS_AcSoftwares\sms_enviar\index.php(1663): sc_send_sms(Array) #4 C:\Program Files\NetMake\v9\wwwroot\scriptcase\app\OS_AcSoftwares\sms_enviar\index.php(2010): sms_enviar_apl->controle() #5 {main} thrown in C:\Program Files\NetMake\v9\wwwroot\scriptcase\prod\third\clickatell\src\Rest.php on line 72

(adriano_cirino) #2

Peguei o projeto teste feito pela @netmake e o erro dar também !

Fatal error: Uncaught Error: Class ‘Clickatell\ClickatellException’ not found in C:\Program Files\NetMake\v9\wwwroot\scriptcase\prod\third\clickatell\src\Rest.php:72 Stack trace: #0 C:\Program Files\NetMake\v9\wwwroot\scriptcase\prod\third\clickatell\src\Rest.php(119): Clickatell\Rest->handle(false, 0) #1 C:\Program Files\NetMake\v9\wwwroot\scriptcase\prod\third\clickatell\src\Rest.php(131): Clickatell\Rest->curl(‘messages’, Array) #2 C:\Program Files\NetMake\v9\wwwroot\scriptcase\app\webinar_sc_send_sms_lib\lib\php\nm_api.php(373): Clickatell\Rest->sendMessage(Array) #3 C:\Program Files\NetMake\v9\wwwroot\scriptcase\app\webinar_sc_send_sms\control_sms\control_sms_apl.php(3467): sc_send_sms(Array) #4 C:\Program Files\NetMake\v9\wwwroot\scriptcase\app\webinar_sc_send_sms\control_sms\control_sms_apl.php(1790): control_sms_apl->m_sms_clickatell(‘clickatell’, ‘DKPdYySeQ3…’, ‘64984451404’, ‘teste’, ‘61981127090’) #5 C:\Program Files\NetMake\v9\wwwroot\scriptcase\app\webinar_sc_send_sms\control_sms\control_sms_apl.php(1 in C:\Program Files\NetMake\v9\wwwroot\scriptcase\prod\third\clickatell\src\Rest.php on line 72