jhorsman
10/6/2016 - 3:10 PM

Post a message on Slack

Post a message on Slack

#See the beautiful Slack API documentation on https://api.slack.com/docs/messages
$payload = 'payload={
    "channel": "@jan",
    "username": "bot",
    "icon_emoji": ":robot_face:",
    "text": "Table tennis rocks! :table_tennis_paddle_and_ball:"}'
$url = "https://hooks.slack.com/services/-your-webhook-url-" # URL for @jhorsman
curl -Method Post -Body $payload -Uri $url