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_developers_tw
PRO
0
93
探索數據未來
line_developers_tw
PRO
0
12
MLE 的修煉之路
line_developers_tw
PRO
0
81
LINE 實習分享 & 國際黑客松參賽分享
line_developers_tw
PRO
0
41
在 GCP 運用 Parse 全家餐管理那堆 AI 應用的資料
line_developers_tw
PRO
0
37
40歲的我會給20歲的自己,關於軟體開發的7個建議
line_developers_tw
PRO
0
9.4k
從零到一:轉碼仔的實習攻略
line_developers_tw
PRO
0
64
如何在團隊發揮數據影響力: 以電商資料科學家為例
line_developers_tw
PRO
1
61
做Data超讚的 誰懂?
line_developers_tw
PRO
0
48
Other Decks in Programming
See All in Programming
Defying Front-End Inertia: Inertia.js on Rails
skryukov
0
480
SwiftUI API Design Lessons
niw
1
290
Do Dumb Things
mitsuhiko
0
440
Deoptimization: How YJIT Speeds Up Ruby by Slowing Down / RubyKaigi 2025
k0kubun
0
820
Java 24まとめ / Java 24 summary
kishida
3
500
Coding Experience Cpp vs Csharp - meetup app osaka@9
harukasao
0
750
Unlock the Potential of Swift Code Generation
rockname
0
250
KawaiiLT 登壇資料 キャリアとモチベーション
hiiragi
0
110
RuboCop: Modularity and AST Insights
koic
2
510
The Implementations of Advanced LR Parser Algorithm
junk0612
1
300
メモリウォールを超えて:キャッシュメモリ技術の進歩
kawayu
0
1.9k
SQL Server ベクトル検索
odashinsuke
0
180
Featured
See All Featured
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
41
2.2k
Why Our Code Smells
bkeepers
PRO
336
57k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
34
2.2k
Building a Modern Day E-commerce SEO Strategy
aleyda
40
7.2k
GraphQLの誤解/rethinking-graphql
sonatard
71
10k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.2k
Practical Orchestrator
shlominoach
186
11k
How to Think Like a Performance Engineer
csswizardry
23
1.5k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
30k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
135
33k
RailsConf 2023
tenderlove
30
1.1k
Fireside Chat
paigeccino
37
3.4k
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