Soenneker.Twilio.OpenApiClient
4.0.50
Prefix Reserved
dotnet add package Soenneker.Twilio.OpenApiClient --version 4.0.50
NuGet\Install-Package Soenneker.Twilio.OpenApiClient -Version 4.0.50
<PackageReference Include="Soenneker.Twilio.OpenApiClient" Version="4.0.50" />
<PackageVersion Include="Soenneker.Twilio.OpenApiClient" Version="4.0.50" />
<PackageReference Include="Soenneker.Twilio.OpenApiClient" />
paket add Soenneker.Twilio.OpenApiClient --version 4.0.50
#r "nuget: Soenneker.Twilio.OpenApiClient, 4.0.50"
#:package Soenneker.Twilio.OpenApiClient@4.0.50
#addin nuget:?package=Soenneker.Twilio.OpenApiClient&version=4.0.50
#tool nuget:?package=Soenneker.Twilio.OpenApiClient&version=4.0.50
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 | 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
- Microsoft.Kiota.Http.HttpClientLibrary (>= 2.1.2)
- Microsoft.Kiota.Serialization.Form (>= 2.1.2)
- Microsoft.Kiota.Serialization.Json (>= 2.1.2)
- Microsoft.Kiota.Serialization.Multipart (>= 2.1.2)
- Microsoft.Kiota.Serialization.Text (>= 2.1.2)
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 |
|---|---|---|
| 4.0.50 | 0 | 9/24/2026 |
| 4.0.49 | 80 | 9/22/2026 |
| 4.0.48 | 96 | 9/21/2026 |
| 4.0.47 | 104 | 9/19/2026 |
| 4.0.46 | 118 | 9/17/2026 |
| 4.0.45 | 190 | 9/15/2026 |
| 4.0.44 | 338 | 9/12/2026 |
| 4.0.43 | 199 | 9/9/2026 |
| 4.0.42 | 225 | 9/8/2026 |
| 4.0.41 | 336 | 9/4/2026 |
| 4.0.40 | 170 | 9/4/2026 |
| 4.0.39 | 230 | 9/3/2026 |
| 4.0.38 | 97 | 9/3/2026 |
| 4.0.37 | 101 | 9/3/2026 |
| 4.0.36 | 181 | 8/31/2026 |
| 4.0.35 | 266 | 8/28/2026 |
| 4.0.34 | 212 | 8/25/2026 |
| 4.0.33 | 294 | 8/15/2026 |
| 4.0.32 | 115 | 8/15/2026 |
| 4.0.31 | 163 | 8/13/2026 |