Install AfriSms
from NuGet.
PM> Install-Package AfriSms
using System;
using System.Collections.Generic;
namespace AfriSmsApp
{
internal class Program
{
static void Main(string[] args)
{
List<string> Phones = new List<string>{ "078xxxxxxx", "079xxxxxxx", "072xxxxxxx" };
AfriSms.AfriSms sms = new AfriSms.AfriSms();
var result = await sms.SendSms(SmsSetting.Email, SmsSetting.Password, SmsSetting.CompanySenderId, SmsSetting.UserId, SmsSetting.Message, Phones);
}
}
}
public class SmsSetting
{
public const string Email = "";
public const string Password = "";
public const string CompanySenderId = "";
public const string UserId = "";
public const string Message = "";
}
That's it!
MIT
For bugs, questions and discussions please use the GitHub Issues.
- NuGet Package: https://www.nuget.org/packages/AfriSms
- GitHub Repo: ntwalitera/AfriSms.NET