/SlackHook

Simple library for sending messages into Slack channels using Webhook.

Primary LanguageC#Apache License 2.0Apache-2.0

SlackHook NuGet Discord

Simple library for sending messages into Slack channels using Webhook.

Install via NuGet

Install-Package TomLabs.SlackHook -Version 1.0.0

Usage

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:");

Results in:

You like it?

  • 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...

Credits