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.3k
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 購物幕後推手
line_developers_tw
PRO
0
68
從校園到職場 我的實習旅程
line_developers_tw
PRO
0
110
探索數據未來
line_developers_tw
PRO
0
14
MLE 的修煉之路
line_developers_tw
PRO
0
85
LINE 實習分享 & 國際黑客松參賽分享
line_developers_tw
PRO
0
43
在 GCP 運用 Parse 全家餐管理那堆 AI 應用的資料
line_developers_tw
PRO
0
38
40歲的我會給20歲的自己,關於軟體開發的7個建議
line_developers_tw
PRO
0
9.5k
從零到一:轉碼仔的實習攻略
line_developers_tw
PRO
0
70
如何在團隊發揮數據影響力: 以電商資料科學家為例
line_developers_tw
PRO
1
62
Other Decks in Programming
See All in Programming
個人開発の学生アプリが企業譲渡されるまで
akidon0000
1
1.1k
Empowering Developers with HTML-Aware ERB Tooling @ RubyKaigi 2025, Matsuyama, Ehime
marcoroth
2
910
Orleans + Sekiban + SignalR でリアルタイムWeb作ってみた
tomohisa
0
220
Jakarta EE Meets AI
ivargrimstad
0
700
Ruby on Railroad: The Power of Visualizing CFG
ydah
0
280
The Nature of Complexity in John Ousterhout’s Philosophy of Software Design
philipschwarz
PRO
0
160
On-the-fly Suggestions of Rewriting Method Deprecations
ohbarye
1
4.5k
KANNA Android の技術的課題と取り組み
watabee
0
170
サービスレベルを管理してアジャイルを加速しよう!! / slm-accelerate-agility
tomoyakitaura
1
200
ComposeでWebアプリを作る技術
tbsten
0
130
エンジニア向けCursor勉強会 @ SmartHR
yukisnow1823
3
11k
インプロセスQAにおいて大事にしていること / In-process QA Meetup
medley
0
130
Featured
See All Featured
The Cult of Friendly URLs
andyhume
78
6.3k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.6k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
31
1.2k
jQuery: Nuts, Bolts and Bling
dougneiner
63
7.7k
The Cost Of JavaScript in 2023
addyosmani
49
7.8k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
26k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
23
2.7k
How STYLIGHT went responsive
nonsquared
100
5.5k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
10
770
Code Reviewing Like a Champion
maltzj
523
40k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
Raft: Consensus for Rubyists
vanstee
137
6.9k
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