<pre id="4qa46"></pre>

  • <dl id="4qa46"><acronym id="4qa46"></acronym></dl>
    <rt id="4qa46"></rt>
    <abbr id="4qa46"><tbody id="4qa46"></tbody></abbr>
  • 您是否正受到短信簽名報備的困擾?達信通解決方案讓您最快15分鐘內恢復信息傳遞,馬上 注冊體驗。

    ASP.NET(C#)

    ASP.NET(C#)代碼示例

    //接口類型:達信通語音通知接口。
    //賬戶注冊:請通過該地址開通賬戶http://sms.wx96.com/register.html
    //注意事項:
    //(1)調試期間,請仔細閱讀接口文檔;
    //(2)請使用APIID(查看APIID請登錄用戶中心->語音通知->帳戶及簽名設置->APIID)及 APIkey來調用接口;
    //(3)該代碼僅供接入達信通語音通知接口參考使用,客戶可根據實際需要自行編寫;
    
    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 = "用戶名";//用戶名是登錄用戶中心->語音通知->帳戶參數設置->APIID
            string password = "密碼";//查看密碼請登錄用戶中心->語音通知->帳戶參數設置->APIKEY
            string mobile = "136xxxxxxxx";//手機號碼
            string content = "您的訂單號是:0648。已由順風快遞發出,請注意查收。";
    		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();
                   //Response.Write(res);
                   int len1 = res.IndexOf("");
                   int len2 = res.IndexOf("");                string code=res.Substring((len2+6),(len1-len2-6));                Response.Write(code);                 int len3 = res.IndexOf("");                int len4 = res.IndexOf("");                string msg=res.Substring((len4+5),(len3-len4-5));                Response.Write(msg);                 Response.End();          }         else         {             //訪問失敗         }     } }  
    在線咨詢
    電話咨詢

    服務熱線:

    4008 808 898

    服務熱線(工作時間):

    4008 808 898

    業務咨詢(非工作時間):

    4008 808 898

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

    4008 808 898

    久久亚洲AV成人出白浆无码国产| 国产精品久久久久国产精品三级| 国内精品久久久久久久久| 91精品久久久久久久久中文字幕 | 国产精品免费看久久久无码 | 伊人丁香狠狠色综合久久| 久久亚洲AV无码精品色午夜| 国产激情久久久久久熟女老人| 无码日韩人妻精品久久| 久久精品国产亚洲av成人| 成人免费网站久久久| 2021最新久久久视精品爱| 久久久久亚洲av无码专区| 久久无码av三级| 香蕉久久夜色精品国产2020| 久久婷婷五夜综合色频| 伊人久久波多野结衣中文字幕| 国内精品久久久久影院亚洲| 久久香综合精品久久伊人| 久久九九有精品国产23百花影院| www.91久久| 国产精品青草久久| 久久久久亚洲AV无码去区首| 久久99国产综合精品| 久久久久久久久久福利| 亚洲成色www久久网站夜月| 中文精品久久久久人妻不卡| 久久精品国产亚洲Aⅴ香蕉| 国产成人久久综合热| 久久爱在线播放视频| 伊人久久亚洲综合影院首页| 久久精品国产四虎| 蜜桃麻豆WWW久久囤产精品| 香蕉久久夜色精品国产小说| 久久天天躁夜夜躁2019| 久久国产精品久久久| 伊人久久综合成人网| 亚洲色婷婷综合久久| 国内精品久久九九国产精品| 一本一道久久综合狠狠老 | 日本久久久久久久中文字幕|