These REST requests can be made in almost any programming language though. In this example, I will simple use Postman to make the requests. Now that we have created a Slack bot and granted them access to a particular channel in our Slack workspace, we can use a very simple REST API to send messages from the bot. Click Allow to add the bot to the channel.Here you will add the Slack bot to a particular channel in the workspace (for testing purposes I added the bot to my own channel so as to not disrupt anyone else).Scroll to the bottom of the page and click on Add New Webhook to Workspace.Open the newly created bot and select Incoming Webhooks on the left menu.If you're worried about spamming your colleagues with test messages fret not - you can send test messages to yourself). Input a name for your new bot and select the workspace that the bot should send messages in (note that this cannot be changed.Click on Create New App on the following screen:. I will show you how to setup the Slack bot and then demonstrate using the API in Postman to send a simple message. This integration was so easy I wanted to write a short article on how to achieve it. That way it would not interfere with other communication and we would easily be able to see new notifications because it had its own channel. I ended up configuring a Slack bot which would send messages to a dedicated channel if the process ever failed. At first we sent an email out but I stumbled upon the Slack API and was hooked. While working on a tool that fed information into our system, I needed a way to notify our team if the process ever failed. This can range from menial tasks such as fixing minor bugs to major projects like integrations into financial systems and working with new cryptocurrencies. We specialize in foreign exchange and I help maintain and innovate the software that we use. I started working at a new company called Mercury FX International. This can range from menial tasks such as fixing minor bugs to major projects like. Send Slack messages from anywhere using Webhook Integration
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |