Table of Contents
Share On :
[feather_share show="twitter, facebook,linkedin" hide="reddit, pinterest, google_plus, tumblr, mail"]
What is Slack?
Slack founded by Stewart Butterfield is a cloud-based set of team collaboration tools and services. Slack provides features like direct-messaging, voice call, public and private channels, notifications and alerts, document sharing, search and more. Slack offers integration with many third-party applications and services, including Google Drive and Dropbox.
Slack supports both incoming and outgoing Webhooks. Incoming Webhooks is way to post messages from external sources into Slack Channel, using HTTP requests with a JSON payload that includes the text message and some other advanced options like message attachments.
Steps to Integrate Webhooks
Create App:- It provides custom functionality for your team and allows to integrate third party app.
Fig 1. Create App
Create Incoming Webhooks:- After Creating App you will be redirected to page from where you can create webhooks by turning it on.
Fig 2.Incoming Webhooks – 1
Now, on the same page below click Add New Webhook to Team.
Fig 3.Incoming Webhooks – 2
After that you will have dropbox which will allow you select your channel name in which your third party app will be integrated and you will find your input message to that channel.
Fig 4.Incoming Webhooks – 3
Once you have selected your channel, you will be redirected to page of HTTP URL. URL will be used for posting data in that channel.
Fig 5.Incoming Webhooks – 4
Sending Message:- Send a HTTPS POST using given webhook URL with header Content-type: application/json and payload as shown below. If you want to send bold payload then place your text in between “*” and for new line use “\n”. After sending this HTTPS request You will get back your payload in correspondence channel.
Comments are closed.