基于C#的短信接口调用示例代码模板
2016-10-27 11:07
471 查看
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#的短信接口调用示例代码模板,相信很多同行在做开发时都会遇到用户注册验证的需求,阅信短信平台的短信验证和语音验证在业内均属于较高的水准,感兴趣的朋友可以去免费测试下。
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#的短信接口调用示例代码模板,相信很多同行在做开发时都会遇到用户注册验证的需求,阅信短信平台的短信验证和语音验证在业内均属于较高的水准,感兴趣的朋友可以去免费测试下。
相关文章推荐
- 基于PHP的短信接口调用示例代码模板
- 基于python的短信接口调用代码示例模板
- 基于PHP的短信接口调用示例代码
- 短信http接口的java代码调用示例
- 基于PHP的聚合数据车辆违章查询接口调用代码示例
- 基于C#的电视台节目表接口调用代码
- eoLinker-API_Shop_短信服务接口-调用示例代码,支持PHP、Python、Java等语言
- 聚合短信PHP代码示例短信接口调用CURL方法
- .net短信接口调用示例(106短信通道)
- 快递100API接口调用代码示例
- php 调用 web Server(短信接口示例)
- pm2.5接口,城市pm2.5指数查询接口调用代码示例
- c#动态添加band 添加列 添加模板列代码示例
- 使用C#调用存储过程,用函数合理组织代码,使程序更加的清晰(示例)
- c#短信接口代码实现(发短信)
- 图解C#中实现远程调用(Remoting)的示例代码(一)
- .NET调用新浪微博开放平台接口的代码示例
- 调用极光推送接口C#代码
- .NET调用新浪微博开放平台接口的代码示例
- 调用 kqueue 接口的示例代码