/voys

An Voys API wrapper for the click to dial flow

Primary LanguagePHPMIT LicenseMIT

JCID ♥️ Voys

Scrutinizer build status Scrutinizer quality score Software license Packagist version Packagist total downloads StyleCI SymfonyInsight

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

Voys documentation

Check out the 'Klik en bel' documentation by Voys