koenster/php-voys

A package to make outgoing calls with the API of voys.nl.

Installs: 3 888

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Type:project

v0.0.0 2016-07-21 09:46 UTC

This package is not auto-updated.

Last update: 2024-04-17 17:05:21 UTC


README

#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!