
In the example, when a user hits a button, you can open a dialog. UI: It is possible to create an extension that customizes the UI. This request contains a standard the payload with user data and context information. When a slash command is invoked, Slack sends an HTTP POST to the Request URL you entered in command configuration. Creating an Incoming Webhook gives you a unique URL that you can call to do actions like post messages.Ĭommands: Let users trigger an interaction with your app directly from the message box in Slack. WebHook: Incoming Webhooks are a simple way to post messages from apps into Slack. Think about this as the classic set of REST action that can be invoked to get\set informations. Great! So let's explore all possibilities:

I tested many other API systems – I’m speaking about big players, of course – and in this case, I found it so easy to create an app and deploy to user that I was surprised. This is not enough? Well, APIs are designed for developers. Anything you can imagine to do it is possible. The remarkable aspect is the coverage of all possible development use cases.

When I started studying the slack API to enter the context, I was very impressed by the quality of work done on it. You will find an app in slack, you can speak to it.Īll messages you send to it will be published as wordpress posts, converting slack formatting syntax into HTML.Īll this, done using ngrok and docker, can work into your PC and interact with slack.
#Slack message code
Spoil: See It in Actionĭon’t want to way the end? Ok, let's see it in action! You can find the code here.

#Slack message how to
Moreover, we will discover how to develop in a local dockerized wordpress environment and expose it on the internet. This is quite an interesting showcase that explains how it is easy to implement a real world application that interacts with slack. This article drives through slack API by using a worpdress plugin that receives messages from slack and posts it as an article.
