GithubHelp home page GithubHelp logo

skyler-cheng / lineechobot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from crgao/lineechobot

0.0 1.0 0.0 861 KB

由官方Slim框架的EchoBot變更為Laravel框架,加入基本的架構。

License: Apache License 2.0

PHP 99.34% Vue 0.52% HTML 0.14%

lineechobot's Introduction

LineEchoBot

下載

git clone https://github.com/DevinY/LineEchoBot.git line

提供一個簡單的ChineseDictionary基本架構參考

包含回傳圖片及座標

安裝及產生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=

幫助大家快速進入,直接提供內建基本的測試用的資料庫。

請在.env中設定您測試用的資料庫。

php artisan migrte
php artisan db:seed

預設Webhook URL Requires SSL(需使用https://)

https://您的域名/callback

訊息API推播測試

網址傳入:

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

查看Laravel的Log可以看到userId

tail -f storage/logs/laravel.log 

youtube影片教學

lineechobot's People

Contributors

deviny avatar skyler-cheng avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.