从服务器端执行SMS API [英] SMS API Execution from server end

查看:88
本文介绍了从服务器端执行SMS API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在访问网站时从服务器端执行SMS API URL,因为SMS只能由服务器端访问?



使用System发送短信时出现问题.Net.WebClient.OpenRead(Uri地址)

How to execute SMS API URL from server end while visiting website, because SMS can only be visited by Server end only ?

Problem occurring while sending sms with System.Net.WebClient.OpenRead(Uri address)

推荐答案

嗨Gaurav,

尝试下面的代码,用这个你也可以跟踪sms状态。



Hi Gaurav,
Try the code below, using this u can also track the sms status.

WebClient client  = new WebClient();
String URL= "http://smsonline.in.....";
String SmsStatusMsg = client.DownloadString(URL);
 if SmsStatusMsg.Contains("<br>")
{
   SmsStatusMsg = SmsStatusMsg.Replace("<br>",",");
  }





问候

Sameer



Regards
Sameer


这篇关于从服务器端执行SMS API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