denostr/binotel-api

Binotel API 客户端

0.1.3 2018-12-27 10:17 UTC

This package is not auto-updated.

Last update: 2024-09-29 05:27:44 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License

安装

建议通过 composer 安装

$ composer require denostr/binotel-api

或添加到

"denostr/binotel-api": "~0.1"

文件 composer.json

使用说明

try {
    $client = new \denostr\Binotel\Client('KEY', 'SECRET');
    
    $settings = $client->settings;
    $voiceFiles = $settings->listOfVoiceFiles();

    print_r($voiceFiles);

} catch (\denostr\Binotel\Exception $e) {
    printf('Error (%d): %s' . PHP_EOL, $e->getCode(), $e->getMessage());
}

文档

  • Stats - 获取通话统计信息的模型;
  • Customers - 处理客户的模型;
  • Calls - 处理通话的模型;
  • Settings - 获取虚拟交换机设置的模型;