Introduction
This library is a client for the
Telzio API, (*1)
Features
This library’s features include the following., (*2)
- Get the Live calls at this moment
- Get the call log with call details
- Get specific call details
Installation
The recommended way to install this library is through Composer:, (*3)
$ php composer.phar require wpeereboom/php-telzio dev-master
Usage
The client
Use the client to get the call data. First construct a client and call the methods to receive the data:, (*4)
$telzioClient = new TelzioClient($username, $password);
// To get the live calls
$liveCalls = $telzioClient->getLiveCalls();
// To get the first 20 records of the call log
$logResult = $telzioClient->getLog();
// To get the details of a specific call
$call = $telzioClient->getCallDetails('sd35wegwe-b32we3-23b1c-4583e-ec1338asdc45e'); // CallUUID
// To get the account details, currently only balance information
$account = $telzioClient->getAccount();