Skip to content

Instantly share code, notes, and snippets.

@kei-p
Created November 3, 2016 02:01
Show Gist options
  • Save kei-p/444b6fe403b6efdfadb13c93a525f06a to your computer and use it in GitHub Desktop.
Save kei-p/444b6fe403b6efdfadb13c93a525f06a to your computer and use it in GitHub Desktop.
slack_notify
channel=$SLACK_CHANNEL
service_url=$SLACK_SERVICES
message="Hello World!!"
payload="{\"channel\": \"${channel}\", \"username\": \"slackman\", \"text\": \"${message}\", \"icon_emoji\": \":smile:\"}"
curl -X POST \
-H 'Content-type: application/json' \
--data "${payload}" \
${service_url}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment