Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
TOKEN = "XXXXXX"
def post(message)
Browser.post(
"https://notify-api.line.me/api/notify",
header: { "Authorization" => "Bearer #{TOKEN}" },
body: { message: message }
)
end
if $0 == __FILE__
loop do
post prompt
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment