Skip to content

Instantly share code, notes, and snippets.

@stekhn
Created March 2, 2020 12:21
Show Gist options
  • Save stekhn/98eeeed4f6cf9e5dd80e613d3e2bfad0 to your computer and use it in GitHub Desktop.
Save stekhn/98eeeed4f6cf9e5dd80e613d3e2bfad0 to your computer and use it in GitHub Desktop.

Revisions

  1. stekhn created this gist Mar 2, 2020.
    6 changes: 6 additions & 0 deletions post-to-slack.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    # Read more about Slack webhooks here: https://api.slack.com/messaging/webhooks

    curl -X POST \
    -H 'Content-type: application/json; charset=utf-8' \
    --data '{ "channel": "#mychannel", "username": "superbot", "icon_emoji": ":bot:", "text": "Foo" }' \
    https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX