Upgrade to Pro — share decks privately, control downloads, hide ads and more …

20200822 Subscribe open data with LINE

20200822 Subscribe open data with LINE

LINE Developers Taiwan

August 22, 2020
Tweet

More Decks by LINE Developers Taiwan

Other Decks in Programming

Transcript

  1. Subscribe open data with LINE
    bot & notification by LINE Notify
    LINE Developer Relations
    NiJia Lin
    2020.08

    View full-size slide

  2. NiJia Lin
    • Developer Relations
    • External Evangelism
    • Internal Evangelism
    LINE Technology Evangelist

    View full-size slide

  3. • LINE, GitHub, Heroku account.
    • Fork GitHub repository.
    • Deploy to Heroku.
    • Create LINE bot.
    • Create LINE Login & LIFF.
    • Create LINE Notify.
    • Set Crontab jobs.
    • Demo time.
    Agenda

    View full-size slide

  4. LINE, GitHub , Heroku

    View full-size slide

  5. Fork GitHub
    repository.

    View full-size slide

  6. LINE Notify
    https://github.com/louis70109/LINE-subscribe-open-data-bot

    View full-size slide

  7. https://github.com/louis70109/LINE-subscribe-open-data-bot

    View full-size slide

  8. https://github.com/louis70109/LINE-subscribe-open-data-bot

    View full-size slide

  9. Create LINE bot

    View full-size slide

  10. https://developers.line.biz/console/

    View full-size slide

  11. • Channel name.
    • Channel description.
    • Category.
    • Subcategory.
    • Email address.
    • Select the checkbox.
    Create LINE bot

    View full-size slide

  12. Create LINE bot
    https://github.com/louis70109/LINE-subscribe-open-data-bot

    View full-size slide

  13. Input BOT webhook URL

    View full-size slide

  14. Wait a moment

    View full-size slide

  15. Input BOT environment variables

    View full-size slide

  16. Create 3 LIFFs

    View full-size slide

  17. Create LIFFs

    View full-size slide

  18. Create LIFFs

    View full-size slide

  19. Input LIFFs environment variables

    View full-size slide

  20. LINE Notify
    https://notify-bot.line.me/zh_TW/

    View full-size slide

  21. LINE Notify
    https://notify-bot.line.me/zh_TW/
    • Provided by LINE.
    • One-way notification.
    • LINE official account.
    • LINE pushes messages to user.
    • Via OAuth 2.0.

    View full-size slide

  22. Input LINE Notify environment variables

    View full-size slide

  23. Type 所有縣市 to your
    LINE bot

    View full-size slide

  24. LIFF
    Share Target Picker

    View full-size slide

  25. LIFF ShareTargetPicker & LINE Notify

    View full-size slide

  26. LINE FRESH 2020 校園競賽
    https://linefresh.linecorp.com/ 50

    View full-size slide

  27. LINE TECH FRESH
    https://engineering.linecorp.com/zh-hant/blog/tech-fresh-2020/
    51

    View full-size slide