SlackMessenger 1.0.1

A simple library for sending Slack Messages

Requires NuGet 2.8 or higher.

Install-Package SlackMessenger -Version 1.0.1
dotnet add package SlackMessenger --version 1.0.1
<PackageReference Include="SlackMessenger" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SlackMessenger --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

SlackMessenger Logo SlackMessenger

Build status
nuget version
Nuget Downloads

A .NET library to enable you to send bot messages in slack, by posting messages to Slack's incoming WebHook Urls

NuGet

Install via NuGet: Install-Package SlackMessenger

Or click here to go to the NuGet package landing page

Registering for your WebHook Url with Slack

Click here to set up an incoming WebHook

  • Sign in to Slack
  • Choose a channel to post to
  • Then click on the green button Add Incoming WebHooks integration
  • You will be given a WebHook Url. Keep this private. Use it when you set up the SlackClient. See example below.
// Usage example
// This will send a message to the slack channel with the message, username and emoji of your choice 

using SlackMessenger;

var client = new SlackClient("https://hooks.slack.com/services/Your/WebHook/Url"); 

// send message by emoji icon
var msg = new Message($"Test Message for slack channel", "channelName", "username", ":emoji:"); 

// send message by icon from an url
var msg = new Message($"Test Message for slack channel", "channelName", "username", "http://test.com/icon.png"); 

client.Send(msg);

SlackMessenger Logo SlackMessenger

Build status
nuget version
Nuget Downloads

A .NET library to enable you to send bot messages in slack, by posting messages to Slack's incoming WebHook Urls

NuGet

Install via NuGet: Install-Package SlackMessenger

Or click here to go to the NuGet package landing page

Registering for your WebHook Url with Slack

Click here to set up an incoming WebHook

  • Sign in to Slack
  • Choose a channel to post to
  • Then click on the green button Add Incoming WebHooks integration
  • You will be given a WebHook Url. Keep this private. Use it when you set up the SlackClient. See example below.
// Usage example
// This will send a message to the slack channel with the message, username and emoji of your choice 

using SlackMessenger;

var client = new SlackClient("https://hooks.slack.com/services/Your/WebHook/Url"); 

// send message by emoji icon
var msg = new Message($"Test Message for slack channel", "channelName", "username", ":emoji:"); 

// send message by icon from an url
var msg = new Message($"Test Message for slack channel", "channelName", "username", "http://test.com/icon.png"); 

client.Send(msg);

Release Notes

First release

Dependencies

This package has no dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.1 2,778 5/6/2018