Speedy API Client Documentation

Speedy API Client is a PHP HTTP client that makes it easy to send HTTP requests to Speedy API.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
use VasilDakov\Speedy\Speedy;
use GuzzleHttp\Client;
use Laminas\Diactoros\RequestFactory;

/** @var Configuration $configuration */
$configuration = new Configuration('username', 'password', 'language');

/** @var \Psr\Http\Client\ClientInterface $client */
$client = new Client();

/** @var \Psr\Http\Message\RequestFactoryInterface $factory */
$factory = new RequestFactory();

$speedy = new Speedy($configuration, $client, $factory);

$response = $speedy->getContractClient(new GetContractClientsRequest());