Posting to a Slack channel

Posted: July 7, 2015 in Slack, Tools

We’ve been trying out Slack for the last couple of weeks. A neat feature is the ability to make posts on behalf of external processes, like the build- and production-environment. You can create a incoming webhook for a channel. You then get an endpoint from Slack. Use this endpoint to make posts. That’s it.

curl -v -X POST 
   --data "{\"text\": \"This is a line of text in a channel.\"}"

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s