typerej / line-notify
line-notify
dev-master
2019-11-13 05:55 UTC
Requires
- php: >=7.0
- ext-curl: *
- ext-json: *
This package is auto-updated.
Last update: 2024-09-13 17:06:21 UTC
README
composer require typerej/line-notify dev-master --prefer-dist
GENERATE URL
use TyperEJ\LineNotify\Notify; $notify = new Notify(CHANNEL_ID); $url = $notify->generateSubscribeUrl($options);
GET TOKEN
use TyperEJ\LineNotify\Notify; $notify = new Notify(CHANNEL_ID,CHANNEL_SECRET); $token = $notify->requestToken($_GET('code'));
PUSH MESSAGE
use TyperEJ\LineNotify\Notify; use TyperEJ\LineNotify\Message; $message = new Message('Notify Text'); Notify::sendMessage($token,$message);