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