This is a minimal .NET console application that demonstrates how to send SMS messages using the Taqnyat SMS API.
It's intended as a quick test client for developers who want to try out Taqnyat before integrating it into their application.
- ✅ Send SMS via Taqnyat API
- 🔐 Loads sensitive config (token, sender) from
appsettings.json - 💬 Prompts user for recipient number and message content at runtime
- 📦 Built with .NET 8 (can work with .NET 6+)
git clone https://github.com/ibrahimtalaa04/TaqnyatSmsDemo.git
cd TaqnyatSmsDemoThis project uses the Microsoft.Extensions.Configuration libraries.
dotnet add package Microsoft.Extensions.Configuration
dotnet add package Microsoft.Extensions.Configuration.Json
Create a file named appsettings.json in the project root:
{
"SmsSettings": {
"Token": "YOUR_TAQNYAT_TOKEN",
"Sender": "YOUR_SENDER_NAME"
}
}
dotnet run
You’ll be prompted to enter the recipient’s number and the message content.
Enter recipient phone number (e.g. +9665XXXXXXXX): +966512345678
Enter message to send: Hello from Ibrahim 🚀
📤 Sending SMS...
✅ Status Code: OK
📩 Response:
{
"messageId": "abc123",
"status": "queued",
...
}
This project is released under the MIT License. Feel free to use or contribute!
Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.
Created with ❤️ by Ibrahim For questions or support, feel free to open an issue or message me.