1. Go to this page and download the library: Download phrlog/zvonok-client 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/ */
phrlog / zvonok-client example snippets
$client = new \Phrlog\Zvonok\Client(\Phrlog\Zvonok\Config::createCalltools('your_public_key'));
$request = new \Phrlog\Zvonok\Phone\Request\AddCallRequest('+79857777777', 'campaign_id');
$response = $client->execute($request);
$request = new \Phrlog\Zvonok\Phone\Request\GetCallByIdRequest('234');
$response = $client->execute($request);
$request = new \Phrlog\Zvonok\Phone\Request\GetCallByPhoneRequest('+79857777777', 'campaign_id');
$response = $client->execute($request);
$request = new \Phrlog\Zvonok\Phone\Request\GetRegionByPhoneRequest('+79857777777');
$response = $client->execute($request);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.