SharpNyx 0.1.5

There is a newer version of this package available.
See the version list below for details.
dotnet add package SharpNyx --version 0.1.5                
NuGet\Install-Package SharpNyx -Version 0.1.5                
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="SharpNyx" Version="0.1.5" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SharpNyx --version 0.1.5                
#r "nuget: SharpNyx, 0.1.5"                
#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.
// Install SharpNyx as a Cake Addin
#addin nuget:?package=SharpNyx&version=0.1.5

// Install SharpNyx as a Cake Tool
#tool nuget:?package=SharpNyx&version=0.1.5                

SharpNyx

Telnyx API C# wrapper for .Net Core. Uses HttpClient.

Dependencies

  • .NETCoreApp 2.1
  • Newtonsoft.Json (>= 12.0.2)

Installation

You can add the NuGet package or download and reference the Telnyx.dll issued in Releases.

Usage

Send a message
using Telnyx.SharpNyx;

//Quick instantiation
TelnyxRestClient rc = new TelnyxRestClient("Q7EI8KGZJ3FrwBxMKq5zmID1");

//Call and wait for SendSMS to finish
rc.SendSMSAsync(new Message("+16508976777", "+16506003337", "Hello Telnyx")).Wait();

//Check to see if it is queued
bool isq = rc.IsQueued;

//rc.Message returns "Message queued" if successful, returns the message if unsuccessful delivery
string responsemessage = rc.Message;
Response Payload
//Get the full response payload on a successful message
ResponsePayload rpl = ResponsePayload.FromJson(rc.ReponseString);

//Print SMS Id generated from the response
DateTime smstime = rpl.DateCreated;

MIT License 2019 Bharat Bhardwaj

Product 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. 
.NET Core netcoreapp2.1 is compatible.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 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
0.2.4 807 6/8/2019
0.2.3 554 5/31/2019
0.2.2 544 5/30/2019
0.2.1 556 5/30/2019
0.2.0 556 5/29/2019
0.1.8 761 5/26/2019
0.1.7 544 5/25/2019
0.1.6 569 5/25/2019
0.1.5 529 5/24/2019
0.1.4 549 5/24/2019
0.1.2 539 5/24/2019
0.1.0 565 5/24/2019

SharpNyx v 0.1.5
-From field made optional. But simple instantiator still requires From field, so no upstream changes required.

-Simpler client setup. Create messages using a different class instead of the client itself.

-Removed Http status code checks

Support for Telnyx messaging API.
-Supports all published functions for sending messages.
-Objects for error response, and successful payload response.

Rest connections via HttpClient.

Json parsing via Newtonsoft.