Last active
December 19, 2015 12:23
-
-
Save yyoshiki41/492503f74e75a132846c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
require 'net/http' | |
require 'uri' | |
require 'json' | |
uri = URI.parse("https://hooks.slack.com/services/****") | |
payload = { | |
text: "こんなかんじでいける", | |
channel: "@dareka", | |
username: "oreore", | |
icon_emoji: ":ghost:" | |
} | |
Net::HTTP.post_form(uri, { payload: payload.to_json }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Good job!