Soenneker.Twilio.OpenApiClient 11.0.78

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Twilio.OpenApiClient --version 11.0.78
                    
NuGet\Install-Package Soenneker.Twilio.OpenApiClient -Version 11.0.78
                    
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.OpenApiClient" Version="11.0.78" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Twilio.OpenApiClient" Version="11.0.78" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Twilio.OpenApiClient" />
                    
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.OpenApiClient --version 11.0.78
                    
#r "nuget: Soenneker.Twilio.OpenApiClient, 11.0.78"
                    
#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.OpenApiClient@11.0.78
                    
#: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.OpenApiClient&version=11.0.78
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Twilio.OpenApiClient&version=11.0.78
                    
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.OpenApiClient

A Kiota-generated client for Twilio APIs, with typed request builders and response models across Twilio products.

Installation

dotnet add package Soenneker.Twilio.OpenApiClient

Usage

The generated client accepts a Kiota request adapter. The caller owns the adapter and its HttpClient:

using System.Net.Http.Headers;
using System.Text;
using Microsoft.Kiota.Abstractions.Authentication;
using Microsoft.Kiota.Http.HttpClientLibrary;
using Soenneker.Twilio.OpenApiClient;

var httpClient = new HttpClient
{
    BaseAddress = new Uri("https://api.twilio.com/")
};

string credentials = Convert.ToBase64String(
    Encoding.ASCII.GetBytes($"{apiKey}:{apiSecret}"));

httpClient.DefaultRequestHeaders.Authorization =
    new AuthenticationHeaderValue("Basic", credentials);

var adapter = new HttpClientRequestAdapter(
    new AnonymousAuthenticationProvider(),
    httpClient: httpClient);

var client = new TwilioOpenApiClient(adapter);

Twilio exposes different products from different hosts. When an operation does not use the adapter's base URL, select the generated request builder and pin its complete endpoint with WithUrl:

string phoneNumber = "+15551234567";
string url = $"https://lookups.twilio.com/v1/PhoneNumbers/{Uri.EscapeDataString(phoneNumber)}";

var result = await client.Twilio_lookups_v1
    .V1
    .PhoneNumbers[phoneNumber]
    .WithUrl(url)
    .GetAsync(cancellationToken: cancellationToken);

Use a Twilio API key SID and secret for apiKey and apiSecret. API errors are thrown through Kiota's normal exception handling. If you want configuration-based authentication and service registration, use Soenneker.Twilio.OpenApiClientUtil instead.

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 (1)

Showing the top 1 NuGet packages that depend on Soenneker.Twilio.OpenApiClient:

Package Downloads
Soenneker.Twilio.OpenApiClientUtil

Provides an authenticated, cached Twilio OpenAPI client

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.80 211 11/18/2026
11.0.79 209 11/17/2026
11.0.78 133 11/17/2026
11.0.77 246 11/11/2026
11.0.76 277 11/3/2026
11.0.75 257 11/3/2026
11.0.74 195 11/2/2026
11.0.73 127 11/2/2026
11.0.72 138 11/2/2026
11.0.71 128 10/31/2026
11.0.70 135 10/31/2026
11.0.69 107 10/30/2026
11.0.68 130 10/30/2026
11.0.67 140 10/27/2026
11.0.66 195 10/26/2026
11.0.65 115 10/26/2026
4.0.64 308 10/24/2026
4.0.63 227 10/14/2026
4.0.62 144 10/14/2026
4.0.57 139 10/13/2026
Loading failed

Update dependency Microsoft.Kiota.Http.HttpClientLibrary to 2.2.0 (#257)