Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
LINE Social API in GO
LINE Developers Taiwan
PRO
July 23, 2019
Programming
0
2.1k
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
Data dev team introduction @ AppWorks School 企業參訪
line_developers_tw
PRO
0
670
20221214 AppWorks 企業參訪
line_developers_tw
PRO
0
490
那些我們在LINE購物中自行打造的輪子
line_developers_tw
PRO
0
32
如何建立自己的開源專案
line_developers_tw
PRO
0
3.7k
從零開始養-機器學習工程師篇
line_developers_tw
PRO
1
1.1k
Dev Life in LINE
line_developers_tw
PRO
0
640
竟然有人說AI不能拿來做行銷
line_developers_tw
PRO
1
5.2k
輔仁大學參訪 - TECH FRESH
line_developers_tw
PRO
1
350
台大資工所軟體工程企業訪談 - 從測試出發談 LINE 軟體開發流程
line_developers_tw
PRO
0
850
Other Decks in Programming
See All in Programming
Quarto Tips for Academic Presentation
nicetak
0
930
僕が考えた超最強のKMMアプリの作り方
spbaya0141
0
180
Rust、何もわからない...#6発表資料
ryu19
0
130
OSSから学んだPR Descriptionの書き方
fugakkbn
4
130
Glance App Widgetでウィジェットを作ろう / MoT TechTalk #15
mot_techtalk
0
120
ペパカレで入社した私が感じた2つのギャップと向き合い方
kosuke_ito
0
270
Functional Data Engineering - A Blueprint for adopting functional principles in data pipeline
vananth22
0
180
Gradle build: The time is now
nonews
1
470
Findy - エンジニア向け会社紹介 / Findy Letter for Engineers
findyinc
2
42k
あなたと 「|」 したい・・・
track3jyo
PRO
2
1.1k
Use KMM to call the API of the National Tax Agency
akkeylab
0
300
SwiftPMのPlugin入門 / introduction_to_swiftpm_plugin
uhooi
2
100
Featured
See All Featured
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
10
1.3k
Designing on Purpose - Digital PM Summit 2013
jponch
108
5.9k
GraphQLの誤解/rethinking-graphql
sonatard
39
7.8k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
2
400
Producing Creativity
orderedlist
PRO
335
38k
StorybookのUI Testing Handbookを読んだ
zakiyama
8
3.2k
JazzCon 2018 Closing Keynote - Leadership for the Reluctant Leader
reverentgeek
175
9.1k
Git: the NoSQL Database
bkeepers
PRO
419
60k
A Modern Web Designer's Workflow
chriscoyier
689
180k
For a Future-Friendly Web
brad_frost
166
7.8k
VelocityConf: Rendering Performance Case Studies
addyosmani
317
22k
Embracing the Ebb and Flow
colly
75
3.6k
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