Soenneker.Intercom.OpenApiClientUtil
11.0.330
Prefix Reserved
dotnet add package Soenneker.Intercom.OpenApiClientUtil --version 11.0.330
NuGet\Install-Package Soenneker.Intercom.OpenApiClientUtil -Version 11.0.330
<PackageReference Include="Soenneker.Intercom.OpenApiClientUtil" Version="11.0.330" />
<PackageVersion Include="Soenneker.Intercom.OpenApiClientUtil" Version="11.0.330" />
<PackageReference Include="Soenneker.Intercom.OpenApiClientUtil" />
paket add Soenneker.Intercom.OpenApiClientUtil --version 11.0.330
#r "nuget: Soenneker.Intercom.OpenApiClientUtil, 11.0.330"
#:package Soenneker.Intercom.OpenApiClientUtil@11.0.330
#addin nuget:?package=Soenneker.Intercom.OpenApiClientUtil&version=11.0.330
#tool nuget:?package=Soenneker.Intercom.OpenApiClientUtil&version=11.0.330
Soenneker.Intercom.OpenApiClientUtil
Create and reuse an authenticated Intercom generated client over the shared Intercom HTTP transport.
Install
dotnet add package Soenneker.Intercom.OpenApiClientUtil
Configure
{
"Intercom": {
"ApiKey": "<access token>"
}
}
The underlying HTTP provider defaults to https://api.intercom.io and Authorization: Bearer <access token>. It also supports Intercom:ClientBaseUrl, Intercom:AuthHeaderName, and Intercom:AuthHeaderValueTemplate; use {token} in the value template.
Register
using Soenneker.Intercom.OpenApiClientUtil.Registrars;
services.AddIntercomOpenApiClientUtilAsScoped();
The scoped utility deliberately keeps IIntercomOpenApiHttpClient singleton. Disposing a scope releases that utility's generated-client wrapper without tearing down the long-lived HTTP client used by later scopes. Use AddIntercomOpenApiClientUtilAsSingleton() when the generated client should also live for the application lifetime.
Usage
using Soenneker.Intercom.OpenApiClient;
using Soenneker.Intercom.OpenApiClient.Models;
using Soenneker.Intercom.OpenApiClientUtil.Abstract;
IntercomOpenApiClient client = await clientUtil.Get(cancellationToken);
AdminList? admins = await client.Admins.GetAsync(
cancellationToken: cancellationToken);
Concurrent and repeated Get() calls on the same utility reuse its lazily created generated client. Cancellation affects first-time initialization; pass the token separately to generated request methods as shown above.
Authentication is supplied by the underlying HTTP provider, so the Kiota adapter does not add a second or conflicting header. Let the service container dispose the utility and provider.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.Intercom.HttpClients (>= 11.0.207)
- Soenneker.Intercom.OpenApiClient (>= 11.0.182)
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 |
|---|---|---|
| 11.0.330 | 45 | 12/3/2026 |
| 11.0.329 | 54 | 12/3/2026 |
| 11.0.328 | 50 | 12/3/2026 |
| 11.0.327 | 54 | 12/3/2026 |
| 11.0.326 | 58 | 12/3/2026 |
| 11.0.325 | 52 | 12/2/2026 |
| 11.0.322 | 47 | 12/2/2026 |
| 11.0.321 | 57 | 12/2/2026 |
| 11.0.320 | 55 | 12/2/2026 |
| 11.0.319 | 57 | 12/2/2026 |
| 11.0.318 | 53 | 12/1/2026 |
| 11.0.317 | 79 | 12/1/2026 |
| 11.0.316 | 74 | 12/1/2026 |
| 11.0.315 | 92 | 12/1/2026 |
| 11.0.314 | 94 | 11/30/2026 |
| 11.0.313 | 97 | 11/30/2026 |
| 11.0.312 | 102 | 11/30/2026 |
| 11.0.311 | 103 | 11/27/2026 |
| 11.0.310 | 111 | 11/26/2026 |
| 11.0.309 | 102 | 11/25/2026 |
Updated Multiple NuGet packages