Soenneker.Twilio.OpenApiClient
4.0.39
Prefix Reserved
dotnet add package Soenneker.Twilio.OpenApiClient --version 4.0.39
NuGet\Install-Package Soenneker.Twilio.OpenApiClient -Version 4.0.39
<PackageReference Include="Soenneker.Twilio.OpenApiClient" Version="4.0.39" />
<PackageVersion Include="Soenneker.Twilio.OpenApiClient" Version="4.0.39" />
<PackageReference Include="Soenneker.Twilio.OpenApiClient" />
paket add Soenneker.Twilio.OpenApiClient --version 4.0.39
#r "nuget: Soenneker.Twilio.OpenApiClient, 4.0.39"
#:package Soenneker.Twilio.OpenApiClient@4.0.39
#addin nuget:?package=Soenneker.Twilio.OpenApiClient&version=4.0.39
#tool nuget:?package=Soenneker.Twilio.OpenApiClient&version=4.0.39
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.0)
- Microsoft.Kiota.Serialization.Form (>= 2.1.0)
- Microsoft.Kiota.Serialization.Json (>= 2.1.0)
- Microsoft.Kiota.Serialization.Multipart (>= 2.1.0)
- Microsoft.Kiota.Serialization.Text (>= 2.1.0)
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.39 | 0 | 9/3/2026 |
| 4.0.38 | 29 | 9/3/2026 |
| 4.0.37 | 39 | 9/3/2026 |
| 4.0.36 | 138 | 8/31/2026 |
| 4.0.35 | 220 | 8/28/2026 |
| 4.0.34 | 195 | 8/25/2026 |
| 4.0.33 | 280 | 8/15/2026 |
| 4.0.32 | 96 | 8/15/2026 |
| 4.0.31 | 148 | 8/13/2026 |
| 4.0.30 | 151 | 8/11/2026 |
| 4.0.29 | 362 | 8/1/2026 |
| 4.0.28 | 123 | 7/30/2026 |
| 4.0.27 | 289 | 7/28/2026 |
| 4.0.26 | 591 | 7/16/2026 |
| 4.0.25 | 122 | 7/16/2026 |
| 4.0.24 | 335 | 7/10/2026 |
| 4.0.23 | 146 | 7/9/2026 |
| 4.0.22 | 152 | 7/7/2026 |
| 4.0.21 | 348 | 6/19/2026 |
| 4.0.20 | 581 | 6/5/2026 |