Soenneker.Slack.HttpClients
4.0.108
Prefix Reserved
dotnet add package Soenneker.Slack.HttpClients --version 4.0.108
NuGet\Install-Package Soenneker.Slack.HttpClients -Version 4.0.108
<PackageReference Include="Soenneker.Slack.HttpClients" Version="4.0.108" />
<PackageVersion Include="Soenneker.Slack.HttpClients" Version="4.0.108" />
<PackageReference Include="Soenneker.Slack.HttpClients" />
paket add Soenneker.Slack.HttpClients --version 4.0.108
#r "nuget: Soenneker.Slack.HttpClients, 4.0.108"
#:package Soenneker.Slack.HttpClients@4.0.108
#addin nuget:?package=Soenneker.Slack.HttpClients&version=4.0.108
#tool nuget:?package=Soenneker.Slack.HttpClients&version=4.0.108
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.891)
- Soenneker.Hashing.XxHash (>= 4.0.97)
- Soenneker.Utils.HttpClientCache (>= 4.0.2080)
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.108 | 51 | 9/13/2026 |
| 4.0.107 | 35 | 9/13/2026 |
| 4.0.106 | 38 | 9/13/2026 |
| 4.0.105 | 51 | 9/13/2026 |
| 4.0.104 | 46 | 9/13/2026 |
| 4.0.103 | 44 | 9/13/2026 |
| 4.0.102 | 49 | 9/12/2026 |
| 4.0.101 | 51 | 9/12/2026 |
| 4.0.100 | 36 | 9/12/2026 |
| 4.0.99 | 79 | 9/9/2026 |
| 4.0.98 | 90 | 9/9/2026 |
| 4.0.97 | 65 | 9/9/2026 |
| 4.0.96 | 92 | 9/8/2026 |
| 4.0.95 | 123 | 9/8/2026 |
| 4.0.94 | 109 | 9/8/2026 |
| 4.0.93 | 107 | 9/7/2026 |
| 4.0.92 | 104 | 9/7/2026 |
| 4.0.91 | 101 | 9/7/2026 |
| 4.0.90 | 137 | 9/5/2026 |
| 4.0.89 | 102 | 9/5/2026 |