Digital Direct api voice
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist ignatenkovnikita/yii2-digitaldirect-ivr "*"
or add
"ignatenkovnikita/yii2-digitaldirect-ivr": "*"
to the require section of your composer.json
file.
Add this to your main configuration's components array:
'ivr' => [
'class' => \ignatenkovnikita\digitaldirectivr\ClientVoice::className() ,
'url' => 'https://api.digital-direct.ru',
'login' => 'your_login',
'pass' => 'your_password'
],
Yii::$app->ivr->statusOneMessage(id);
Yii::$app->ivr->sendMessage(params);
Comments