Skip to content

Instantly share code, notes, and snippets.

@synsa
Forked from miguelmota/slack.sh
Created September 12, 2018 23:16
Show Gist options
  • Save synsa/2c3ee014a546040be268bb1c9f89d15c to your computer and use it in GitHub Desktop.
Save synsa/2c3ee014a546040be268bb1c9f89d15c to your computer and use it in GitHub Desktop.
Slack post message with cURL
TOKEN="xoxp-abc"
CHANNEL="some-channel"
TEXT="hello"
curl -X POST "https://slack.com/api/chat.postMessage" -d "token=$TOKEN&channel=$CHANNEL&text=$TEXT"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment