随月云短信 · 技术支持

短信接口示例

这篇文章主要为大家分享ASP.NET(C#)短信接口代码,ASP.NET(C#)短信发送、ASP.NET(C#)批量发送、ASP.NET(C#)短信验证码发送,感兴趣的小伙伴们可以参考一下。


string url = "https://www.suisms.net/sms.aspx";
string param = "action=send&userid=userid&account=account&password=password&mobile=mobile&content=content";
string result = request(url,param);

////// 发送HTTP请求
//////请求的URL///请求的参数///请求结果public static string request(string url, string param)
{
    string strURL = url + '?' + param;
    System.Net.HttpWebRequest request;
    request = (System.Net.HttpWebRequest)WebRequest.Create(strURL);
    request.Method = "GET";
    System.Net.HttpWebResponse response;
    response = (System.Net.HttpWebResponse)request.GetResponse();
    System.IO.Stream s;
    s = response.GetResponseStream();
    string StrDate = "";
    string strValue = "";
    StreamReader Reader = new StreamReader(s, Encoding.UTF8);
    while ((StrDate = Reader.ReadLine()) != null)
    {
        strValue += StrDate + " ";
    }
    return strValue;
}


现在注册,即享新手专属礼包!

立即免费注册

正规资质

工信部核准资质,移动、电信、联通金牌合作伙伴

价格透明

明码标价不欺瞒客户,坚决抵制扣量、漏发等行为

信息保密

所有客户信息严格保密,保护客户信息免遭外泄

售后无忧

专业团队提供免费技术支持,7X24小时售后服务

QQ咨询

QQ号码

143761

扫一扫

扫码关注 · 接收账户异常报警 · 消费账单随时查 · 活动及最新平台信息

返回顶部