متد get با خروجی json
https://smscell.ir/api/json/sendgroupget?username=YourUserName&password=YourPassword&from=SenderNumber&api=YourApiId&to[0]=09101114444&text[0]=sms1&to[1]=09110002222&text[1]=sms2&client_id[0]...
متد get با خروجی string
https://smscell.ir/api/json/sendgroupget2?username=YourUserName&pass=YourPassword&from=SenderNumber&api=YourApiId&to[0]=09101114444&text[0]=sms1&to[1]=09110002222&text[1]=sms2&client_id[0]...
متد post با خروجی json
https://smscell.ir/api/json/sendgrouppostParameters : username=YourUserNamepassword=YourPasswordfrom=SenderNumberapi=YourApiIdclient_id[0]=...to[0]=09101114444text[0]=sms1to[1]=09110002222text[1]=sms2
متد post با خروجی string
https://smscell.ir/api/json/sendgrouppost2Parameters : username=YourUserNamepassword=YourPasswordfrom=SenderNumberapi=YourApiIdclient_id[0]=...to[0]=09101114444text[0]=sms1to[1]=09110002222text[1]=sms2
POST /api/json/sendgrouppost HTTP/1.1 User-Agent: PostmanRuntime/7.26.8 Accept: */* Postman-Token: fb5a29f8-8e3a-4095-a651-2e9dc6fda9e2 Host: Accept-Encoding: gzip, deflate, br Connection: keep-alive Content-Type: application/x-www-form-urlencoded Content-Length: 198 username=u1&password=123&from=200088362529&api=1&to%5B0%5D=09124315869&text%5B0%5D=%D8%A7%D8%B3%D9%86%20%D8%AA%D9%86%D9%87%D8%A7%20%D8%A7%D8%B3%D8%AA%20%D8%A7%D8%B3%D8%AA%D8%B1%DB%8C%D9%86%DA%AF%202
وب سرویس
https://smscell.ir/WebServiceSms.asmxmethod= sendgroup
متد get
https://smscell.ir/api/json/get_group_report?username=YourUserName&password=YourPassword&id_group_send=Your_id_group_send
متد post
https://smscell.ir/api/json/getgrouppostParameters : username=YourUserNamepassword=YourPasswordid_group_send=Your_id_group_send
POST http://site.com/api/json/getgrouppost HTTP/1.1 User-Agent: PostmanRuntime/7.26.8 Accept: */* Postman-Token: 8c5e093c-a527-4b5c-bc27-ddaaeaf72a1a Host: localhost:2020 Accept-Encoding: gzip, deflate, br Connection: keep-alive Content-Type: application/x-www-form-urlencoded Content-Length: 44 username=u1&password=123&id_group_send=10044
https://smscell.ir/WebServiceSms.asmxmethod= get_group_reportmethod= get_group_report_clientidmethod= get_group_report_clientid_arraymethod= recivemethod= sendgroup_const_text
نمونه کدسیشارپ
string url = "/api/json/sendgrouppost2"; from_form_send r = new from_form_send(); r.username = "u11111"; r.password = "1421442123"; r.from = "2222200000000"; r.api = "55"; int j = 0; j++; r.to.Add("09124310000"); r.to.Add("09124310001"); r.text.Add("متن اول"); r.text.Add("متن دوم"); string myjson = JsonConvert.SerializeObject(r); string result_json = ""; var httpWebRequest = (HttpWebRequest)WebRequest.Create(url); httpWebRequest.ContentType = "application/json"; httpWebRequest.Method = "POST"; using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream())) { streamWriter.Write(myjson); } var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse(); using (var streamReader = new StreamReader(httpResponse.GetResponseStream())) { result_json = streamReader.ReadToEnd(); } var sss = result_json;
نمونه ارسال در postman