superjob / devino-viber
Devino Viber HTTP Client
Installs: 4 484
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 8
Forks: 3
Open Issues: 1
Requires
- php: >=7.1
- guzzlehttp/guzzle: ^6.3
Requires (Dev)
- phpunit/phpunit: ^6.2
This package is not auto-updated.
Last update: 2025-04-13 07:16:37 UTC
README
Простой клиент для работы с 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"
}
}