Speedy API Client Documentation¶
Speedy API Client is a PHP HTTP client that makes it easy to send HTTP requests to Speedy API.
1use VasilDakov\Speedy\Speedy;
2use GuzzleHttp\Client;
3use Laminas\Diactoros\RequestFactory;
4
5/** @var Configuration $configuration */
6$configuration = new Configuration('username', 'password', 'language');
7
8/** @var \Psr\Http\Client\ClientInterface $client */
9$client = new Client();
10
11/** @var \Psr\Http\Message\RequestFactoryInterface $factory */
12$factory = new RequestFactory();
13
14$speedy = new Speedy($configuration, $client, $factory);
15
16$response = $speedy->getContractClient(new GetContractClientsRequest());