denostr/yii2-binotel
Composer 安装命令:
composer require denostr/yii2-binotel
包简介
Клиент API Binotel для Yii2
关键字:
README 文档
README
Установка
Рекомендуется установка через composer:
$ composer require denostr/yii2-binotel:"~0.1.0"
или добавить
"denostr/yii2-binotel": "~0.1.0"
в файл composer.json
Подключение
Подключение компонента в конфиг проекта:
'components' => [
...
'binotel' => [
'class' => 'denostr\Binotel\yii\Client',
'key' => 'MY_KEY',
'secret' => 'MY_SECRET',
],
],
Использование
try {
$binotel = Yii::$app->binotel;
$voiceFiles = $binotel->settings->listOfVoiceFiles();
print_r($voiceFiles);
} catch (\denostr\Binotel\Exception $e) {
printf('Error (%d): %s' . PHP_EOL, $e->getCode(), $e->getMessage());
}
Документацию можно найти по ссылке
统计信息
- 总下载量: 1.24k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-02-13