sathish / webex
CISCO webex XML 和 NBR API 的 PHP 包
v0.1.0
2017-10-05 10:25 UTC
Requires
- php: >=5.3
This package is auto-updated.
Last update: 2024-09-09 19:14:27 UTC
README
安装
要安装此包,您需要
- PHP >= 5.3
运行此命令通过 composer 安装
composer require sathish/webex:dev-master
或编辑 composer.json
"require": {
"sathish/webex": "dev-master"
}
然后运行
composer install
API 实现
有关 WebEx NBR API 的更多信息,请访问 https://developer.cisco.com/site/webex-developer/develop-test/nbr-web-services-api/api-functions.gsp
用法
use Sathish\Webex\Nbr\WebExNBR;
$nbr = new WebExNBR('<admin username>', '<admin password>', '<site id>');
$nbr->setServiceUrl('<NBR API URL>'); /** Don't append slash(/) at the end **/
$nbr->generateTicket();
下载录音(响应将以多部分格式返回)
$nbr->downloadRecording('<recoding id>');
检索录音列表
$nbr->recordingList();
1小时后重新生成票据
$nbr->refreshTicket();
使用 Riverline\MultiPartParse 包来解析 downloadRecording 方法的成功响应。更多信息请访问 https://github.com/Riverline/multipart-parser
注意:欢迎 PR。