Giter Site home page Giter Site logo

linenotify's Introduction

LineNotify template : A simple Golang Line Notify Bot template

Join the chat at https://gitter.im/kkdai/linenotify

GoDoc Build Status

goreportcard.com

This is a template to help you if you want to implement Line Notify. It help us follow:

  • Authenication with Line Notify server
  • Help you to access token from Line Notify server
  • A notify entry point to notify Line Notify server

You can just try it or fork this repo to developing your own Line Notify server in Go.

Just want to try it?

  • Click this button and remember to login your Line account for authenication this notify.

  • Select one on one notification, click "Agreed and Connected"
  • It will help you to add friend with "Line Notify".



Installation for developer

1. Got A Line Bot API devloper account

Register your Line Notify Account

  • You need to fill all related info you need.
  • For "Service Site" and "Callback URL", just fill arbitrary web site with "http://xxx.xxx.com"
  • Remember you need "Client ID" and "Client Secret" for Heroku setup.

2. Deploy to your Heroku account

Deploy

Remember your heroku ID.

3. Config your Heroku Variables

Please config three variables as follow:

  • CallbackURL: Callback URL which should be https://YOUR_HEROKU_APPID.herokuapp.com/callback
  • ClientID: Client ID from Line Notify page
  • ClientSecret: Client Secret from Line Notify page

3. Fork this project and add git remote to heroku.

This is example of my heroku settup.

In your fork repo, path

  • git add remote heroku https://git.heroku.com/YOUR_ID.git

4. Update your related code.

  • Update govendor setting.
    • Install govendor
      • go get -u github.com/kardianos/govendor
    • Update root path
      • rm -Rf vendor
      • govendor init

5. Modify your code

6. Push to Heroku

  • git push -u heroku HEAD



Further Work:

If you want to implement business Line Notify service, you will need implement followsing after this repo.

  • Implement a database service to store all users' token and code.
  • Because Heroku server will force to shudown 6 hours per day, you will need to implement a dedicate server to notify Line Notify service once the notification happen anytime.

If you still have any questions, please file your issue and let me know.

Reference

linenotify's People

Contributors

kkdai avatar boyzfunhouse 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.