mejora realizada a la lectura de parametros del envio de sms

parent 848790b5
...@@ -65,11 +65,11 @@ class Sms extends BaseSms ...@@ -65,11 +65,11 @@ class Sms extends BaseSms
$post['to'] = array($movil); $post['to'] = array($movil);
$post['text'] = $mensaje; $post['text'] = $mensaje;
$post['from'] = 'McAfee'; $post['from'] = Utiles::getParametroConfiguracion("from_sms");
$user ='GearLabs'; $user =Utiles::getParametroConfiguracion('usuario_sms');
$password = 'XCrk02@#'; $password = Utiles::getParametroConfiguracion("pass_sms");
$ch = curl_init(); $ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://sms.teltech.ai/Api/rest/message"); curl_setopt($ch, CURLOPT_URL, Utiles::getParametroConfiguracion("url_sms"));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($post)); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($post));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment