AsadAli.TwilioSdk
2.0.0
dotnet add package AsadAli.TwilioSdk --version 2.0.0
NuGet\Install-Package AsadAli.TwilioSdk -Version 2.0.0
<PackageReference Include="AsadAli.TwilioSdk" Version="2.0.0" />
<PackageVersion Include="AsadAli.TwilioSdk" Version="2.0.0" />
<PackageReference Include="AsadAli.TwilioSdk" />
paket add AsadAli.TwilioSdk --version 2.0.0
#r "nuget: AsadAli.TwilioSdk, 2.0.0"
#:package AsadAli.TwilioSdk@2.0.0
#addin nuget:?package=AsadAli.TwilioSdk&version=2.0.0
#tool nuget:?package=AsadAli.TwilioSdk&version=2.0.0
Twilio SDK
The Twilio SDK SDK for .NET provides access to the Twilio SDK REST APIs from .NET applications.
This is the public Twilio REST API., Manage configurations, conversations, participants, and communications. Create configurations to define capture rules and channel settings, then use conversations to group related communications., This is the public Twilio REST API., This is the public Twilio REST API., This is the public Twilio REST API., This is the public Twilio REST API., This is the public Twilio REST API., This is the public Twilio REST API., This is the public Twilio REST API., This is the public Twilio REST API., This is the public Twilio REST API., This is the reference API for the rest-proxy server., Insights Domain V3 API.
Installation
Add the .NET SDK as a project reference into your solution:
dotnet add reference <path-to-sdk>/TwilioSdk.csproj
Quick Start
Dependency Injection
Register the client with IServiceCollection and resolve it from the container. The HttpClient is managed by IHttpClientFactory. Configure the client's behavior through TwilioSdkClientOptions.
services.AddTwilioSdkClient(options =>
{
options.AccountSidAuthToken =
new BasicAuthCredentials
{
Username = "YOUR_USERNAME",
Password = "YOUR_PASSWORD",
};
options.Environment = ServerEnvironment.Production;
// TODO: configure more client options here
});
Direct Instantiation
Create the client by passing an HttpClient you manage yourself. Configure the client's behavior through TwilioSdkClientOptions.
var httpClient = new HttpClient();
// TODO: configure more client options here
var options =
new TwilioSdkClientOptions
{
AccountSidAuthToken = new BasicAuthCredentials
{
Username = "YOUR_USERNAME",
Password = "YOUR_PASSWORD",
},
Environment = ServerEnvironment.Production,
};
var client = new TwilioSdkClient(httpClient, options);
Usage
For code examples and error responses, see API Reference.
Best Practices
Use a single TwilioSdkClient instance for the lifetime of your application and
reuse it across all requests. Creating a new instance per request might exhaust the
connection pool.
License
This SDK is distributed under the MIT License.
Support
Refer to the API reference for detailed information on available operations with code samples.
For further assistance, please contact support at support@twilio.com.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.Bcl.AsyncInterfaces (>= 10.0.8)
- Microsoft.Bcl.TimeProvider (>= 10.0.8)
- Microsoft.Extensions.Http (>= 10.0.8)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.8)
- Polly (>= 8.6.5)
- System.Net.Http.Json (>= 10.0.8)
- System.Net.ServerSentEvents (>= 10.0.8)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.0.0 | 183 | 8/11/2026 |