本文为您提供了JAVA语言版本的短信营销接口对接DEMO示例
string[] strArray = PhoneNO.Split(','); //字符串转数组
string uuid = System.Guid.NewGuid().ToString("N");
DateTime startTime = TimeZoneInfo.ConvertTimeToUtc(new DateTime(1970, 1, 1, 8, 0, 0));//北京所在东八区
DateTime endTime = TimeZoneInfo.ConvertTimeToUtc(DateTime.Now);
MD5CryptoServiceProvider md5Hasher = new MD5CryptoServiceProvider();
byte[] data = md5Hasher.ComputeHash(Encoding.Default.GetBytes("api_id=" + select3[7].Value + "&api_key=" + select3[8].Value + "&request_id=" + uuid + "×tamp=" + Convert.ToInt64((endTime - startTime).TotalSeconds) + ""));
StringBuilder sBuilder = new StringBuilder();
for (int i = 0; i < data.Length; i++)
{
sBuilder.Append(data[i].ToString("x2"));//转化为小写的16进制
}
HttpWebRequest myReque