Simple library for sending messages into Slack channels using Webhook.
Install-Package TomLabs.SlackHook -Version 1.0.0
Synchronous call
using TomLabs.SlackHook;
var client = new SlackClient("https://hooks.slack.com/services/XXXXXXXXX/XXXXXXXXX/xxxxxxxxxxxxxxxxxxxxxxxx");
bool result = client.PostMessage("<https://api.slack.com/incoming-webhooks|See more info> and message text", "Info", "general", ":thumbsup:");
Asynchronous call
using TomLabs.SlackHook;
var client = new SlackClient("https://hooks.slack.com/services/XXXXXXXXX/XXXXXXXXX/xxxxxxxxxxxxxxxxxxxxxxxx");
bool result = await client.PostMessageAsync("<https://api.slack.com/incoming-webhooks|See more info> and message text", "Info", "general", ":thumbsup:");
- Go to discord and tell me
☺️ I'm always glad when I see that my work helps someone - Feel free to contribute, post issue, ⭐ it...
- Inspired by jogleasonjr
- Icon is made by htdfc