Skip to content

Instantly share code, notes, and snippets.

@ongaeshi
Last active November 14, 2016 14:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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