Created
January 27, 2020 06:50
-
-
Save Porrapat/3b128379c29c35f1ad1fc7d93daf4c5c 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
# To use : add your slack oauth access api token | |
SLACK_API_OAUTH_ACCESS_TOKEN= | |
# Provide your slack channel | |
SLACK_CHANNEL= | |
# Provide your text | |
TEXT= | |
curl -s -X POST -d "token=$SLACK_API_OAUTH_ACCESS_TOKEN&channel=$SLACK_CHANNEL&text=$TEXT&pretty=1" "https://slack.com/api/chat.postMessage" > /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment