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.2k
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購物 App x ATDD: 利用 ATDD 改善開發流程
line_developers_tw
PRO
0
8
Grafana Alloy Best Practice
line_developers_tw
PRO
0
510
Distributed Tracing in LINE Taiwan
line_developers_tw
PRO
0
25
只有 Status page 還不夠!講人話才知道 Infra 發生什麼事
line_developers_tw
PRO
2
220
LINE Chatbot 的終極進化:如何使用 Gemini、多模態和 Gemma 突破對話式 AI 的界限
line_developers_tw
PRO
0
430
高中生的純軟外商生活攻略
line_developers_tw
PRO
0
110
TECH FRESH 實習分享
line_developers_tw
PRO
0
29
如何跨入資料科學
line_developers_tw
PRO
0
24
大AI時代,高中生該如何 找到自己的大秘寶
line_developers_tw
PRO
0
34
Other Decks in Programming
See All in Programming
Jakarta EE meets AI
ivargrimstad
0
360
dRuby 入門者によるあなたの身近にあるdRuby 入門
makicamel
4
350
Modular Monolith Go Server with GraphQL Federation + gRPC
110y
1
580
いまから追い上げる、Jetpack Compose トレーニング
nyafunta9858
0
250
『ドメイン駆動設計をはじめよう』中核の業務領域
masuda220
PRO
5
970
rails_girls_is_my_gate_to_join_the_ruby_commuinty
maimux2x
0
190
僕が思い描くTypeScriptの未来を勝手に先取りする
yukukotani
9
2.3k
メモリ最適化を究める!iOSアプリ開発における5つの重要なポイント
yhirakawa333
0
410
Go Code Generation at newmo / 2024-08-27 #newmo_layerx_go
genkey6
0
550
The Sequel to a Dream of Ruby Parser's Grammar
ydah
1
220
Kotlin 2.0が与えるAndroid開発の進化
masayukisuda
1
280
Rubyのobject_id
qnighy
6
1.3k
Featured
See All Featured
Designing Dashboards & Data Visualisations in Web Apps
destraynor
227
52k
The Language of Interfaces
destraynor
153
23k
Robots, Beer and Maslow
schacon
PRO
157
8.1k
A Modern Web Designer's Workflow
chriscoyier
691
190k
Designing with Data
zakiwarfel
98
5k
Designing for humans not robots
tammielis
248
25k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
28
1.6k
The Invisible Customer
myddelton
119
13k
Building Adaptive Systems
keathley
36
2.1k
Typedesign – Prime Four
hannesfritz
39
2.3k
Happy Clients
brianwarren
96
6.6k
The Mythical Team-Month
searls
218
43k
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