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
Open Source Workshop on GitHub
line_developers_tw
PRO
0
19
拓展QA日常工作的邊界
line_developers_tw
PRO
0
550
QA Engineer Life @ LINE
line_developers_tw
PRO
0
24
透過 Cloud Functions, Firebasem Gemini Pro 打造具有記憶的 Open Data LINE Bot
line_developers_tw
PRO
0
20
就讓AI幫你帶LINE好運
line_developers_tw
PRO
1
34
沒想過的前端錯誤處理可能比你有做的還多
line_developers_tw
PRO
0
52k
LINE 台灣實習計畫 2024 - TECH FRESH 介紹
line_developers_tw
PRO
0
530
LINE 台灣實習計畫 - 相關福利與面試流程
line_developers_tw
PRO
0
550
Navigating My Internship: A 5W1H Perspective
line_developers_tw
PRO
0
27
Other Decks in Programming
See All in Programming
Long journey of Ruby standard library RubyKaigi 2024
andpad
2
200
最近コードレビューで指摘したこと
forrep
3
110
“Seeing Like a Programmer”—Resiliency, Limits, and Moral Hazards in Software Engineering (LambdaConf 2024)
chriskrycho
0
430
RustでAWS Lambda functionをいい感じに書く
taiki45
2
150
Exploring Type-Informed Lint Rules in Rust based TypeScript Linters
unvalley
3
630
TypeScriptとGraphQLで実現する 型安全なAPI実装 / TSKaigi 2024
hokaccha
5
2.7k
CDKコントリビュートの最初の壁を越えよう! -簡単issueの見つけ方-
badmintoncryer
3
420
Deep Dive into React Stream/Serialize
mugi_uno
4
860
Open standards for building event-driven applications in the cloud
meteatamel
0
230
GitHub Actionsの痒いところを埋めるサードパーティーランナー
dora1998
2
250
otelcol receiver 自作RTA / Pepabo Tech Conference #22 春のSREまつり
arthur1
0
830
Direct Style Effect Systems The Print[A] ExampleA Comprehension Aid
philipschwarz
PRO
0
410
Featured
See All Featured
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
15
1.6k
StorybookのUI Testing Handbookを読んだ
zakiyama
13
4.7k
KATA
mclloyd
16
12k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
221
21k
Web development in the modern age
philhawksworth
203
10k
How to name files
jennybc
65
94k
Building a Modern Day E-commerce SEO Strategy
aleyda
22
6.5k
A Philosophy of Restraint
colly
197
16k
Making Projects Easy
brettharned
109
5.5k
Thoughts on Productivity
jonyablonski
60
3.9k
How STYLIGHT went responsive
nonsquared
92
4.8k
Teambox: Starting and Learning
jrom
128
8.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