repositório com os arquivos utilizados para integração entre o sistema SimplesIP e diversos sistemas.
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.
 
 

35 lines
957 B

#!/usr/bin/php -q
<?php
include 'HubSoft.php';
$hub = new HubSoft(
CONF_URL_API,
CONF_USERID_API,
CONF_TOKEN_API,
CONF_USER_API,
CONF_PASSWORD_API,
CONF_LOGGER_ATIVO
);
//05082222651 | 06651091646
$resp = $hub->identificarDocumento("365 167 050 00103");
print_r($resp['clientes'][0]);
// $retorno = $hub->consultaPendencia($resp['clientes'][0]['codigo_cliente']);
//
// $pendencia = false;
// foreach ($retorno['faturas'] as $fatura){
// $nova_data = explode('/', $fatura['data_vencimento']);
// $data_fatura = "{$nova_data[2]}-{$nova_data[1]}-{$nova_data[0]}";
//
// if(strtotime($data_fatura) < time()){
// $pendencia = true;
// }
// }
//
// if (!$pendencia) {
// echo 'NÃO POSSUI PENDENCIA';
// } else {
// echo "POSSUI PENDENCIA";
// }