occidere / DailyOMG

DailyOMG

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Line Notify 대신 LIne Bot에 주기적으로 사진 전송 역할 위임

occidere opened this issue · comments

Line Notify 대신 LIne Bot에 주기적으로 사진 전송 역할 위임

상황

AS-IS

  • 현재는 Line Notify API 로 자기 자신에게 주기적으로 이미지를 전송

TO-BE

  • Line Bot이 주기적으로 DailyOMG 계정을 통해 주기적으로 이미지 전송
  • 이미지 요청을 유지로 부터 받아 전송하는 역할도 수행

feature/callLineBot

참고

  • /push/imageList<LinkedHashMap<String, String>> 객체를 json string으로 전달
    image
curl -XPOST 'https://daily-omg.herokuapp.com/push/image' \
-H 'Content-Type: application/json' \
-d '[{"Red Velvet": "https://socdn.smtown.com/upload/mf/gallery/images/2018/08/06/o_1ck6i5unrpu81u421vs8shjpv11i.jpg"}]' 

의문점

  • 왜 굳이 image url도 https 여야 하는지?