Soenneker.Twilio.OpenApiClientUtil
4.0.202
Prefix Reserved
dotnet add package Soenneker.Twilio.OpenApiClientUtil --version 4.0.202
NuGet\Install-Package Soenneker.Twilio.OpenApiClientUtil -Version 4.0.202
<PackageReference Include="Soenneker.Twilio.OpenApiClientUtil" Version="4.0.202" />
<PackageVersion Include="Soenneker.Twilio.OpenApiClientUtil" Version="4.0.202" />
<PackageReference Include="Soenneker.Twilio.OpenApiClientUtil" />
paket add Soenneker.Twilio.OpenApiClientUtil --version 4.0.202
#r "nuget: Soenneker.Twilio.OpenApiClientUtil, 4.0.202"
#:package Soenneker.Twilio.OpenApiClientUtil@4.0.202
#addin nuget:?package=Soenneker.Twilio.OpenApiClientUtil&version=4.0.202
#tool nuget:?package=Soenneker.Twilio.OpenApiClientUtil&version=4.0.202
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.910)
- Soenneker.Kiota.GenericAuthenticationProvider (>= 4.0.56)
- Soenneker.Twilio.HttpClients (>= 4.0.147)
- Soenneker.Twilio.OpenApiClient (>= 4.0.63)
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.202 | 66 | 10/15/2026 |
| 4.0.201 | 59 | 10/15/2026 |
| 4.0.200 | 76 | 10/15/2026 |
| 4.0.199 | 79 | 10/14/2026 |
| 4.0.196 | 82 | 10/14/2026 |
| 4.0.195 | 90 | 10/14/2026 |
| 4.0.189 | 87 | 10/13/2026 |
| 4.0.188 | 77 | 10/13/2026 |
| 4.0.184 | 136 | 10/12/2026 |
| 4.0.183 | 105 | 10/11/2026 |
| 4.0.182 | 89 | 10/11/2026 |
| 4.0.181 | 87 | 10/11/2026 |
| 4.0.180 | 116 | 10/9/2026 |
| 4.0.179 | 108 | 10/7/2026 |
| 4.0.178 | 126 | 10/1/2026 |
| 4.0.177 | 110 | 9/29/2026 |
| 4.0.176 | 113 | 9/29/2026 |
| 4.0.175 | 109 | 9/29/2026 |
| 4.0.174 | 119 | 9/26/2026 |
| 4.0.173 | 114 | 9/26/2026 |
Updated NuGet packages