下載
git clone https://github.com/DevinY/LineEchoBot.git line
安裝及產生App Key
cd line composer install cp .env.example .env php artisan key:generate
編輯.env檔,填入Line Console的資料
LINEBOT_CHANNEL_ID= LINEBOT_CHANNEL_SECRET= LINEBOT_CHANNEL_TOKEN=
預設Webhook URL Requires SSL(需使用https://)
訊息API推播測試
網址傳入:
https://您的域名/api/push_text?message=這是推播訊息&to=[UserId]
查看Laravel的Log可以看到userId
tail -f storage/logs/laravel.log