wpeereboom/php-telzio

连接 Telzio API 的 PHP 库

0.2 2015-12-01 21:58 UTC

This package is not auto-updated.

Last update: 2024-09-18 18:25:40 UTC


README

介绍

此库是 Telzio API 的客户端

功能

此库的功能包括以下内容。

  • 获取当前正在进行中的实时通话
  • 获取带有通话详情的通话日志
  • 获取特定通话详情

安装

推荐通过 Composer 安装此库

$ php composer.phar require wpeereboom/php-telzio dev-master

用法

客户端

使用客户端获取通话数据。首先构建一个客户端并调用方法以接收数据

$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();