Documentation ¶
Index ¶
- type AliSmsClient
- func (m *AliSmsClient) SendMarket(sign, templateId, phone string) (err error)
- func (m *AliSmsClient) SendNotice(sign, templateId, phone string, templateParam string) (err error)
- func (m *AliSmsClient) SendVerifyCode(sign, templateID, phone, code string) (err error)
- func (m *AliSmsClient) SetDebug(enabled bool)
- type UpYunMessage
- type UpYunResult
- type UpYunSmsBody
- type UpYunSmsClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliSmsClient ¶
AliSmsClient
func NewAliSmsClient ¶
func NewAliSmsClient(accessKeyID, accessKeySecret string) *AliSmsClient
NewAliSmsClient return AliSmsClient
func (*AliSmsClient) SendMarket ¶
func (m *AliSmsClient) SendMarket(sign, templateId, phone string) (err error)
SendMarket 营销短信
func (*AliSmsClient) SendNotice ¶ added in v0.1.0
func (m *AliSmsClient) SendNotice(sign, templateId, phone string, templateParam string) (err error)
SendNotice 发送通知短信
func (*AliSmsClient) SendVerifyCode ¶
func (m *AliSmsClient) SendVerifyCode(sign, templateID, phone, code string) (err error)
SendVerifyCode 验证码短信
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
NewUpYunSmsClient 返回一个新的client
func (*UpYunSmsClient) SendVerifyCode ¶ added in v0.1.0
func (m *UpYunSmsClient) SendVerifyCode(mobile string, templateId int64, code string) (err error)
SendVerifyCode 发送验证码短信
templateId = 模板ID
Click to show internal directories.
Click to hide internal directories.