ignatenkovnikita / yii2-digitaldirect-ivr
Digital Direct API Voice
Installs: 53
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: *
- yiisoft/yii2-httpclient: ~2.0.0
This package is auto-updated.
Last update: 2024-11-29 04:43:08 UTC
README
Digital Direct api voice
Installation
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.
Usage
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' ],
Typical component usage
Yii::$app->ivr->statusOneMessage(id); Yii::$app->ivr->sendMessage(params);