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.
22 lines
842 B
22 lines
842 B
#!/usr/bin/php -q |
|
<?php |
|
|
|
$cpfCnpj = '10579426777'; |
|
|
|
$ch = curl_init(); |
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |
|
curl_setopt($ch, CURLOPT_VERBOSE, false); |
|
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST); |
|
curl_setopt($ch, CURLOPT_USERPWD, 'api:e71dcb58433495e653b37b79cc01a47a'); |
|
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); |
|
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); |
|
curl_setopt($ch, CURLOPT_HEADER, false); |
|
curl_setopt($ch, CURLOPT_NOBODY, false); |
|
curl_setopt($ch, CURLOPT_USERAGENT, 'cnt-manager/api'); |
|
curl_setopt($ch, CURLOPT_URL, 'http://168.227.52.8/main.php/api/cnt-manager/Pessoa_fetch?CpfCnpj='.$cpfCnpj); |
|
$resultEncode = curl_exec($ch); |
|
//$protocolo = json_decode(stripslashes($resultEncode)); |
|
|
|
echo "Resultado: " . json_decode($resultEncode); |
|
|
|
|