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 與 AI 機器人技術應用現況
line_developers_tw
PRO
0
4
QA Testing
line_developers_tw
PRO
0
1
jcconf_datadev_prod
line_developers_tw
PRO
0
5
jcconf_SPM_prod
line_developers_tw
PRO
0
3
jcconf_LINEPay_prod
line_developers_tw
PRO
0
4
Live Activities in LINE
line_developers_tw
PRO
0
13
Neumorphism x Liquid Glass
line_developers_tw
PRO
0
12
猜你喜歡 – 打造高度擴展的個人化電商推薦
line_developers_tw
PRO
0
32
打造新電商搜尋體驗- 搜尋意圖辨識
line_developers_tw
PRO
0
13
Other Decks in Programming
See All in Programming
Back to the Future: Let me tell you about the ACP protocol
terhechte
0
140
iOSエンジニア向けの英語学習アプリを作る!
yukawashouhei
0
190
タスクの特性や不確実性に応じた最適な作業スタイルの選択(ペアプロ・モブプロ・ソロプロ)と実践 / Optimal Work Style Selection: Pair, Mob, or Solo Programming.
honyanya
3
160
Pythonスレッドとは結局何なのか? CPython実装から見るNoGIL時代の変化
curekoshimizu
5
1.7k
dynamic!
moro
10
7.2k
階層構造を表現するデータ構造とリファクタリング 〜1年で10倍成長したプロダクトの変化と課題〜
yuhisatoxxx
3
970
CSC509 Lecture 04
javiergs
PRO
0
300
monorepo の Go テストをはやくした〜い!~最小の依存解決への道のり~ / faster-testing-of-monorepos
convto
2
460
CSC305 Lecture 04
javiergs
PRO
0
260
Cursorハンズオン実践!
eltociear
2
860
バッチ処理を「状態の記録」から「事実の記録」へ
panda728
PRO
0
140
止められない医療アプリ、そっと Swift 6 へ
medley
1
140
Featured
See All Featured
The World Runs on Bad Software
bkeepers
PRO
71
11k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
132
19k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
7
900
How to Ace a Technical Interview
jacobian
280
24k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
140
34k
The Cult of Friendly URLs
andyhume
79
6.6k
Agile that works and the tools we love
rasmusluckow
331
21k
A Tale of Four Properties
chriscoyier
160
23k
Speed Design
sergeychernyshev
32
1.1k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3.1k
The Power of CSS Pseudo Elements
geoffreycrofte
79
6k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
33
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