forked from SimplesIP/pabx-app
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
570 B
26 lines
570 B
2 years ago
|
#!/usr/bin/php -q
|
||
|
<?php
|
||
|
|
||
|
echo "Informe o Telefone"."\r\n";
|
||
|
|
||
|
$telefone = readline($argv[1]);
|
||
|
|
||
|
echo "Enviando SMS...Aguarde"."\r\n";
|
||
|
sleep(1);
|
||
|
|
||
|
$url = sprintf("http://10.254.254.49/integracao?method=EnviaSMS&TroncoSainte=b0c0-9&NumeroDestino=%s&Texto=%s&login=aplicativos&senha=1234&tipoRetorno=XML",
|
||
|
$telefone,urlencode('TESTANDO A INTEGRACAO SIMPLES IP'));
|
||
|
|
||
|
$ch = curl_init();
|
||
|
curl_setopt($ch, CURLOPT_URL, $url);
|
||
|
|
||
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
||
|
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
|
||
|
$content = trim(curl_exec($ch));
|
||
|
curl_close($ch);
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|