An Voys API wrapper for the click and dial flow.
An Voys API wrapper for the click to dial flow.
composer require jcid/voys
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('firstname.lastname@example.org', '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