Skip to content

Instantly share code, notes, and snippets.

@ongaeshi
Last active November 14, 2016 14:31
Show Gist options
  • Save ongaeshi/520423acff80ed55cbda263bb073e22a to your computer and use it in GitHub Desktop.
Save ongaeshi/520423acff80ed55cbda263bb073e22a to your computer and use it in GitHub Desktop.
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