<?php include_once 'human_gateway_client_api/HumanClientMain.php'; // Faz a chamada usando lay-out C /***************************************************************************************************************/ $arquivo = "C:/arquivo.csv"; $humanMultipleSend = new HumanMultipleSend("conta", "senha"); $response = $humanMultipleSend->sendMultipleFileCSV(HumanMultipleSend::TYPE_C, $arquivo); foreach ($response as $resp) { echo $resp->getCode() . " - " . $resp->getMessage() . "<br />"; }
<?php ini_set('display_errors', "on"); ini_set('error_reporting', E_ALL & ~E_NOTICE); include_once 'human_gateway_client_api/HumanClientMain.php'; // Exemplo para testar a lista $msg_list = array(); $msg_list[] = "001"; $msg_list[] = "002"; $msg_list[] = "003"; $msg_list[] = "004"; $msg_list[] = "005"; $msg_list[] = "006"; $msg_list[] = "007"; $msg_list[] = "008"; $msg_list[] = "009"; $msg_list[] = "010"; // Faz a chamada $humanMultipleSend = new HumanMultipleSend("conta", "senha"); $response = $humanMultipleSend->queryMultipleStatus($msg_list); foreach ($response as $resp) { echo $resp->getCode() . " - " . $resp->getMessage() . "<br />"; }
<?php ini_set('display_errors', "on"); ini_set('error_reporting', E_ALL & ~E_NOTICE); include_once 'human_gateway_client_api/HumanClientMain.php'; // Exemplo para testar a lista no lay-out C $msg_list = "550092167288;teste0;004" . "\n"; $msg_list .= "550081262695;teste1;005" . "\n"; $msg_list .= "550081337773;teste2;006" . "\n"; $msg_list .= "550096025425;teste3;007" . "\n"; // Faz a chamada usando lay-out C $humanMultipleSend = new HumanMultipleSend("conta", "senha"); $response = $humanMultipleSend->sendMultipleList(HumanMultipleSend::TYPE_C, $msg_list); foreach ($response as $resp) { echo $resp->getCode() . " - " . $resp->getMessage() . "<br />"; }