![]() ![]() If you haven't already installed Conveyor, you can find it for free in the Visual Studio Extensions Marketplace, directly in Visual Studio, or here. We will be using the Conveyor Visual Studio Extension which will tunnel through the firewall and to the web development server, providing external access to our web application. Now we need to enter the URL to your application. This is the first word of a conversion - it can be anything you like. Next, enter the trigger words to initiate the webhook. Choose a specfic channel to listen to, or select All to listen to every Slack channel. SlackResponse reply = new SlackResponse(msg) Ĭontext.Response = (reply) Public static void Register(HttpConfiguration config)ĭefaults: new '.", question, "Too old") Then initialize the Slack webhook receiver in the WebApiConfig method as below: You will need to install the following Nuget package We don’t need to select Azure since we’ll be showing you how to open up IIS Express directly over the internet. So to get started let's create an empty C# web application with Web API in Visual Studio which we will use for receiving WebHooks from Slack. ![]() All without having to deploy to a web host or Azure. ![]() Our web project will receive the post and return a message directly to our Slack conversion. We are going to show you how to setup a simple webhook scenario with Slack but also how to test and work with your Slack webhook directly from your Visual Studio development server.įor our example, we’ll be setting up Slack to post to our web app once a trigger word is entered at the begining of a message. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |