<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
apihub-cdc / eflow-simulacion-client-php example snippets
public function setUp()
{
$handler = \GuzzleHttp\HandlerStack::create();
$config = new \EFLOWSimulacion\Client\Configuration();
$config->setHost('the_url');
$client = new \GuzzleHttp\Client(['handler' => $handler, 'verify' => false]);
$this->apiInstance = new \EFLOWSimulacion\Client\Api\EFLOWSimulacionApi($client,$config);
}
/**
* Este es el método que se será ejecutado en la prueba ubicado en path/to/repository/test/Api/ApiTest.php
*/
public function testEflow()
{
$x_api_key = "your_api_key";
$request = new \EFLOWSimulacion\Client\Model\Peticion();
$request->setFolio("000016");
$request->setTipoDocumento("1");
$request->setNumeroDocumento("00000002");
try {
$result = $this->apiInstance->eflow($x_api_key, $request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ApiTest->eflow: ', $e->getMessage(), PHP_EOL;
}
}
sh
#ejemplo con php en versión 7.3 para otra versión colocar php{version}-curl
apt-get install php7.3-curl
apt-get install php7.3-mbstring
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.