Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliyunSmsClient ¶
AliyunSmsClient
func NewAliyunSmsClient ¶
func NewAliyunSmsClient(accessKeyID, accessKeySecret string) *AliyunSmsClient
NewAliyunSmsClient NewAliyunSmsClient
func (*AliyunSmsClient) SendMarket ¶
func (m *AliyunSmsClient) SendMarket(sign, templateId, phone string) (err error)
SendMarket 营销短信
func (*AliyunSmsClient) SendVerifyCode ¶
func (m *AliyunSmsClient) SendVerifyCode(sign, templateID, phone, code string) (err error)
SendVerifyCode 验证码短信
func (*AliyunSmsClient) SetDebug ¶
func (m *AliyunSmsClient) SetDebug(enabled bool)
SetDebug SetDebug
type UpYunMessage ¶
UpYunMessage UpYunMessage
type UpYunResult ¶
type UpYunResult struct {
MessageIDS []*UpYunMessage `json:"message_ids"`
}
UpYunResult 返回信息
type UpYunSmsBody ¶
type UpYunSmsBody struct { Mobile string `json:"mobile"` TemplateID int64 `json:"template_id"` Vars string `json:"vars"` }
UpYunSmsBody 发送模型
type UpYunSmsClient ¶
type UpYunSmsClient struct {
Token string
}
UpYunSmsClient UpYunSmsClient
func NewUpYunSmsClient ¶
func NewUpYunSmsClient(token string) *UpYunSmsClient
Click to show internal directories.
Click to hide internal directories.