WebexSmsClient 1.0.11
dotnet add package WebexSmsClient --version 1.0.11
NuGet\Install-Package WebexSmsClient -Version 1.0.11
<PackageReference Include="WebexSmsClient" Version="1.0.11" />
<PackageVersion Include="WebexSmsClient" Version="1.0.11" />
<PackageReference Include="WebexSmsClient" />
paket add WebexSmsClient --version 1.0.11
#r "nuget: WebexSmsClient, 1.0.11"
#:package WebexSmsClient@1.0.11
#addin nuget:?package=WebexSmsClient&version=1.0.11
#tool nuget:?package=WebexSmsClient&version=1.0.11
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 | Versions 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. |
-
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.
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.