Documentation ¶
Index ¶
- type AliYunSMSService
- func (sms *AliYunSMSService) ConfigAuth(regionID, keyID, secret string) (err error)
- func (sms *AliYunSMSService) SendSms(template string, param interface{}, toNum string) (id string, err error)
- func (sms *AliYunSMSService) SendVerifyCode(code, toNum string) (id string, err error)
- func (sms *AliYunSMSService) SetupVerifyCode(signName, template string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliYunSMSService ¶
type AliYunSMSService struct { RegionID string AccessKeyID string AccessSecret string // contains filtered or unexported fields }
AliYunSMSService aliyun sms service
var AliService AliYunSMSService
AliService use aliyun send sms message
func (*AliYunSMSService) ConfigAuth ¶
func (sms *AliYunSMSService) ConfigAuth(regionID, keyID, secret string) (err error)
ConfigAuth alloc new client for sms api
func (*AliYunSMSService) SendSms ¶
func (sms *AliYunSMSService) SendSms(template string, param interface{}, toNum string) (id string, err error)
SendSms send template message 接收短信的手机号码。 格式: 国内短信:11位手机号码,例如15951955195。 国际/港澳台消息:国际区号+号码,例如85200000000。 支持对多个手机号码发送短信,手机号码之间以英文逗号(,)分隔。上限为1000个手机号码。批量调用相对于单条调用及时性稍有延迟。
func (*AliYunSMSService) SendVerifyCode ¶
func (sms *AliYunSMSService) SendVerifyCode(code, toNum string) (id string, err error)
SendVerifyCode send verify code to phone num
func (*AliYunSMSService) SetupVerifyCode ¶
func (sms *AliYunSMSService) SetupVerifyCode(signName, template string)
SetupVerifyCode setup verify code template
Click to show internal directories.
Click to hide internal directories.