Soenneker.Twilio.OpenApiClient
11.0.78
Prefix Reserved
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
<PackageReference Include="Soenneker.Twilio.OpenApiClient" Version="11.0.78" />
<PackageVersion Include="Soenneker.Twilio.OpenApiClient" Version="11.0.78" />
<PackageReference Include="Soenneker.Twilio.OpenApiClient" />
paket add Soenneker.Twilio.OpenApiClient --version 11.0.78
#r "nuget: Soenneker.Twilio.OpenApiClient, 11.0.78"
#:package Soenneker.Twilio.OpenApiClient@11.0.78
#addin nuget:?package=Soenneker.Twilio.OpenApiClient&version=11.0.78
#tool nuget:?package=Soenneker.Twilio.OpenApiClient&version=11.0.78
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.2.0)
- 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.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 |
Update dependency Microsoft.Kiota.Http.HttpClientLibrary to 2.2.0 (#257)