Skip to content

官方Slim框架的EchoBot變更為Laravel框架

License

Notifications You must be signed in to change notification settings

CRGao/LineEchoBot

Repository files navigation

LineEchoBot

下載

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://)

https://您的域名/callback

訊息API推播測試

網址傳入:

https://您的域名/api/push_text?message=這是推播訊息&to=[UserId]

查看Laravel的Log可以看到userId

tail -f storage/logs/laravel.log 

About

官方Slim框架的EchoBot變更為Laravel框架

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published