Skip to content

Instantly share code, notes, and snippets.

View onurcelikeng's full-sized avatar
🏠
Working from home

Onur Celik onurcelikeng

🏠
Working from home
View GitHub Profile
@onurcelikeng
onurcelikeng / SlackClient.cs
Created February 6, 2018 12:11 — forked from jogleasonjr/SlackClient.cs
A simple C# class to post messages to a Slack channel. You must have the Incoming WebHooks Integration enabled. This class uses the Newtonsoft Json.NET serializer available via NuGet. Scroll down for an example test method and a LinqPad snippet. Enjoy!
using Newtonsoft.Json;
using System;
using System.Collections.Specialized;
using System.Net;
using System.Text;
//A simple C# class to post messages to a Slack channel
//Note: This class uses the Newtonsoft Json.NET serializer available via NuGet
public class SlackClient
{