#!/usr/bin/php -q identificarDocumento('13027522272'); var_dump($retorno); // $retorno = $mk->identificarDocumento('06192155186 // // // // // // // // // // // // // // // '); // $retorno = $mk->segundaVia(206834); // $cliente = $mk->identificarDocumento('34024743104'); //// $retorno = $mk->obtemConexao($cod_cliente); // // $retorno = $mk->obtemConexao($cliente['CodigoPessoa']); // $desbloqueado = false; //// //foreach($retorno['Conexoes'] as $value) { // // $unblock = $mk->desbloqueiaCliente($value['codconexao']); // var_dump($unblock); // if ($value['bloqueada'] == 'Não') { // if($unblock['status'] == 'OK'){ // $desbloqueado = true; // } // } //} // // if ($desbloqueado) { // print('sucesso'); // }else{ // print('falha'); // } //// print_r($cliente); // $invoice = $mk->buscaFatura($cliente['CodigoPessoa']); // $invoices = $mk->getPaymentInvoice($invoice, CONF_FATURA_DIAS_ANTES, CONF_FATURA_DIAS_APOS); //// // foreach ($invoices as $inv) { // $response = $mk->segundaVia($inv); // if ($response['status'] == "OK") { // // $link = str_replace("138.186.128.30:8010", "mk.weblacerda.net", $response['PathDownload']); // $url = "https://smsbr.com.br/enviosms.php?chaveAPI=860285389&usuarioNome=weblacerda&numeroTel=5565999276616&mensTexto=".urlencode("Estamos enviando o link da segunda via do seu boleto: $link"); // $envioSms = file_get_contents($url); // var_dump($envioSms); // } // } // $mk->SimpleMail(CONF_SENDER_EMAIL_USER, CONF_SENDER_EMAIL_PASSWORD, CONF_EMAIL_SUBTITLE_INVOICE); // $mk->confSMTP(CONF_SMTP_HOST, CONF_SMTP_POST, CONF_EMAIL_TITLE_INVOICE, true, 'tls'); // $response = $mk->enviarBoletoFatura('06192155186', true); // // var_dump($response); //