Soenneker.Twilio.OpenApiClient
11.0.76
Prefix Reserved
dotnet add package Soenneker.Twilio.OpenApiClient --version 11.0.76
NuGet\Install-Package Soenneker.Twilio.OpenApiClient -Version 11.0.76
<PackageReference Include="Soenneker.Twilio.OpenApiClient" Version="11.0.76" />
<PackageVersion Include="Soenneker.Twilio.OpenApiClient" Version="11.0.76" />
<PackageReference Include="Soenneker.Twilio.OpenApiClient" />
paket add Soenneker.Twilio.OpenApiClient --version 11.0.76
#r "nuget: Soenneker.Twilio.OpenApiClient, 11.0.76"
#:package Soenneker.Twilio.OpenApiClient@11.0.76
#addin nuget:?package=Soenneker.Twilio.OpenApiClient&version=11.0.76
#tool nuget:?package=Soenneker.Twilio.OpenApiClient&version=11.0.76
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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Microsoft.Kiota.Http.HttpClientLibrary (>= 2.1.6)
- Microsoft.Kiota.Serialization.Form (>= 2.1.6)
- Microsoft.Kiota.Serialization.Json (>= 2.1.6)
- Microsoft.Kiota.Serialization.Multipart (>= 2.1.6)
- Microsoft.Kiota.Serialization.Text (>= 2.1.6)
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.76 | 159 | 11/3/2026 |
| 11.0.75 | 242 | 11/3/2026 |
| 11.0.74 | 189 | 11/2/2026 |
| 11.0.73 | 119 | 11/2/2026 |
| 11.0.72 | 125 | 11/2/2026 |
| 11.0.71 | 118 | 10/31/2026 |
| 11.0.70 | 120 | 10/31/2026 |
| 11.0.69 | 98 | 10/30/2026 |
| 11.0.68 | 122 | 10/30/2026 |
| 11.0.67 | 134 | 10/27/2026 |
| 11.0.66 | 188 | 10/26/2026 |
| 11.0.65 | 108 | 10/26/2026 |
| 4.0.64 | 301 | 10/24/2026 |
| 4.0.63 | 221 | 10/14/2026 |
| 4.0.62 | 130 | 10/14/2026 |
| 4.0.57 | 128 | 10/13/2026 |
| 4.0.56 | 100 | 10/13/2026 |
| 4.0.55 | 115 | 10/12/2026 |
| 4.0.54 | 240 | 10/11/2026 |
| 4.0.53 | 106 | 10/10/2026 |
Updated Multiple NuGet packages