LINE Social API in GO

LINE Social API in GO

Chatbots meetup #11 2019/07/23, https://chatbots.kktix.cc/events/chatb11ts

2102a6b8760bd6f57f672805723dd83a?s=128

line_developers_tw

July 23, 2019
Tweet

Transcript

  1. LINE Social API in GO LINE Technical Evangelist Evan Lin

  2. (YDQ/LQ /,1(7HFKQLFDO(YDQJHOLVW • 'HYHORSHU 5HODWLRQV • 7HFKQLFDO EUDQGLQJ • 7HFKQLFDO

    +LULQJ • /,1( 'HYHORSHU 0HHWXS7HFK3XOVH 2UJDQL]HU
  3. NEW API Update

  4. https://developers.line.biz/en/news/#new-messaging-api-endpoints-for-friend-statistics-2019-07-08

  5. The same result with CMS ”Insight”

  6. LINE need your contributions (Python, Nodejs, Ruby …)

  7. LINE Social API in Go

  8. LINE Social API • API to handle “User Access Token”,

    it help to retrieval user profile data. • “Issue access token” is process during you run LINE Login. • Another way is to use “liff.getAccessToken()”.
  9. LINE Social API in Go https://github.com/kkdai/line-social-sdk-go

  10. How to use LINE Social API in Go? • Github

    REPO: https://github.com/kkdai/line- login-go • Heroku server: https://login-tester- evan.herokuapp.com/
  11. LINE Login •LINE Login include two kinds of scope. •“Profile

    OpenID” will return JWT data to decode into user profile. •“Profile” only return access token, need use “social API” to get user profile.
  12. LINE Login: Open ID Diagram

  13. Code block for LINE Login (Open ID) in Go

  14. Code block for LINE Login (Open ID) in Go (2)

  15. LINE Login: Profile Diagram

  16. Code block for LINE Login (Profile) in Go

  17. Comparison Open ID Access Token LINE Login Scope profile openid

    profile Need extra API No Social get user profile Need decode data JWT decode No
  18. Q&A