WebexSmsClient 1.0.11

dotnet add package WebexSmsClient --version 1.0.11
                    
NuGet\Install-Package WebexSmsClient -Version 1.0.11
                    
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="WebexSmsClient" Version="1.0.11" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="WebexSmsClient" Version="1.0.11" />
                    
Directory.Packages.props
<PackageReference Include="WebexSmsClient" />
                    
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 WebexSmsClient --version 1.0.11
                    
#r "nuget: WebexSmsClient, 1.0.11"
                    
#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.
#:package WebexSmsClient@1.0.11
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=WebexSmsClient&version=1.0.11
                    
Install as a Cake Addin
#tool nuget:?package=WebexSmsClient&version=1.0.11
                    
Install as a Cake Tool

WebexSmsClient

A lightweight C# library for sending SMS messages through the Webex Interact API.

This client provides a simple async method to send SMS messages with minimal setup, suitable for use in alerts, notifications, and automation systems.


🚀 Installation

Install from NuGet:

dotnet add package WebexSmsClient

or using Visual Studio Package Manager:

PM> Install-Package WebexSmsClient

💡 Usage Example

using System;
using System.Threading.Tasks;
using WebexSmsClient;

class Program
{
    static async Task Main(string[] args)
    {
        var smsClient = new WebexSmsSender(
            apiKey: "YOUR_X_AUTH_KEY",
            fromId: "YourFromID"
        );

        string recipient = "+447700900001";
        string message = "Your appointment on 29th October at 12:30PM.";
        string endpoint = "https://api.webexinteract.com/v1/sms/";

        try
        {
            var response = await smsClient.SendSmsAsync(recipient, message, endpoint);
            Console.WriteLine("Message sent successfully!");
            Console.WriteLine(response);
        }
        catch (Exception ex)
        {
            Console.WriteLine($"Failed to send SMS: {ex.Message}");
        }
    }
}

💡 Usage Example Simplified

using WebexSmsClient;

class Program
{
    static async Task Main(string[] args)
    {
        var smsClient = new WebexSmsSender(apiKey: "YOUR_X_AUTH_KEY", fromId: "YourFromID");
        await smsClient.SendSmsAsync("+447700900001", "Hello. Booking confirmed.", "https://api.webexinteract.com/v1/sms/");
    }
}

⚙️ Method Reference

SendSmsAsync(string phoneNumberTo, string message, string endpoint)

Parameter Type Description
phoneNumberTo string The recipient’s phone number in E.164 format (e.g., +447700900001).
message string The SMS message body text.
endpoint string The Webex Interact API endpoint (e.g., https://api.webexinteract.com/v1/sms/).

Returns: Task<string> — the raw JSON response from the Webex API. Throws: Exception if the HTTP response status is not successful.


🌍 Example Endpoints

Environment Endpoint
Production https://api.webexinteract.com/v1/sms/
Sandbox/Test https://api.webexinteract.com/v1/sms/test

🧩 Example Use Cases

  • IoT or power outage alerts
  • System or device notifications
  • Two-factor authentication or verification codes
  • Customer messaging or status updates

🪪 License

Licensed under the MIT License.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

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
1.0.11 270 10/30/2025
1.0.10 254 10/30/2025
1.0.9 232 10/30/2025
1.0.8 254 10/30/2025

v1.0.11 - Fixed deterministic build validation.
v1.0.10 - Fixed untracked sources.
v1.0.9 - Extended releaseNotes, Optimised summary and tags, Verified icon + readme setup, Explicit language + serviceable, XML docs included.
v1.0.8 - Enabled deterministic and CI build settings.
v1.0.7 - Added SourceLink and symbol generation support.
v1.0.6 - Improved NuGet metadata and added README rendering.
v1.0.5 - Initial stable release.