Soenneker.Slack.OpenApiClientUtil
4.0.123
Prefix Reserved
dotnet add package Soenneker.Slack.OpenApiClientUtil --version 4.0.123
NuGet\Install-Package Soenneker.Slack.OpenApiClientUtil -Version 4.0.123
<PackageReference Include="Soenneker.Slack.OpenApiClientUtil" Version="4.0.123" />
<PackageVersion Include="Soenneker.Slack.OpenApiClientUtil" Version="4.0.123" />
<PackageReference Include="Soenneker.Slack.OpenApiClientUtil" />
paket add Soenneker.Slack.OpenApiClientUtil --version 4.0.123
#r "nuget: Soenneker.Slack.OpenApiClientUtil, 4.0.123"
#:package Soenneker.Slack.OpenApiClientUtil@4.0.123
#addin nuget:?package=Soenneker.Slack.OpenApiClientUtil&version=4.0.123
#tool nuget:?package=Soenneker.Slack.OpenApiClientUtil&version=4.0.123
Soenneker.Slack.OpenApiClientUtil
Provides lazily initialized Slack Web API clients for conversations, messages, files, users, teams, reactions, apps, workflows, and administration across one or more workspaces.
Installation
dotnet add package Soenneker.Slack.OpenApiClientUtil
Configuration
{
"Slack": {
"ApiKey": "xoxb-your-bot-token"
}
}
Usage
using Soenneker.Slack.OpenApiClient.Models;
using Soenneker.Slack.OpenApiClientUtil.Abstract;
using Soenneker.Slack.OpenApiClientUtil.Registrars;
services.AddSlackOpenApiClientUtilAsSingleton();
var client = await slackClientUtil.Get(cancellationToken);
AuthTestResponse? identity = await client.Api.AuthTest.PostAsync(
new AuthTestRequest(),
cancellationToken: cancellationToken);
The parameterless Get() uses Slack:ApiKey and Slack:ClientBaseUrl. Pass connection values explicitly to work with multiple Slack tenants:
SlackOpenApiClient tenantClient = await slackOpenApiClientUtil.Get(tenantApiKey, tenantBaseUrl);
Generated clients are cached per token and base URL within the utility. AddSlackOpenApiClientUtilAsScoped() creates a separate generated-client cache per scope while retaining the singleton authenticated HTTP client provider.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Soenneker.Slack.HttpClients (>= 4.0.110)
- Soenneker.Slack.OpenApiClient (>= 4.0.52)
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 |
|---|---|---|
| 4.0.123 | 0 | 9/16/2026 |
| 4.0.122 | 22 | 9/16/2026 |
| 4.0.121 | 38 | 9/16/2026 |
| 4.0.120 | 48 | 9/15/2026 |
| 4.0.119 | 58 | 9/15/2026 |
| 4.0.118 | 54 | 9/14/2026 |
| 4.0.117 | 64 | 9/13/2026 |
| 4.0.116 | 60 | 9/13/2026 |
| 4.0.115 | 66 | 9/13/2026 |
| 4.0.114 | 63 | 9/13/2026 |
| 4.0.113 | 64 | 9/12/2026 |
| 4.0.112 | 62 | 9/12/2026 |
| 4.0.111 | 98 | 9/9/2026 |
| 4.0.110 | 93 | 9/9/2026 |
| 4.0.109 | 94 | 9/8/2026 |
| 4.0.108 | 98 | 9/8/2026 |
| 4.0.107 | 97 | 9/8/2026 |
| 4.0.106 | 94 | 9/8/2026 |
| 4.0.105 | 96 | 9/8/2026 |
| 4.0.104 | 98 | 9/7/2026 |