vitalik74 / comagic-api
实现 comagic.ru API
dev-master
2015-04-21 09:44 UTC
Requires
Requires (Dev)
- codeception/codeception: 2.0.12
- codeception/specify: 0.4.1
- codeception/verify: 0.2.7
This package is not auto-updated.
Last update: 2024-09-14 17:58:46 UTC
README
关于 API 的文档。
该类支持 1.0 版本的 Api。
要运行测试,需要安装 Codeception
。
示例
$comagic = new Comagic([ 'login' => $config['login'], 'password' => $config['password'] ]); $comagic->getCdrIn(['customer_id' => $customerId, 'date_from' => date('Y-m-d'), 'date_till' => date('Y-m-d')]); // Получение информации о входящих звонках $comagic->getCdrOut(['customer_id' => $customerId, 'date_from' => date('Y-m-d'), 'date_till' => date('Y-m-d')]);
特点
所有方法都是通过魔法实现的。自动补全功能非常好。