Slack.NetStandard 1.4.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Slack.NetStandard --version 1.4.2                
NuGet\Install-Package Slack.NetStandard -Version 1.4.2                
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="Slack.NetStandard" Version="1.4.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Slack.NetStandard --version 1.4.2                
#r "nuget: Slack.NetStandard, 1.4.2"                
#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 Slack.NetStandard as a Cake Addin
#addin nuget:?package=Slack.NetStandard&version=1.4.2

// Install Slack.NetStandard as a Cake Tool
#tool nuget:?package=Slack.NetStandard&version=1.4.2                

Slack.NetStandard

.NET Core NuGet package that helps with Slack interactions Available at https://www.nuget.org/packages/Slack.NetStandard

Create OAuth URL

using Slack.NetStandard.Auth;

var builder = new OAuthV2Builder("clientId")
{
    State = "stateGoesHere", 
    BotScope = "channels:read"
};
var redirectUri = builder.BuildUri();

Get OAuth Access Token from Code

using Slack.NetStandard.Auth;

var token = await OAuthV2Builder.Exchange(code,clientId,clientSecret);

Verify Incoming Request is from Slack

using Slack.NetStandard;

var verifier = new RequestVerifier(signingSecret);
var verified = Verifier.Verify(request.Headers["X-Slack-Signature"], long.Parse(request.Headers["X-Slack-Request-Timestamp"]), request.Body);

Dealing with a slash command payload

var command = new SlashCommand(payloadText);
var response = new SlashCommandMessage{
    ...
}
await command.Respond(response);

Parse Events API Body

using Slack.NetStandard.EventsApi;
using Slack.NetStandard.EventsApi.CallbackEvents;

var eventObject = JsonConvert.DeserializeObject<Event>(input.Body);

if (eventObject is EventCallback callback)
{
    switch(callback.Event)
    {
        case AppHomeOpened appHome:
            break;
        case GroupClose groupClose:
            break;

    }
}

Make Web API Call

using Slack.NetStandard;

var client = new SlackWebApiClient(accessToken);
await client.Chat.Post(postMessageRequest);
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Slack.NetStandard:

Package Downloads
Slack.NetStandard.AsyncEnumerable

Additional support for Slack.NetStandard apps running Socket Mode

Slack.NetStandard.Endpoint

Small library used to build single Slack endpoints - allowing simpler wiring of Slack apps by examining the full request and deserializing appropriately

Slack.NetStandard.Annotations

