PHP code example of vincentdewit / kazoo-php-sdk
1. Go to this page and download the library: Download vincentdewit/kazoo-php-sdk library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
vincentdewit / kazoo-php-sdk example snippets
/* Install the library via composer or download the .zip file to your project folder. */
/* This line loads the library */
'http://kazoo-crossbar-url:8000');
/* Get an authentication token using ONE of the provided methods */
// $authToken = new \Kazoo\AuthToken\None(); /* must have IP auth enabled on Kazoo */
// $authToken = new \Kazoo\AuthToken\ApiKey('XXXXX');
$authToken = new \Kazoo\AuthToken\User('username', 'password', 'sip.realm');
$sdk = new \Kazoo\SDK($authToken, $options);
$filter = array('filter_priv_level' => 'admin');
$users = $sdk->Account()->Users($filter);
foreach ($users as $element) {
$admin = $element->fetch();
$admin->
yaml
"2600hz/kazoo-php-sdk": "dev-master"