Skip to content

SevenFloor/api-i-digital

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Client Api for send message Text|Viber

Latest Stable Version Total Downloads Latest Unstable Version License

Installation

The preferred way to install this extension is through composer.

Either run

composer require sevenfloor/api-i-digital:dev-master

or add

"sevenfloor/api-i-digital": "dev-master"

to the require section of your composer.json file.

Usage

Add this to your main configuration's components array:

'sms' => function () {
    $component = new \sevenfloor\apiidigital\Client('base_uri');
    $component->node_id = 'node_id';
    $component->password = 'password';
    return $component;
},

Typical component usage

$sms = \Yii::$app->smsnew;

$body = new \sevenfloor\apiidigital\Body(\sevenfloor\apiidigital\Body::TYPE_TEXT, 'test');

// send message
var_dump($sms->message($body, 'source_name', 'desctination'));
// receive status
var_dump($sms->receive());

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages