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.3k
讓測試不再 BB! 從 BDD 到 CI/CD, 不靠人力也能 MVP
line_developers_tw
PRO
0
1.4k
DB 醬,嗨!哪泥嘎斯基?
line_developers_tw
PRO
0
1.4k
比起獨自升級 我更喜歡 DevOps 文化 <3
line_developers_tw
PRO
0
1.4k
工具人的一生: 開發很多 AI 工具讓我 慵懶過一生
line_developers_tw
PRO
0
1.3k
從四件事帶你見識見識 事件驅動架構設計 (EDA)
line_developers_tw
PRO
0
1.2k
TODAY 看世界(?) 是我們在看扣啦!
line_developers_tw
PRO
0
1.4k
你想成為什麼樣的開發者?
line_developers_tw
PRO
0
29
研究生的 LINER生活
line_developers_tw
PRO
0
40
Other Decks in Programming
See All in Programming
Understanding Kotlin Multiplatform
l2hyunwoo
0
250
中級グラフィックス入門~効率的なメッシュレット描画~
projectasura
4
2.4k
ワープロって実は計算機で
pepepper
1
270
実践 Dev Containers × Claude Code
touyu
1
120
リッチエディターを安全に開発・運用するために
unachang113
1
350
実践!App Intents対応
yuukiw00w
0
130
階層化自動テストで開発に機動力を
ickx
1
470
新世界の理解
koriym
0
130
管你要 trace 什麼、bpftrace 用下去就對了 — COSCUP 2025
shunghsiyu
0
170
副作用と戦う PHP リファクタリング ─ ドメインイベントでビジネスロジックを解きほぐす
kajitack
3
520
Android 15以上でPDFのテキスト検索を爆速開発!
tonionagauzzi
0
190
なぜ今、Terraformの本を書いたのか? - 著者陣に聞く!『Terraformではじめる実践IaC』登壇資料
fufuhu
4
400
Featured
See All Featured
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
10
1k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Six Lessons from altMBA
skipperchong
28
3.9k
Adopting Sorbet at Scale
ufuk
77
9.5k
GraphQLとの向き合い方2022年版
quramy
49
14k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.9k
Why You Should Never Use an ORM
jnunemaker
PRO
58
9.5k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
8
420
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
46
7.5k
How STYLIGHT went responsive
nonsquared
100
5.7k
YesSQL, Process and Tooling at Scale
rocio
173
14k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.5k
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