Skip to content

Koenster/php-voys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Voys click 2 dial

##How does it work


require_once 'vendor/autoload.php';

$hash = 'your token!!'; // Your click 2 dial token
$fromPhoneNumber = '+31(0)12345678'; // Phone number
$fromPhone = '201'; // Phone number

/** @var \koenster\Voys\Voys $voys */
$voys = new \koenster\Voys\Voys($hash, $fromPhoneNumber, $fromPhone);

$call1 = $voys->call('+31(0)12345678');

/** @var \Koenster\Voys\VoysCall $call1 */
if ($call1->isValid()) {
    $call1->getCallFromPhone();
    $call1->getCallFromPhoneNumber();
    $call1->getCallToDisplayPhoneNumber();
    $call1->getCallToPhoneNumber();
    $call1->getCallId();

    $status = $voys->getCallStatus($call1->getCallId());
    if ($status->isValid()) {
        $status->response;
    }
}

##Stable This repo is not stable yet!

About

PHP library for click 2 dial with Voys.nl

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages