Soenneker.Twilio.OpenApiClientUtil 11.0.266

Prefix Reserved
dotnet add package Soenneker.Twilio.OpenApiClientUtil --version 11.0.266
                    
NuGet\Install-Package Soenneker.Twilio.OpenApiClientUtil -Version 11.0.266
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Twilio.OpenApiClientUtil" Version="11.0.266" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Twilio.OpenApiClientUtil" Version="11.0.266" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Twilio.OpenApiClientUtil" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Twilio.OpenApiClientUtil --version 11.0.266
                    
#r "nuget: Soenneker.Twilio.OpenApiClientUtil, 11.0.266"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Twilio.OpenApiClientUtil@11.0.266
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Twilio.OpenApiClientUtil&version=11.0.266
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Twilio.OpenApiClientUtil&version=11.0.266
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image 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 Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Soenneker.Twilio.OpenApiClientUtil:

Package Downloads
Soenneker.Twilio.Lookups

Retrieves Twilio Lookup v1 data for phone numbers

Soenneker.Twilio.Deactivations

A utility for working with Twilio phone number deactivations.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.266 0 12/3/2026
11.0.265 0 12/3/2026
11.0.264 55 12/3/2026
11.0.263 67 12/3/2026
11.0.262 65 12/3/2026
11.0.261 65 12/2/2026
11.0.260 72 12/2/2026
11.0.259 74 12/2/2026
11.0.258 62 12/2/2026
11.0.257 77 12/2/2026
11.0.256 65 12/2/2026
11.0.255 78 12/2/2026
11.0.254 77 12/1/2026
11.0.253 80 12/1/2026
11.0.252 76 12/1/2026
11.0.251 79 12/1/2026
11.0.250 83 12/1/2026
11.0.249 122 11/30/2026
11.0.248 100 11/30/2026
11.0.247 87 11/30/2026
Loading failed

Updated Multiple NuGet packages