微信掃一掃
認證、簽名模板審核結果通知
賬號短信余額不足提醒
平臺促銷活動及最新資訊
秒賽為開發者提供了詳細的API文檔和代碼示例,幫助開發者快速接入短信平臺
package
main
import
(
"net/http"
"io/ioutil"
"net/url"
"fmt"
)
func main(){
//賬號
account :=
"***************"
//密碼
pswd :=
"***************"
// 修改為您要發送的手機號碼,多個號碼用逗號隔開
mobile :=
"***************"
//短信內容
contentyzm :=
"【秒賽科技】您的驗證碼是:1234"
// 發送url,請咨詢客服
url_send :=
"xxxxxxxxxxxxxxxxxxx"
;
data_send := url.Values{
"account"
: {account},
"pswd"
: {pswd},
"mobile"
: {mobile},
"msg"
:{msg},
"needstatus"
:
"true"
}
httpsPostForm(url_send,data_send)
}
func httpsPostForm(url string,data url.Values) {
resp, err := http.PostForm(url,data)
if
err != nil {
// handle error
}
defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body)
if
err != nil {
// handle error
}
fmt.Println(string(body))
}
認證、簽名模板審核結果通知
賬號短信余額不足提醒
平臺促銷活動及最新資訊