Soenneker.Twilio.OpenApiClientUtil
4.0.162
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Twilio.OpenApiClientUtil --version 4.0.162
NuGet\Install-Package Soenneker.Twilio.OpenApiClientUtil -Version 4.0.162
<PackageReference Include="Soenneker.Twilio.OpenApiClientUtil" Version="4.0.162" />
<PackageVersion Include="Soenneker.Twilio.OpenApiClientUtil" Version="4.0.162" />
<PackageReference Include="Soenneker.Twilio.OpenApiClientUtil" />
paket add Soenneker.Twilio.OpenApiClientUtil --version 4.0.162
#r "nuget: Soenneker.Twilio.OpenApiClientUtil, 4.0.162"
#:package Soenneker.Twilio.OpenApiClientUtil@4.0.162
#addin nuget:?package=Soenneker.Twilio.OpenApiClientUtil&version=4.0.162
#tool nuget:?package=Soenneker.Twilio.OpenApiClientUtil&version=4.0.162
Soenneker.Twilio.OpenApiClientUtil
Provides an authenticated, cached TwilioOpenApiClient using a Twilio API key from configuration.
Installation
dotnet add package Soenneker.Twilio.OpenApiClientUtil
Configuration
{
"Twilio": {
"ApiKey": "SK...",
"ApiSecret": "..."
}
}
The API key SID and secret are sent with HTTP Basic authentication. Do not use an Account SID in place of ApiKey.
Registration
using Soenneker.Twilio.OpenApiClientUtil.Registrars;
services.AddTwilioOpenApiClientUtilAsScoped();
Use AddTwilioOpenApiClientUtilAsSingleton() when the provider itself should be shared for the application's lifetime. Both registrations use the singleton Twilio HTTP provider. Disposing a scoped client provider does not remove or dispose that shared HTTP client.
Usage
using Soenneker.Twilio.OpenApiClient;
using Soenneker.Twilio.OpenApiClientUtil.Abstract;
public sealed class TwilioService
{
private readonly ITwilioOpenApiClientUtil _clients;
public TwilioService(ITwilioOpenApiClientUtil clients)
{
_clients = clients;
}
public async ValueTask<TwilioOpenApiClient> GetClient(
CancellationToken cancellationToken)
{
return await _clients.Get(cancellationToken);
}
}
Get() creates the authenticated client once for that provider instance and returns the same instance afterward. Client creation is thread-safe. API request failures are still surfaced by the generated Kiota client.
| 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.Kiota.GenericAuthenticationProvider (>= 4.0.46)
- Soenneker.Twilio.HttpClients (>= 4.0.120)
- Soenneker.Twilio.OpenApiClient (>= 4.0.45)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.Twilio.OpenApiClientUtil:
| Package | Downloads |
|---|---|
|
Soenneker.Twilio.Lookups
Retrieves Twilio Lookup v1 data for phone numbers |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.165 | 57 | 9/18/2026 |
| 4.0.164 | 76 | 9/17/2026 |
| 4.0.163 | 78 | 9/17/2026 |
| 4.0.162 | 69 | 9/16/2026 |
| 4.0.161 | 77 | 9/16/2026 |
| 4.0.160 | 83 | 9/16/2026 |
| 4.0.159 | 84 | 9/16/2026 |
| 4.0.158 | 72 | 9/16/2026 |
| 4.0.157 | 75 | 9/15/2026 |
| 4.0.156 | 124 | 9/13/2026 |
| 4.0.155 | 99 | 9/13/2026 |
| 4.0.154 | 105 | 9/13/2026 |
| 4.0.153 | 106 | 9/12/2026 |
| 4.0.152 | 108 | 9/12/2026 |
| 4.0.151 | 86 | 9/12/2026 |
| 4.0.149 | 129 | 9/10/2026 |
| 4.0.148 | 102 | 9/9/2026 |
| 4.0.147 | 95 | 9/9/2026 |
| 4.0.146 | 106 | 9/9/2026 |
| 4.0.145 | 108 | 9/8/2026 |