xtratio / onlinepbx-api
onlinepbx.ru http api 客户端
v1.0.0
2017-01-29 13:57 UTC
This package is not auto-updated.
Last update: 2024-09-22 10:13:33 UTC
README
Http api 文档 onlinepbx.ru
安装
手册
下载zip存档并需要Autoloader.php
require_once 'lib/Autoloader.php';
Composer (指南)
将require项目添加到您的项目composer.json文件中
"xtratio/onlinepbx-api": "~1.0"
或命令行
composer require xtratio/onlinepbx-api
使用
// Create new client object $api = new xtratio\Onpbx\ApiClient( "yourdomain.onpbx.ru", "api key" ); // Get call history $from = (new DateTime())->modify("-1 day")->format("r"); $to = (new DateTime())->format("r"); $result = $api->callHistory(array("date_from"=>$from,"date_to"=>$to));