Created
January 8, 2020 23:59
-
-
Save ko31/72bd8941a64f6096baaa47113666a4a2 to your computer and use it in GitHub Desktop.
How to easily post to slack channel with shell script
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
#!/bin/sh | |
curl -X POST https://slack.com/api/chat.postMessage \ | |
-d "token=[REPLACE-YOUR-TOKEN]" \ | |
-d "channel=#general" \ | |
-d "text=Hello World!<!channel>" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment