Neovortex.KavehNegar
0.0.1
See the version list below for details.
dotnet add package Neovortex.KavehNegar --version 0.0.1
NuGet\Install-Package Neovortex.KavehNegar -Version 0.0.1
<PackageReference Include="Neovortex.KavehNegar" Version="0.0.1" />
paket add Neovortex.KavehNegar --version 0.0.1
#r "nuget: Neovortex.KavehNegar, 0.0.1"
// Install Neovortex.KavehNegar as a Cake Addin #addin nuget:?package=Neovortex.KavehNegar&version=0.0.1 // Install Neovortex.KavehNegar as a Cake Tool #tool nuget:?package=Neovortex.KavehNegar&version=0.0.1
Kavehnegar SMS and Call SDK
Overview
Kavehnegar SMS and Call SDK is a .NET library designed to interact with the Kavehnegar SMS and Call center services. This redesigned version improves upon the original by providing a cleaner codebase, utilizing built-in .NET utilities, supporting advanced lookup functionalities, and enhancing performance.
Features
- Clean and readable C# code
- Minimal custom implementation by leveraging built-in .NET utilities
- Supports 'tokens' with spaces for lookup functionality
- Improved performance by omitting unnecessary fields in requests
- Strongly-typed wrapper around the API to minimize mistakes
- A lot of client side validation to minimize round-trip
Installation
To install the SDK, you can use the NuGet package manager:
dotnet add package Neovortex.Kavehnegar
Usage
Here's an example of how to use the Kavehnegar SMS and Call SDK:
using Neovortex.KavehNegar;
using Neovortex.KavehNegar.Model;
var kavehnegar = new KavehnegarClient("API_KEY");
// send a simple text message
await kavehnegar.Send(new KavenegarSmsMessage
{
Receptors = ["+989121111111"],
Message = """
بهرین کیفیت محصولات رو از ما بخواهید
شماره تماس 0210000000
"""
});
// send a simple text to voice message
await kavehnegar.TTS(new KavehnegarTtsRequest
{
Receptor = "+989121111111",
Message = "کد فعال سازی شما 112 می باشد"
});
// send a lookup (aka OTP) message
await kavehnegar.LookUp(new KavehnegarLookupRequest
{
Receptor = "+989121111111",
Tokens =
[
"شرکت بین المللی خزر افتاب شرق",
"2545"
],
TemplateName = "auth"
});
API Reference
For a detailed API reference, please refer to the official documentation.
Contributing
We welcome contributions to enhance the functionality and efficiency of this SDK. Please fork the repository and submit pull requests with your improvements.
License
This project is licensed under the MIT License.
Contact
For any questions or support, please open an issue on the GitHub repository.
Thank you for using!
Planned Enhancements
1. Add Support for Config API
The next step is to add support for the Config API, which will allow users to configure various settings and parameters directly through the SDK.
2. Add Strongly Typed Exceptions for Better Exception Management
To improve exception management, the SDK will be updated to use strongly typed exceptions. This will help users to handle errors more effectively and understand the issues more clearly.
3. Add Unit Tests for SDK
After all all softwares must have tests right?! 😃
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. |
-
net8.0
- Polly (>= 8.4.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.