短信rpc
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
455 B

package smsrpc
import (
"testing"
)
func Test_SendTencentSms(t *testing.T) {
secretId := "AKIDGQL0OVLuKTMyKPDk11kCOJyMSHqY0C7l"
secretKey := "OWOzJM9mGbiaBVYKp30g5C2cvwg9LHwK"
smsAppId := "1400536841"
signname := "优品猫"
templateId := "1166786"
mobiles := []string{"18607565510"}
params := []string{"290901", "10"}
ret, err := SendTencentSms(secretId, secretKey, smsAppId, signname, templateId, mobiles, params)
t.Log(ret)
t.Log(err)
}