PHP code example of unapi / fssp

1. Go to this page and download the library: Download unapi/fssp 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/ */

    

unapi / fssp example snippets


use unapi\fssp\common\Anticaptcha;
use unapi\fssp\ip\Service;
use unapi\fssp\ip\requests;

$service = new Service([
  'anticaptcha' => new Anticaptcha(new AntigateService([...]),
]);

use unapi\helper\fullname\FullName;

/** @var Execution[] $executions */
$executions = $service->findExecutions(
  new requests\ByIndividualRequest(67, new FullName('Анжелика', 'Гинзбург', 'Иосифовна'))
)->wait();

/** @var Execution[] $executions */
$executions = $service->findExecutions(
  new requests\ByLegalRequest(67, 'Газпром')
)->wait();

/** @var Execution[] $executions */
$executions = $service->findExecutions(
  new requests\ByExecutionRequest('76735/17/67036-ИП')
)->wait();

/** @var Execution[] $executions */
$executions = $service->findExecutions(
  new requests\ByDocumentRequest(67, 'ФС 015507071')
)->wait();