(set-env! :dependencies '[[clj-http "3.7.0"]])
(require '[clj-http.client :as http])
;;; cf. https://notify-bot.line.me/
;;; 1. Publish access-token on https://notify-bot.line.me/my/
;;; and select a talk room you will send notification.
(def access-token (atom nil))
(do
(reset! access-token (read-line))
nil)
;;; 2. Join the user `LINE Notify` to the group
;;; you will send notification on LINE app.
;;; 3. Notify!
(http/post "https://notify-api.line.me/api/notify"
{:headers {"Authorization" (str "Bearer " @access-token)}
:form-params {:message "Hello!"}})