Last active
November 14, 2016 14:31
-
-
Save ongaeshi/520423acff80ed55cbda263bb073e22a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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