LibSmsGateway 1.1.1

dotnet add package LibSmsGateway --version 1.1.1
                    
NuGet\Install-Package LibSmsGateway -Version 1.1.1
                    
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="LibSmsGateway" Version="1.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LibSmsGateway" Version="1.1.1" />
                    
Directory.Packages.props
<PackageReference Include="LibSmsGateway" />
                    
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 LibSmsGateway --version 1.1.1
                    
#r "nuget: LibSmsGateway, 1.1.1"
                    
#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=LibSmsGateway&version=1.1.1
                    
Install LibSmsGateway as a Cake Addin
#tool nuget:?package=LibSmsGateway&version=1.1.1
                    
Install LibSmsGateway as a Cake Tool

LibSmsGateway

A .NET Core library for sending SMS messages via the www.sms-gateway.at HTTP2SMS API.

Usage

1. Create and configure account

Please note that you will need an account at www.sms-gateway.at in order to make use of this library.

2. Install NuGet package

Open the project/solution in Visual Studio, and open the console using the Tools > NuGet Package Manager > Package Manager Console command.

Now run:

Install-Package LibSmsGateway -ProjectName MyProject

...where "MyProject" is the name of the project that needs SMS support.

3. Start using the library

// Import namespace
using LibSmsGateway;

// Create an SMS client.
// Get username and password from your sms-gateway.at account.
var smsClient = new SmsClient("user", "password");

// Send a message
var result = await smsClient.Send(
    message: "This is a test message",  // message text
    recipient: "999999999999",          // destination number
    sender: "SenderName",               // sender name, optional
    group: null,                        // recipient group, optional
    receipt: false,                     // receive confirmation, optional
    flash: false);                      // flash sms, optional

// Evaluate result
if (result.IsSuccess)
{
    // SMS sucesssfully delivered
}
else
{
    // There was an error, find out what happened
    Console.WriteLine(
    "SatusCode: {0}, StatusMessage: \"{1}\", RawResult:\r\n{2}\r\n",
    result.StatusCode.ToString(),
    result.StatusMessage,
    result.RawResponse);
}

License

This project is published under the MIT license. See https://raw.githubusercontent.com/alexhauser/LibSmsGateway/master/LICENSE for more information.

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.  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 netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.1

    • 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.

Enable multiple recipients/recipient groups.