SendPk.SmsClient
1.0.4
dotnet add package SendPk.SmsClient --version 1.0.4
NuGet\Install-Package SendPk.SmsClient -Version 1.0.4
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="SendPk.SmsClient" Version="1.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SendPk.SmsClient" Version="1.0.4" />
<PackageReference Include="SendPk.SmsClient" />
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 SendPk.SmsClient --version 1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SendPk.SmsClient, 1.0.4"
#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.
#:package SendPk.SmsClient@1.0.4
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SendPk.SmsClient&version=1.0.4
#tool nuget:?package=SendPk.SmsClient&version=1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SendPk.Sdk
A lightweight, async, dependency-injection–friendly .NET SDK for sending SMS via the SendPk API (Pakistan).
Easily integrate SMS sending in ASP.NET, Blazor, .NET MAUI, WinForms, WPF, or Console apps.
🚀 Features
- ✔ Async API (
SendSmsAsync) - ✔ Clean interface-based design (
ISendPkClient) - ✔ Dependency Injection support
- ✔ Uses
HttpClientFactorybest practices - ✔ Centralized configuration using
SendPkOptions - ✔ Lightweight and no external dependencies
- ✔ Clear error handling
📦 Installation
⚙️ Configuration
1. Add in Program.cs (ASP.NET / Blazor / API)
builder.Services.AddSendPkClient(options =>
{
options.ApiKey = "YOUR_API_KEY";
options.Sender = "MyBrand";
});
### **2. Inject and Use
public class SmsController : ControllerBase
{
private readonly ISendPkClient _sms;
public SmsController(ISendPkClient sms)
{
_sms = sms;
}
[HttpGet("send")]
public async Task<string> Send()
{
return await _sms.SendSmsAsync("923001234567", "Hello from SendPk SDK!");
}
}
-----SAMPLE USAGE
var client = new SendPkClient(new SendPkOptions
{
ApiKey = "YOUR_KEY",
Sender = "MyBrand"
});
string result = await client.SendSmsAsync("923001234567", "Test SMS");
Console.WriteLine(result);
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- Microsoft.Extensions.Configuration (>= 10.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.0)
- Microsoft.Extensions.Http (>= 10.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.