Skip to content

djaf77/devino-viber

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Devino Viber HTTP Client

Build Status

Простой клиент для работы с Devino Viber HTTP API.

Документация по API: http://devino-documentation.readthedocs.io/viber-resender.html

Установка

composer require superjob/devino-viber

Применение

$guzzle = new Client();
$client = new ViberClient($guzzle, 'login', 'password');
$client->send([new Message('79xxxxxxxx', 'Sender', 'Lorem ipsum', new TextContent('Text content'))]);

вернет что-то вроде

array(1) {
  [0] =>
  class superjob\devino\message\SendResponse#23 (2) {
    protected $code =>
    string(2) "ok"
    protected $providerId =>
    string(19) "3231334966948265985"
  }
}

About

Devino Viber HTTP Client

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%