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

Create a common service by Lotify and Swagger

Create a common service by Lotify and Swagger

NiJia at MOPCON 2020 event: https://mopcon.org/2020/schedule/2020011

2102a6b8760bd6f57f672805723dd83a?s=128

line_developers_tw

October 24, 2020
Tweet

Transcript

  1. Create a common service by Lotify and Swagger LINE Developer

    Relations NiJia Lin 2020.10
  2. None
  3. None
  4. None
  5. None
  6. Last year in MOPCON

  7. NiJia Lin • Developer Relations • External Evangelism • Internal

    Evangelism LINE Technology Evangelist
  8. LINE Notify & Lotify

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

  10. LINE Notify h"ps://no)fy-bot.line.me/zh_TW/ • Provided by LINE. • Don't need

    to install another app. • One way notify. • From LINE to user. • LINE official account. • Via OAuth 2.0.
  11. LINE Notify https://notify-bot.line.me/zh_TW/ • Provided by LINE. • Don't need

    to install another app. • One way notify. • From LINE to user. • LINE official account. • Via OAuth 2.0.
  12. LINE Notify - example

  13. LINE Notify - example

  14. LINE Notify – Other example • Produc'on monitor • Crawler

    informa'on • CI no'fy • Server healthy monitor • Bug report • Weather • My follow Twitch stream • Shopping cart • …
  15. LINE Notify - Type https://notify-bot.line.me/zh_TW/ • Text • Sticker •

    Image url • Image file
  16. LINE Notify Authorize flow https://notify-bot.line.me/doc/en/

  17. What’s things push me to create Lotify • Wrote LINE

    Notify usually. • Contributed line-bot-sdk-python. • Wanted owner SDK. • Simulate line-bot-sdk-python struct. • Learn relate knowledges from Meetups. • Backup knowledges.
  18. None
  19. None
  20. Lo#fy workflow https://github.com/louis70109/lotify

  21. Lo#fy need your star⭐! https://github.com/louis70109/lotify

  22. SDK was implemented, But…

  23. None
  24. So you need Swagger

  25. • Documentation • Generate by YAML or JSON • Write

    once, use everywhere • Flask: flask-restful-swagger-2.0 • With decorator • Django: pyswagger Swagger
  26. And use code-generator

  27. • Cross-team cooperation. • Documentation by Swagger. • Do not

    need to package API again. • Decrease your time. • Support lots of languages. Goals
  28. None
  29. Demo1

  30. Demo2

  31. Demo2

  32. Lotify-swagger-sample

  33. Messaging API Build bots that provide personalized experiences for your

    users on LINE.
  34. Messaging API SDK • The LINE Bot SDK makes it

    easier for you to start creating bots on LINE using Messaging API • Supports multiple languages • Java • Python • PHP • Node.js • Go • Ruby • Perl
  35. Chatbot Developer Taiwan •From: • Taipei (2019/02) • Taichung (2019/07)

    •Chatbot meetups: • Taipei: 24 • Taichung: 9
  36. None
  37. LINE TECH FRESH https://engineering.linecorp.com/zh-hant/blog/tech-fresh-2020/ 37

  38. https://engineering.linecorp.com/zh-hant/blog/2020-mopcon-lotify-sharing/