Skip to content

Instantly share code, notes, and snippets.

@miguelmota
Created November 27, 2017 00:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save miguelmota/f24eb0342769b718ac63e92f2c104ae5 to your computer and use it in GitHub Desktop.
Save miguelmota/f24eb0342769b718ac63e92f2c104ae5 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