短信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

  1. package smsrpc
  2. import (
  3. "testing"
  4. )
  5. func Test_SendTencentSms(t *testing.T) {
  6. secretId := "AKIDGQL0OVLuKTMyKPDk11kCOJyMSHqY0C7l"
  7. secretKey := "OWOzJM9mGbiaBVYKp30g5C2cvwg9LHwK"
  8. smsAppId := "1400536841"
  9. signname := "优品猫"
  10. templateId := "1166786"
  11. mobiles := []string{"18607565510"}
  12. params := []string{"290901", "10"}
  13. ret, err := SendTencentSms(secretId, secretKey, smsAppId, signname, templateId, mobiles, params)
  14. t.Log(ret)
  15. t.Log(err)
  16. }