This repository contains Slack WebAPI and wrapper EventAPI C# classes that have been auto-generated from Slack's own slack-api-specs repo and dev-adjusted to ensure completeness. DotNet 2.0 compatible.
You'll find a copy of the OpenAPI specs for the Slack Web API and a copy of the General Event Wrapper Schema spec for the Events API in the /spec folder.
- Web API
- Readily useable C# classes based off of the OpenAPI 2.0 spec - covers access token usage of public Web API methods
- Events API
- A SlackEvent model derived from the JSON Schema that covers the basic event wrapper all event types delivered by Slack
- A SlackAction model that covers the basic action events returned from user interaction with app attachments, buttons, lists, etc.
- A SlackAttachment model that covers message attachment items.
Simply import the nuget package into your project to use. Examples in the wiki.
You should install Slack.Api.CSharp with NuGet:
Install-Package Slack.Api.CSharp
This command from Package Manager Console will download and install Slack.Api.CSharp and all required dependencies.