Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
LINE Social API in GO
Search
LINE Developers Taiwan
PRO
July 23, 2019
Programming
0
2.4k
LINE Social API in GO
Chatbots meetup #11 2019/07/23,
https://chatbots.kktix.cc/events/chatb11ts
LINE Developers Taiwan
PRO
July 23, 2019
Tweet
Share
More Decks by LINE Developers Taiwan
See All by LINE Developers Taiwan
菸酒生在 LINE Taiwan 的後端雙刀流
line_developers_tw
PRO
0
1.2k
讓測試不再 BB! 從 BDD 到 CI/CD, 不靠人力也能 MVP
line_developers_tw
PRO
0
1.2k
DB 醬,嗨!哪泥嘎斯基?
line_developers_tw
PRO
0
1.3k
比起獨自升級 我更喜歡 DevOps 文化 <3
line_developers_tw
PRO
0
1.3k
工具人的一生: 開發很多 AI 工具讓我 慵懶過一生
line_developers_tw
PRO
0
1.2k
從四件事帶你見識見識 事件驅動架構設計 (EDA)
line_developers_tw
PRO
0
1.1k
TODAY 看世界(?) 是我們在看扣啦!
line_developers_tw
PRO
0
1.2k
你想成為什麼樣的開發者?
line_developers_tw
PRO
0
26
研究生的 LINER生活
line_developers_tw
PRO
0
27
Other Decks in Programming
See All in Programming
GitHub Copilot and GitHub Codespaces Hands-on
ymd65536
2
150
PipeCDのプラグイン化で目指すところ
warashi
1
270
ISUCON研修おかわり会 講義スライド
arfes0e2b3c
1
440
ニーリーにおけるプロダクトエンジニア
nealle
0
820
Google Agent Development Kit でLINE Botを作ってみた
ymd65536
2
240
PicoRuby on Rails
makicamel
2
130
A2A プロトコルを試してみる
azukiazusa1
2
1.4k
初学者でも今すぐできる、Claude Codeの生産性を10倍上げるTips
s4yuba
16
11k
プロダクト志向なエンジニアがもう一歩先の価値を目指すために意識したこと
nealle
0
130
なんとなくわかった気になるブロックテーマ入門/contents.nagoya 2025 6.28
chiilog
1
270
PHP 8.4の新機能「プロパティフック」から学ぶオブジェクト指向設計とリスコフの置換原則
kentaroutakeda
2
840
AI コーディングエージェントの時代へ:JetBrains が描く開発の未来
masaruhr
1
100
Featured
See All Featured
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
10
950
Done Done
chrislema
184
16k
How STYLIGHT went responsive
nonsquared
100
5.6k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
48
2.9k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
281
13k
Git: the NoSQL Database
bkeepers
PRO
430
65k
Into the Great Unknown - MozCon
thekraken
40
1.9k
Gamification - CAS2011
davidbonilla
81
5.4k
Embracing the Ebb and Flow
colly
86
4.7k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
26k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.4k
Transcript
LINE Social API in GO LINE Technical Evangelist Evan Lin
(YDQ/LQ /,1(7HFKQLFDO(YDQJHOLVW • 'HYHORSHU 5HODWLRQV • 7HFKQLFDO EUDQGLQJ • 7HFKQLFDO
+LULQJ • /,1( 'HYHORSHU 0HHWXS7HFK3XOVH 2UJDQL]HU
NEW API Update
https://developers.line.biz/en/news/#new-messaging-api-endpoints-for-friend-statistics-2019-07-08
The same result with CMS ”Insight”
LINE need your contributions (Python, Nodejs, Ruby …)
LINE Social API in Go
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()”.
LINE Social API in Go https://github.com/kkdai/line-social-sdk-go
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/
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.
LINE Login: Open ID Diagram
Code block for LINE Login (Open ID) in Go
Code block for LINE Login (Open ID) in Go (2)
LINE Login: Profile Diagram
Code block for LINE Login (Profile) in Go
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
Q&A