ignatenkovnikita/yii2-digitaldirect-ivr

Digital Direct API Voice

v1.0 2016-04-26 09:20 UTC

This package is auto-updated.

Last update: 2024-10-29 04:25:34 UTC


README

Digital Direct api voice

Latest Stable Version Total Downloads Latest Unstable Version License

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);