Slack WebHook === ## 參考文件 [透過自製的WebAPI,推送Slack訊息到指定頻道中](https://dotblogs.com.tw/maduka/2017/07/27/210759) ## :one:新增 Slack 的 channel ![](https://i.imgur.com/XPpKWeg.png) ## :two:新增 App ![](https://i.imgur.com/2teqZIs.png) 點擊右上的設定「齒輪」按鈕 點擊「Add an app」 ## :three:設定「incoming-webhook」 ![](https://i.imgur.com/ONLQ4uY.png) 點擊「incoming-webhook」裡面會有一個 URL ![](https://i.imgur.com/pXhjvdX.png) POST 下面的內容,就能在 Slack 上看到提示訊息 ``` { "text": "This is posted to #alerts and comes from a bot named webhookbot." } ``` ###### tags: `工作紀錄`