Soenneker.Telnyx.OpenApiClient 3.0.20

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Telnyx.OpenApiClient --version 3.0.20
                    
NuGet\Install-Package Soenneker.Telnyx.OpenApiClient -Version 3.0.20
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Telnyx.OpenApiClient" Version="3.0.20" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Telnyx.OpenApiClient" Version="3.0.20" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Telnyx.OpenApiClient" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Telnyx.OpenApiClient --version 3.0.20
                    
#r "nuget: Soenneker.Telnyx.OpenApiClient, 3.0.20"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Soenneker.Telnyx.OpenApiClient&version=3.0.20
                    
Install Soenneker.Telnyx.OpenApiClient as a Cake Addin
#tool nuget:?package=Soenneker.Telnyx.OpenApiClient&version=3.0.20
                    
Install Soenneker.Telnyx.OpenApiClient as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image Soenneker.Telnyx.OpenApiClient

A Telnyx .NET client generated from the Telnyx OpenAPI schema, updated daily

Installation

dotnet add package Soenneker.Telnyx.OpenApiClient

Soenneker.Telnyx.OpenApiClient

Overview

Soenneker.Telnyx.OpenApiClient is a .NET SDK generated using Kiota that provides a client interface for interacting with the Telnyx OpenAPI. The client is automatically updated daily from the official Telnyx OpenAPI specification.

Installation

Install the package via NuGet:

dotnet add package Soenneker.Telnyx.OpenApiClient

Setup

To use this SDK, you'll need a Telnyx API Key. You can obtain one from the Telnyx Portal.

Creating a Client Instance

var httpClient = new HttpClient();
httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "your_access_token_here");

// Use a null authentication provider since we're setting headers manually
var requestAdapter = new HttpClientRequestAdapter(null, httpClient: httpClient);

var apiClient = new YourKiotaGeneratedClient(requestAdapter);

// Create a Telnyx API client instance
var client = new TelnyxOpenApiClient(requestAdapter);

Making a Call

To initiate a call using Telnyx, you can use the Calls API:

using System.Threading.Tasks;

public async Task MakeCall()
{
    var callRequest = new {
        connection_id = "your_connection_id",
        to = "+15558675309",  // The destination phone number
        from = "+15551234567"   // Your Telnyx phone number
    };
    
    var response = await client.Calls.PostAsync(callRequest);
    
    if (response != null)
    {
        Console.WriteLine("Call initiated successfully!");
    }
}

Sending a Message

var messageRequest = new {
    from = "+15551234567", // Your Telnyx number
    to = "+15558675309", // Destination number
    text = "Hello from Telnyx!"
};

var response = await client.Messages.PostAsync(messageRequest);
Console.WriteLine("Message sent successfully!");
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
3.0.76 30 a day ago
3.0.75 43 2 days ago
3.0.74 93 5 days ago
3.0.73 167 7 days ago
3.0.72 190 8 days ago
3.0.71 177 9 days ago
3.0.70 93 12 days ago
3.0.69 155 13 days ago
3.0.68 131 15 days ago
3.0.67 135 15 days ago
3.0.66 144 15 days ago
3.0.65 141 15 days ago
3.0.64 155 15 days ago
3.0.63 147 16 days ago
3.0.62 142 16 days ago
3.0.61 152 16 days ago
3.0.60 153 16 days ago
3.0.59 145 16 days ago
3.0.58 147 16 days ago
3.0.57 149 16 days ago
3.0.56 143 16 days ago
3.0.55 151 16 days ago
3.0.54 149 17 days ago
3.0.53 149 17 days ago
3.0.52 151 17 days ago
3.0.51 154 17 days ago
3.0.50 128 17 days ago
3.0.49 131 17 days ago
3.0.48 122 17 days ago
3.0.47 103 18 days ago
3.0.46 72 18 days ago
3.0.45 69 18 days ago
3.0.44 77 18 days ago
3.0.43 75 18 days ago
3.0.42 76 18 days ago
3.0.41 76 19 days ago
3.0.40 80 19 days ago
3.0.39 84 19 days ago
3.0.38 102 19 days ago
3.0.37 147 20 days ago
3.0.36 151 20 days ago
3.0.35 157 20 days ago
3.0.34 148 20 days ago
3.0.33 150 20 days ago
3.0.32 155 20 days ago
3.0.31 151 20 days ago
3.0.30 154 21 days ago
3.0.29 142 21 days ago
3.0.28 143 22 days ago
3.0.27 144 22 days ago
3.0.26 148 23 days ago
3.0.25 147 23 days ago
3.0.24 140 23 days ago
3.0.23 83 25 days ago
3.0.22 112 a month ago
3.0.21 126 a month ago
3.0.20 448 a month ago
3.0.19 459 a month ago
3.0.18 461 a month ago
3.0.17 263 a month ago
3.0.16 85 a month ago
3.0.15 110 a month ago
3.0.14 128 a month ago
3.0.13 140 a month ago
3.0.12 130 a month ago
3.0.11 134 a month ago
3.0.10 61 a month ago
3.0.9 58 a month ago
3.0.8 87 a month ago
3.0.7 134 a month ago
3.0.6 143 a month ago
3.0.5 142 a month ago
3.0.4 138 a month ago
3.0.1 142 a month ago