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.

74 lines
2.0 KiB

3 years ago
#!/usr/bin/php -q
<?php
require_once 'MKSolutions.php';
$mk = new MkSolutions();
$retorno = $mk->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<EFBFBD>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);
//