PHP code example of brainydigital / intima.ai-sdk-php
1. Go to this page and download the library: Download brainydigital/intima.ai-sdk-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
brainydigital / intima.ai-sdk-php example snippets
ntimaai\Intimaai;
use Intimaai\API\APIRequestException;
use Intimaai\Models\CopiaProcessual;
try
{
$intimaai = new Intimaai('api_token');
$copiaProcessual = new CopiaProcessual('00000000000000000000', 120);
$resultado = $intimaai->copiasProcessuais->cadastrarNovaCopia($copiaProcessual);
dump($resultado);
}
catch (APIRequestException $exception)
{
dump($exception->toJson());
}
catch (\Exception $exception)
{
dump($exception->getMessage());
}
ntimaai\Intimaai;
use Intimaai\API\APIRequestException;
try
{
$intimaai = new Intimaai('api_token');
$paginacao = $intimaai->copiasProcessuais->paginar();
$paginacao->obterPagina(1);
$paginacao->proximaPagina();
$paginacao->paginaAnterior();
$paginacao->existeProximaPagina();
$paginacao->carregarTudo();
dump($paginacao->obterColecao());
}
catch (APIRequestException $exception)
{
dump($exception->toJson());
}
catch (\Exception $exception)
{
dump($exception->getMessage());
}
composer