benmag / notifyme-plivo
为NotifyMe提供Plivo网关
dev-master / 1.0.x-dev
2015-10-30 13:44 UTC
Requires
- php: >=5.5.9
- guzzlehttp/guzzle: ~5.3
- notifymehq/notifyme: ~1.0
Requires (Dev)
- phpunit/phpunit: ~4.0
This package is auto-updated.
Last update: 2024-08-29 03:15:52 UTC
README
NotifyMe的Plivo网关。详情请访问 NotifyMe。
示例
以下是一个使用Plivo的示例通知
<?php // Create a factory for notifications $notifierFactory = new NotifyMeHQ\NotifyMe\NotifyMeFactory(); // Create the new notification for plivo $plivoNotifier = $notifierFactory->make([ // Specify that we will use slack 'driver' => 'plivo', // Who send this message 'from' => 'Plivo', // Add auth tokens 'auth_id' => 'XXXXX', 'auth_token' => 'XXXXXXXXXXXXX', ]); /* @var \NotifyMeHQ\Contracts\ResponseInterface $response */ $response = $plivoNotifier->notify('1111111111', 'Hi, text from Plivo'); echo $response->isSent() ? 'Message sent' : 'Message going nowhere';
许可证
NotifyMe遵循 MIT许可证 (MIT)。