Created
March 13, 2017 06:54
-
-
Save slv922/9f71c103e38485a3d99c19e5add43efc to your computer and use it in GitHub Desktop.
Send Message to Slack Channel with curl by perl
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
#!/usr/bin/perl | |
$token = "your token"; | |
$text = "test"; | |
$cmd = "curl -F channel=#test -F token=\'$token\' -F text=\'$text\' -k https://slack.com/api/chat.postMessage"; | |
system($cmd); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment