Evan Lin Chatb10ts meetup 聊天機器人小小聚 10 @ 天瓏書局 Coding Space https://chatbots.kktix.cc/events/meetup-010
Write image proxy server forLINE Bot in GoLINE Technical EvangelistEvan Lin
View Slide
(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/#line-login-new-parameters-and-properties-added-2019-06-26
https://login-tester-evan.herokuapp.com/
https://www.evanlin.com/til-line-login/Tutorial article (Chinese)Open Source Packages:• https://github.com/kkdai/line-social-sdk-go• https://github.com/kkdai/line-login-go
Why we need a Image-Proxy Server
A story about pet adoptionhttp://www.evanlin.com/petsneedme-helping-adoption-pet/
Pet Adoption : Open Data• http://data.coa.gov.tw/Service/OpenData/TransService.aspx?UnitId=QcbUEzN6E6DL&$top=50&$skip=0
Our problem
Let’s use Heroku as our Image Proxy Server• Default support HTTPS• No persistent storage• Will shutdown 6 hours per day (in free-tier,no prediction)
Solution: Image Proxy Server
Repo and how to use ithttps://github.com/kkdai/img-cache-server
Repo and how to use it (Cont.)
Demo