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

LINE Social API in GO

LINE Social API in GO

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

LINE Developers Taiwan

July 23, 2019
Tweet

More Decks by LINE Developers Taiwan

Other Decks in Programming

Transcript

  1. 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()”.
  2. 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/
  3. 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.
  4. 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
  5. Q&A