SlackMessenger 1.0.1

Requires NuGet 2.8 or higher.

dotnet add package SlackMessenger --version 1.0.1
NuGet\Install-Package SlackMessenger -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<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
#r "nuget: SlackMessenger, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SlackMessenger as a Cake Addin
#addin nuget:?package=SlackMessenger&version=1.0.1

// Install SlackMessenger as a Cake Tool
#tool nuget:?package=SlackMessenger&version=1.0.1

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

Product Compatible and additional computed target framework versions.
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 3,930 5/6/2018

First release