Send SMS and receive mobile-originated messages and delivery reports using the LINK Mobility PSWin gateway.
This is an implementation of the API described on the PSWin Wiki.
A PSWin gateway account from LINK Mobility is required.
The project is avalable as two separate NuGet packages:
LinkMobilityNE.PSWin.Client
for sending SMS.LinkMobilityNE.PSWin.Receiver
for receiving mobile-originated messages and delivery reports.
You can install both packages by typing the following commands in the NuGet console:
PM> Install-Package LinkMobilityNE.PSWin.Client
PM> Install-Package LinkMobilityNE.PSWin.Receiver
The packages target .NET Standard 2.0 and can therefore be used in .NET Framework and .NET Core projects. See the compatibility table for more information.
In addition to the below examples, you can find .NET Core example projects in this GitHub repository:
Example.Client
: Sending SMS withLinkMobility.PSWin.Client
.Example.Receiver
: Receiving mobile-orignated messages and delivery reports.
var client = new GatewayClient(username, password);
var result = await client.SendAsync(
new Sms(
senderNumber: "GCTEST",
receiverNumber: "4700000000",
text: "Hello, World!"));
Console.WriteLine(result.IsStatusOk ? "Message sent!" : "Message not sent!");
var receiver = new GatewayReceiver(async (mo) => Console.WriteLine(mo.Text), null);
var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();
app.MapPost("/", receiver.ReceiveMobileOriginatedMessageAsync);
app.Run();
This project is licensed under the MIT No Attribution
license. See LICENSE.txt for the license text.