PTPSMS
Sending one by one
{{:: 'controllers.documentation.chooseFramework' | translate }}
PM > Install-Package
NikSms.Library.Net
PM > Install-Package
NikSms.Library.NetCore
//Import Libraries
using System.Text;
using System.Net;
using System.Collections.Specialized;
using Newtonsoft.Json;
string url = "https://niksms.com/fa/publicapi/ptpSms";
using (var client = new WebClient())
{
var values = new NameValueCollection();
values["username"] = "YourUsername";
values["password"] = "YourPassword";
values["senderNumber"] = "*********";
values["numbers"] = "*************,***********";
values["sendOn"] = "2018/01/04-10:00";
values["sendType"] = "1";
values["yourMessageIds"] = "1001,1002";
values["message"] = "Here Is First Message SMS Text, Here Is Second Message SMS";
var response = client.UploadValues(url, values);
var responseString = Encoding.Default.GetString(response);
NikSMsResultSend result = JsonConvert.DeserializeObject<NikSMsResultSend>(responseString);
}