Soenneker.Slack.HttpClients
4.0.114
Prefix Reserved
dotnet add package Soenneker.Slack.HttpClients --version 4.0.114
NuGet\Install-Package Soenneker.Slack.HttpClients -Version 4.0.114
<PackageReference Include="Soenneker.Slack.HttpClients" Version="4.0.114" />
<PackageVersion Include="Soenneker.Slack.HttpClients" Version="4.0.114" />
<PackageReference Include="Soenneker.Slack.HttpClients" />
paket add Soenneker.Slack.HttpClients --version 4.0.114
#r "nuget: Soenneker.Slack.HttpClients, 4.0.114"
#:package Soenneker.Slack.HttpClients@4.0.114
#addin nuget:?package=Soenneker.Slack.HttpClients&version=4.0.114
#tool nuget:?package=Soenneker.Slack.HttpClients&version=4.0.114
Soenneker.Slack.HttpClients
Provides reusable, bearer-authenticated HttpClient instances for Slack's Web API, including multi-workspace applications.
Installation
dotnet add package Soenneker.Slack.HttpClients
Configuration
{
"Slack": {
"ApiKey": "xoxb-your-bot-token"
}
}
Slack:ClientBaseUrl, Slack:AuthHeaderName, and Slack:AuthHeaderValueTemplate can override the defaults.
Usage
using Soenneker.Slack.HttpClients.Abstract;
using Soenneker.Slack.HttpClients.Registrars;
services.AddSlackOpenApiHttpClientAsSingleton();
HttpClient client = await slackHttpClient.Get(cancellationToken);
using var form = new FormUrlEncodedContent([]);
HttpResponseMessage response = await client.PostAsync(
"api/auth.test",
form,
cancellationToken);
The parameterless Get() uses Slack:ApiKey and Slack:ClientBaseUrl. Pass connection values explicitly to work with multiple Slack tenants:
HttpClient tenantClient = await slackOpenApiHttpClient.Get(tenantApiKey, tenantBaseUrl);
Clients are cached per token and base URL within a provider instance. Disposing the provider removes and disposes every client it created; scoped providers do not share ownership with other scopes.
| 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.Extensions.Configuration (>= 4.0.895)
- Soenneker.Hashing.XxHash (>= 4.0.100)
- Soenneker.Utils.HttpClientCache (>= 4.0.2090)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.Slack.HttpClients:
| Package | Downloads |
|---|---|
|
Soenneker.Slack.OpenApiClientUtil
Provides lazily initialized, authenticated Slack API clients for one or more workspaces. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.114 | 0 | 9/17/2026 |
| 4.0.113 | 0 | 9/16/2026 |
| 4.0.112 | 7 | 9/16/2026 |
| 4.0.110 | 44 | 9/16/2026 |
| 4.0.109 | 88 | 9/15/2026 |
| 4.0.108 | 137 | 9/13/2026 |
| 4.0.107 | 75 | 9/13/2026 |
| 4.0.106 | 78 | 9/13/2026 |
| 4.0.105 | 99 | 9/13/2026 |
| 4.0.104 | 86 | 9/13/2026 |
| 4.0.103 | 89 | 9/13/2026 |
| 4.0.102 | 98 | 9/12/2026 |
| 4.0.101 | 96 | 9/12/2026 |
| 4.0.100 | 74 | 9/12/2026 |
| 4.0.99 | 125 | 9/9/2026 |
| 4.0.98 | 113 | 9/9/2026 |
| 4.0.97 | 87 | 9/9/2026 |
| 4.0.96 | 114 | 9/8/2026 |
| 4.0.95 | 132 | 9/8/2026 |
| 4.0.94 | 116 | 9/8/2026 |