Soenneker.Twilio.OpenApiClientUtil
4.0.122
Prefix Reserved
dotnet add package Soenneker.Twilio.OpenApiClientUtil --version 4.0.122
NuGet\Install-Package Soenneker.Twilio.OpenApiClientUtil -Version 4.0.122
<PackageReference Include="Soenneker.Twilio.OpenApiClientUtil" Version="4.0.122" />
<PackageVersion Include="Soenneker.Twilio.OpenApiClientUtil" Version="4.0.122" />
<PackageReference Include="Soenneker.Twilio.OpenApiClientUtil" />
paket add Soenneker.Twilio.OpenApiClientUtil --version 4.0.122
#r "nuget: Soenneker.Twilio.OpenApiClientUtil, 4.0.122"
#:package Soenneker.Twilio.OpenApiClientUtil@4.0.122
#addin nuget:?package=Soenneker.Twilio.OpenApiClientUtil&version=4.0.122
#tool nuget:?package=Soenneker.Twilio.OpenApiClientUtil&version=4.0.122
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.Kiota.GenericAuthenticationProvider (>= 4.0.41)
- Soenneker.Twilio.HttpClients (>= 4.0.94)
- Soenneker.Twilio.OpenApiClient (>= 4.0.36)
- Soenneker.Utils.AsyncSingleton (>= 4.0.830)
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.122 | 56 | 8/31/2026 |
| 4.0.121 | 59 | 8/31/2026 |
| 4.0.120 | 52 | 8/31/2026 |
| 4.0.119 | 46 | 8/31/2026 |
| 4.0.118 | 49 | 8/31/2026 |
| 4.0.117 | 46 | 8/30/2026 |
| 4.0.116 | 58 | 8/30/2026 |
| 4.0.115 | 51 | 8/30/2026 |
| 4.0.114 | 90 | 8/28/2026 |
| 4.0.113 | 101 | 8/26/2026 |
| 4.0.112 | 93 | 8/26/2026 |
| 4.0.111 | 100 | 8/26/2026 |
| 4.0.110 | 94 | 8/25/2026 |
| 4.0.109 | 111 | 8/22/2026 |
| 4.0.108 | 100 | 8/22/2026 |
| 4.0.107 | 103 | 8/21/2026 |
| 4.0.106 | 111 | 8/19/2026 |
| 4.0.105 | 97 | 8/18/2026 |
| 4.0.104 | 110 | 8/15/2026 |
| 4.0.103 | 109 | 8/14/2026 |