日本欧美国产精品第一页久久-日本欧美韩国一区二区三区-日本欧美韩国专区-日本欧美久久久久免费播放网-同性男男黄h片在线播放免费-同性欧美可播放videos免费

您是否正受到短信簽名報(bào)備的困擾?達(dá)信通解決方案讓您最快15分鐘內(nèi)恢復(fù)信息傳遞,馬上 注冊(cè)體驗(yàn)。

ASP.NET(C#)

ASP.NET(C#)代碼示例

//接口類型:達(dá)信通語(yǔ)音驗(yàn)證碼接口。
//賬戶注冊(cè):請(qǐng)通過(guò)該地址開通賬戶http://sms.wx96.com/register.html
//注意事項(xiàng):
//(1)調(diào)試期間,請(qǐng)仔細(xì)閱讀接口文檔;
//(2)請(qǐng)使用 用戶名(例如:cf_demo123)及 APIkey來(lái)調(diào)用接口,APIkey在會(huì)員中心可以獲??;
//(3)該代碼僅供接入達(dá)信通短信接口參考使用,客戶可根據(jù)實(shí)際需要自行編寫;
 
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.IO;
using System.Net;
using System.Text;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
 
public partial class Post : System.Web.UI.Page
{
    public static string PostUrl = ConfigurationManager.AppSettings["WebReference.Service.PostUrl"];
    protected void Page_Load(object sender, EventArgs e)
    {
        string account = "用戶名";//用戶名是登錄wx96.com賬號(hào)名(例如:cf_demo123)
        string password = "密碼";//查看密碼請(qǐng)登錄用戶中心->語(yǔ)音驗(yàn)證碼->帳戶參數(shù)設(shè)置->APIKEY
        string mobile = "136xxxxxxxx";//手機(jī)號(hào)碼
        string content = "1125";
        string postStrTpl = "account={0}&password={1}&mobile={2}&content={3}";
 
        UTF8Encoding encoding = new UTF8Encoding();
        byte[] postData = encoding.GetBytes(string.Format(postStrTpl, account, password, mobile, content));
 
        HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create(PostUrl);
        myRequest.Method = "POST";
        myRequest.ContentType = "application/x-www-form-urlencoded";
        myRequest.ContentLength = postData.Length;
 
        Stream newStream = myRequest.GetRequestStream();
        // Send the data.
        newStream.Write(postData, 0, postData.Length);
        newStream.Flush();
        newStream.Close();
 
        HttpWebResponse myResponse = (HttpWebResponse)myRequest.GetResponse();
        if (myResponse.StatusCode == HttpStatusCode.OK)
        {
            StreamReader reader = new StreamReader(myResponse.GetResponseStream(), Encoding.UTF8);
 
               string res = reader.ReadToEnd();
               int len1 = res.IndexOf("/code>");
               int len2 = res.IndexOf("code>");
               string code=res.Substring((len2+6),(len1-len2-6));
               //Response.Write(code);
               int len3 = res.IndexOf("/msg>");
               int len4 = res.IndexOf("msg>");
               string msg=res.Substring((len4+5),(len3-len4-5));
               Response.Write(msg);
               Response.End();
           }else{
                //訪問(wèn)失敗
           }
       }
   }

在線咨詢
電話咨詢

服務(wù)熱線:

4008 808 898

服務(wù)熱線(工作時(shí)間):

4008 808 898

業(yè)務(wù)咨詢(非工作時(shí)間):

4008 808 898

售后咨詢(非工作時(shí)間):

4008 808 898

主站蜘蛛池模板: 免费播放aa在线视频成人 | 国产在线免 | 国产理论视频 | 久久国内精品自在自线软件 | 一区二区精品视频 | 麻豆国产96在线 | 日韩 | 美女张开腿让男人桶爽免 | 一级a性色生活片久久毛片 一级a做爰片欧欧美毛片4 | 亚洲国产韩国一区二区 | 久热国产在线视频 | 亚欧成人毛片一区二区三区四区 | 在线精品视频免费观看 | 亚洲精品久久久久久久无 | 国产一区二区免费不卡在线播放 | 中文字幕成人在线观看 | 中文字幕日韩有码 | 日本美女作爱 | 国产欧美日韩三级 | 亚洲国产经典 | 秋霞手机入口二日韩区 | 国产微拍精品福利视频 | 精品一区二区三区在线观看l | 美女毛片大全 | 国产人做人爱视频精品 | 2020毛片 | 欧美视频在线一区 | 亚洲视频 欧美视频 | 一区二区三区国产美女在线播放 | 亚洲女人在线 | 特级片免费看 | 亚洲一区二区三区不卡在线播放 | 日本亚州在线播放精品 | 亚洲成a人片毛片在线 | 免费视频一区二区三区四区 | 中文字幕亚洲日本岛国片 | 九九欧美 | 99午夜高清在线视频在观看 | 国产日韩一区二区三区 | 亚洲国产第一区二区香蕉 | 视频一区二区三区在线 | 日韩欧美在 |