jcid / voys
An Voys API wrapper for the click and dial flow.
0.1.0
2017-05-05 09:48 UTC
Requires
- php: ^7.0
- beberlei/assert: ^2.7
- guzzlehttp/guzzle: ^6.2
- webmozart/json: ^1.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.2
- phpro/grumphp: ^0.11.4
- sensiolabs/security-checker: ^4.0
This package is auto-updated.
Last update: 2024-10-23 19:36:47 UTC
README
Voys call API wrapper
An Voys API wrapper for the click to dial flow.
Installation
Using Composer:
composer require jcid/voys
Example usages
Fill in your Voys login credentials, with your e-mail address and password. Fill in the phone number you want to call to go and see will get additional outgoing phone which others in their display. Note, this should be a number of Voys.
use Jcid\Voys\Voys; $voys = new Voys('email@example.com', 'password'); $callId = $voys->callPhonenumer('0123456789', '0123456789'); echo $callId;
Fetch the status of the call by the returned $callId
after you have started an call.
use Jcid\Voys\Voys; $voys = new Voys('email@example.com', 'password'); $callId = $voys->callPhonenumer('0123456789', '0123456789'); $callStatus = $voys->getCallStatus($callId); echo $callStatus;
The possible statussen of an call could be one of the following
use Jcid\Voys\VoysCallStatus; VoysCallStatus::STATUS_NULL VoysCallStatus::DIALING_A VoysCallStatus::DIALING_B VoysCallStatus::CONNECTED VoysCallStatus::DISCONNECTED VoysCallStatus::FAILING_A VoysCallStatus::FAILING_B