基于C#的短信接口调用示例代码模板

using System; 

using System.Collections.Generic; 

using System.Linq; 

using System.Text; 

using System.Net.Security; 

usingSystem.Security.Cryptography.X509Certificates; 

using System.Net; 

using System.IO; 

using System.IO.Compression; 

using System.Text.RegularExpressions;

using System.Security.Cryptography;

using System.Web;

public class Test

{

       private static readonly string DefaultUserAgent = "Mozilla/4.0(compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR2.0.50727)"; 

 

       private static bool CheckValidationResult(object sender, X509Certificatecertificate, X509Chain chain, SslPolicyErrors errors) 

       { 

           return true; //总是接受    

       } 

        static void Main(string[] args) 

       { 

           DateTime dt = DateTime.Now;

           string mttime = dt.ToString("yyyyMMddHHmmss");

           string pwd1 = "*************"+mttime;

     string pwd = GetMD5(pwd1)

           string content = "【阅信短信平台】验证码888888,打死也不能告诉别人哦。";

            string url = "http://IP/端口号";


这是之前给阅信短信平台写的基于C#的短信接口调用示例代码模板,相信很多同行在做开发时都会遇到用户注册验证的需求,阅信短信平台的短信验证和语音验证在业内均属于较高的水准,感兴趣的朋友可以去免费测试下。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值