激情婷婷色丁香激情五月,欧美熟妇人妻xxxxx,67194操女人的浪逼,肏熟女东亚老人肏逼免费

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

GO

GO代碼示例

//接口類型:達(dá)信通語(yǔ)音通知接口。
//賬戶注冊(cè):請(qǐng)通過(guò)該地址開(kāi)通賬戶http://sms.wx96.com/register.html
//注意事項(xiàng):
//(1)調(diào)試期間,請(qǐng)仔細(xì)閱讀接口文檔;
//(2)請(qǐng)使用APIID(查看APIID請(qǐng)登錄用戶中心->語(yǔ)音通知->帳戶及簽名設(shè)置->APIID)及 APIkey來(lái)調(diào)用接口;
//(3)該代碼僅供接入達(dá)信通語(yǔ)音通知接口參考使用,客戶可根據(jù)實(shí)際需要自行編寫(xiě);

package main

import (
	"crypto/md5"
	"encoding/hex"
	"fmt"
	"io/ioutil"
	"net/http"
	"net/url"
	"strconv"
	"strings"
	"time"
)

func GetMd5String(s string) string {
	h := md5.New()
	h.Write([]byte(s))
	return hex.EncodeToString(h.Sum(nil))
}
func main() {
	v := url.Values{}
	_now := strconv.FormatInt(time.Now().Unix(), 10)
	//fmt.Printf(_now)
	_account := "用戶名" //用戶名是登錄用戶中心->語(yǔ)音通知>帳戶參數(shù)設(shè)置->APIID
	_password := "密碼" //查看密碼請(qǐng)登錄用戶中心->語(yǔ)音通知>帳戶參數(shù)設(shè)置->APIKEY
	_mobile := "136xxxxxxxx"
	_content := "您的訂單號(hào)是:0648。已由順風(fēng)快遞發(fā)出,請(qǐng)注意查收。"
	v.Set("account", _account)
	v.Set("password", GetMd5String(_account+_password+_mobile+_content+_now))
	v.Set("mobile", _mobile)
	v.Set("content", _content)
	v.Set("time", _now)
	body := ioutil.NopCloser(strings.NewReader(v.Encode())) //把form數(shù)據(jù)編下碼
	client := &http.Client{}
	req, _ := http.NewRequest("POST", "http://api.vm.wx96.com/webservice/voice.php?method=Submit&format=json", body)

	req.Header.Set("Content-Type", "application/x-www-form-urlencoded; param=value")
	//fmt.Printf("%+v\n", req) //看下發(fā)送的結(jié)構(gòu)

	resp, err := client.Do(req) //發(fā)送
	defer resp.Body.Close()     //一定要關(guān)閉resp.Body
	data, _ := ioutil.ReadAll(resp.Body)
	fmt.Println(string(data), err)
}

在線咨詢
電話咨詢

服務(wù)熱線:

4008 808 898

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

4008 808 898

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

4008 808 898

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

4008 808 898