Library that uses method attributes to generate a Slack app

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
9.9.0 1,040 3/4/2025
9.8.0 283 3/1/2025
9.7.3 2,516 2/9/2025
9.7.2 1,013 2/5/2025
9.7.1 8,397 12/16/2024
9.7.0 1,190 12/1/2024
9.6.1 1,427 11/13/2024
9.6.0 6,293 10/18/2024
9.5.0 17,097 6/28/2024
9.4.0 1,072 6/26/2024
9.3.0 94,923 2/28/2024
9.2.0 131 2/28/2024
9.1.1 4,100 1/25/2024
9.1.0 135 1/24/2024
9.0.0 124 1/24/2024
8.2.1 1,325 1/19/2024
8.2.0 998 1/13/2024
8.1.1 31,248 11/14/2023
8.1.0 29,860 10/13/2023
8.0.1 39,202 9/27/2023
8.0.0 872 9/18/2023
7.0.0 17,981 7/25/2023
6.1.0-beta1 1,309 3/22/2023
6.0.0 57,421 3/22/2023
5.3.0-beta3 4,026 10/26/2022
5.3.0-beta1 175 10/26/2022
5.2.2 86,079 10/26/2022
5.2.0 452 10/26/2022
5.2.0-beta5 253 9/19/2022
5.2.0-beta4 243 8/15/2022
5.2.0-beta3 189 7/28/2022
5.2.0-beta2 189 7/14/2022
5.1.3 4,812 9/19/2022
5.1.2 14,121 7/28/2022
5.1.1 933 7/14/2022
5.1.0-beta1 191 7/13/2022
5.0.0 519 7/13/2022
4.1.0-beta1 199 7/1/2022
4.0.0 6,993 7/1/2022
3.14.0-beta6 190 7/1/2022
3.14.0-beta5 168 6/10/2022
3.14.0-beta4 189 6/7/2022
3.14.0-beta3 194 6/3/2022
3.14.0-beta2 195 6/1/2022
3.14.0-beta1 186 6/1/2022
3.13.5 9,631 7/1/2022
3.13.4 2,451 6/10/2022
3.13.3 973 6/7/2022
3.13.2 653 6/3/2022
3.13.1 639 6/1/2022
3.13.0 499 6/1/2022
3.13.0-beta2 190 5/27/2022
3.13.0-beta1 203 5/13/2022
3.12.1 809 5/27/2022
3.12.0 2,916 5/13/2022
3.12.0-beta2 210 4/13/2022
3.12.0-beta1 192 4/5/2022
3.11.0 5,046 4/5/2022
3.11.0-beta1 197 2/23/2022
3.10.0 7,707 2/23/2022
3.10.0-beta2 195 2/17/2022
3.10.0-beta1 200 2/9/2022
3.9.1 840 2/17/2022
3.9.0 737 2/9/2022
3.9.0-beta1 202 2/1/2022
3.8.0 4,031 2/1/2022
3.8.0-beta3 203 1/15/2022
3.8.0-beta2 207 1/13/2022
3.8.0-beta1 200 1/12/2022
3.7.1 12,561 1/13/2022
3.7.0 507 1/12/2022
3.7.0-beta1 225 12/20/2021
3.6.0 720 12/20/2021
3.6.0-beta1 229 12/14/2021
3.5.0 796 12/14/2021
3.5.0-beta1 3,289 11/25/2021
3.4.0 4,322 11/25/2021
3.4.0-beta1 869 10/10/2021
3.3.0 294,820 10/6/2021
3.2.0 7,512 9/3/2021
3.2.0-beta1 263 8/17/2021
3.1.0 1,235 8/17/2021
3.0.0 2,909 7/19/2021
2.17.0-beta4 344 6/8/2021
2.17.0-beta3 375 5/30/2021
2.17.0-beta2 309 5/22/2021
2.17.0-beta1 245 5/8/2021
2.16.3 143,735 6/8/2021
2.16.2 766 5/30/2021
2.16.1 454 5/22/2021
2.16.0 769 5/8/2021
2.16.0-beta3 253 5/2/2021
2.16.0-beta2 241 4/28/2021
2.16.0-beta1 326 4/7/2021
2.15.2 562 5/2/2021
2.15.1 1,537 4/28/2021
2.15.0 15,993 4/7/2021
2.15.0-beta5 221 4/7/2021
2.15.0-beta3 3,289 3/21/2021
2.15.0-beta2 325 3/18/2021
2.15.0-beta1 235 3/17/2021
2.14.4 381 4/7/2021
2.14.2 2,075 3/21/2021
2.14.1 434 3/18/2021
2.14.0 448 3/17/2021
2.14.0-beta3 234 3/4/2021
2.14.0-beta2 225 3/2/2021
2.14.0-beta1 247 3/2/2021
2.13.2 621 3/4/2021
2.13.1 8,197 3/2/2021
2.13.0 9,626 3/2/2021
2.13.0-beta1 251 2/24/2021
2.12.0 596 2/24/2021
2.12.0-beta1 248 2/22/2021
2.11.0 7,095 2/22/2021
2.10.1 435 2/11/2021
2.10.0 4,428 1/28/2021
2.10.0-beta2 230 1/16/2021
2.10.0-beta1 230 1/15/2021
2.9.2 402 1/27/2021
2.9.1 568 1/16/2021
2.9.0 587 1/15/2021
2.9.0-beta8 280 1/11/2021
2.9.0-beta7 319 12/10/2020
2.9.0-beta6 331 11/30/2020
2.9.0-beta5 312 11/28/2020
2.9.0-beta4 304 11/26/2020
2.9.0-beta3 366 10/20/2020
2.9.0-beta2 302 10/20/2020
2.9.0-beta 338 10/20/2020
2.8.7 7,899 1/11/2021
2.8.6 4,162 12/10/2020
2.8.5 5,546 11/30/2020
2.8.4 549 11/28/2020
2.8.3 527 11/26/2020
2.8.2 1,560 10/20/2020
2.8.1 496 10/20/2020
2.8.0 534 10/20/2020
2.8.0-beta 385 10/17/2020
2.7.0 545 10/17/2020
2.7.0-beta2 286 10/17/2020
2.7.0-beta 348 10/14/2020
2.6.1 445 10/17/2020
2.6.0 497 10/14/2020
2.6.0-beta 413 10/8/2020
2.5.1 618 10/8/2020
2.5.0 605 10/8/2020
2.4.0 585 10/5/2020
2.3.0 1,297 9/17/2020
2.2.1 17,247 9/1/2020
2.2.0 507 8/28/2020
2.1.0 11,772 6/16/2020
2.0.0 685 5/29/2020
1.7.1 539 5/28/2020
1.7.0 773 5/21/2020
1.6.0 530 5/21/2020
1.5.5 556 5/17/2020
1.5.4 510 5/14/2020
1.5.3 536 5/11/2020
1.5.2 559 5/6/2020
1.5.1 562 5/4/2020
1.5.0 532 5/4/2020
1.4.2 530 5/4/2020
1.4.1 516 5/4/2020
1.4.0 545 5/4/2020
1.3.2 556 5/4/2020
1.3.1 625 4/30/2020
1.3.0 519 4/29/2020
1.2.1 540 4/29/2020
1.2.0 543 4/29/2020
1.1.0 530 4/28/2020
1.0.2 507 4/28/2020
1.0.1 533 4/27/2020
1.0.0 589 4/21/2020
0.5.0 578 4/13/2020
0.4.1-alpha8 402 4/12/2020
0.4.1-alpha7 383 4/12/2020
0.4.1-alpha6 393 4/12/2020
0.4.1-alpha4 413 4/12/2020
0.4.1-alpha3 409 4/12/2020
0.4.1-alpha2 349 4/12/2020
0.4.1-alpha1 366 4/11/2020
0.4.0-pre 509 4/5/2020
0.3.2 607 1/3/2020
0.3.1 609 1/3/2020
0.3.0 643 1/2/2020
0.2.2 600 12/23/2019
0.2.1 557 12/23/2019
0.2.1-pre 422 12/19/2019
0.2.0 558 12/20/2019
0.2.0-pre 420 12/18/2019
0.1.1-pre 412 12/17/2019
0.1.0 1,916 12/19/2019
0.1.0-pre 403 12/17/2019

Improve ViewState typing