Skip to content

Library for interacting with Zvonok(CallTools) API

License

Notifications You must be signed in to change notification settings

Phrlog/zvonok-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zvonok-client

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

About

Library for interacting with Zvonok(CallTools) API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages