Jattac.Sms.Gateway.SDK
1.1.0-beta01
dotnet add package Jattac.Sms.Gateway.SDK --version 1.1.0-beta01
NuGet\Install-Package Jattac.Sms.Gateway.SDK -Version 1.1.0-beta01
<PackageReference Include="Jattac.Sms.Gateway.SDK" Version="1.1.0-beta01" />
<PackageVersion Include="Jattac.Sms.Gateway.SDK" Version="1.1.0-beta01" />
<PackageReference Include="Jattac.Sms.Gateway.SDK" />
paket add Jattac.Sms.Gateway.SDK --version 1.1.0-beta01
#r "nuget: Jattac.Sms.Gateway.SDK, 1.1.0-beta01"
#addin nuget:?package=Jattac.Sms.Gateway.SDK&version=1.1.0-beta01&prerelease
#tool nuget:?package=Jattac.Sms.Gateway.SDK&version=1.1.0-beta01&prerelease
Jattac SMS Gateway SDK - Easy Guide!
Imagine you have a special messenger service (that's the Jattac SMS Gateway) that can send text messages (SMS) for your app. This SDK is like a remote control that lets your app talk to that messenger service easily!
What's this for?
This "SDK" (Software Development Kit) is a toolkit for .NET developers. It helps your C# application:
- Send SMS messages through the Jattac SMS Gateway.
- Find out which SMS "Providers" (like different phone companies or routes) are available.
- See who the "Originators" are (the "from" number or name that appears on the recipient's phone) for different users or parts of your system.
How do I get it into my project?
This is a .NET library. You'll typically add it to your project using NuGet.
In your project, you'd usually run a command like this (the exact version might change):
dotnet add package Jattac.Sms.Gateway.SDK --version 1.0.0-beta02
Or you can add it via Visual Studio's NuGet Package Manager.
First Steps: Setting things up
Before you can use the remote control, you need to tell it a few things:
- Where the Jattac SMS Gateway lives (its address):
BaseUrl
- An API Key:
ApiKey
Instantiate JattacSmsGatewaySettings
as follows:
using Jattac.Libs.SmsGateway.JattacSmsGateway;
var settings = new JattacSmsGatewaySettings
{
BaseUrl = "https://your-jattac-sms-gateway-url.com", // Replace with the actual URL
ApiKey = "your-api-key"
};
How to Use It (Simple Examples)
1. Sending an SMS
using Jattac.Libs.SmsGateway.JattacSmsGateway;
var smsSender = new JattacSmsSender(settings);
var messagePayload = new JattacSmsPayload
{
Message = "Hello from Jattac SDK!",
Recipients = new HashSet<string> { "1234567890", "0987654321" }, // Phone numbers
TenantId = Guid.NewGuid(), // The ID of the user/tenant sending this
CountryCode = 1 // e.g., 1 for USA
};
bool wasSent = await smsSender.SendAsync(messagePayload,
onSendResults: async (status, errorMessage) =>
{
Console.WriteLine($"SMS Sending Status: {status}");
if (!string.IsNullOrEmpty(errorMessage))
{
Console.WriteLine($"Error: {errorMessage}");
}
});
Console.WriteLine(wasSent ? "SMS submitted successfully!" : "SMS submission failed.");
2. Finding out available SMS Providers
using Jattac.Libs.SmsGateway.JattacSmsProviders;
var providerReader = new JattacSmsProviderReader(settings);
List<JattacSmsProvider> providers = await providerReader.GetAllAsync();
foreach (var provider in providers)
{
Console.WriteLine($"Provider Name: {provider.Name}");
}
That's the basics! This should help you get your application talking to the Jattac SMS Gateway. Happy coding!
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
- Jattac.Users.Management.Sdk (>= 1.0.0-beta03)
- Rocket.Libraries.CallProxy (>= 1.1.5)
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.1.0-beta01 | 108 | 6/19/2025 |
1.0.0-beta03 | 83 | 6/8/2025 |
1.0.0-beta02 | 85 | 6/8/2025 |
1.0.0-beta01 | 83 | 6/7/2025 |