phrlog/zvonok-client

Client for Zvonok(calltools) API

v1.1.0 2019-11-14 14:06 UTC

This package is auto-updated.

Last update: 2024-10-15 20:33:54 UTC


README

Build Status Scrutinizer Code Quality License

Description

Library for interacting with Zvonok(CallTools) API

Installation

composer require phrlog/zvonok-client

Examples

Client initialization

$client = new \Phrlog\Zvonok\Client(\Phrlog\Zvonok\Config::createCalltools('your_public_key'));

Add call

Docs

$request = new \Phrlog\Zvonok\Phone\Request\AddCallRequest('+79857777777', 'campaign_id');
$response = $client->execute($request);

Get call by id

Docs

$request = new \Phrlog\Zvonok\Phone\Request\GetCallByIdRequest('234');
$response = $client->execute($request);

Get call by phone

Docs

$request = new \Phrlog\Zvonok\Phone\Request\GetCallByPhoneRequest('+79857777777', 'campaign_id');
$response = $client->execute($request);

Get region by phone

Docs

$request = new \Phrlog\Zvonok\Phone\Request\GetRegionByPhoneRequest('+79857777777');
$response = $client->execute($request);

License

This project is licensed under the MIT License - see the LICENSE.md file for details