hasen's tech life

Twitter: @hasen

curlでSlackに投稿する.

# curlでSlackに投稿する.

プラグインを使うと,ほかの箇所に影響が出たので一旦curlで行う.
参考: https://api.slack.com/incoming-webhooks

$ curl -X POST --data-urlencode 'payload={"channel": "#CHANNEL_NAME", "username": "USER_NAME", "text": "TEXT TEXT", "icon_emoji": ":ICON_NAME:"}' https://hooks.slack.com/services/HASH/HASH/HASH