sms

package
v0.10.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAssessKey

func WithAssessKey(accessKeyId string, accessKeySecret string) option

func WithConnectTimeout

func WithConnectTimeout(connectTimeout int) option

func WithPhone added in v0.4.4

func WithPhone(phone string) option

func WithSignName

func WithSignName(signName string) option

func WithTemplateCode

func WithTemplateCode(templateCode string) option

func WithTemplateParam

func WithTemplateParam(templateParam string) option

Types

type SendResult added in v0.4.4

type SendResult struct {
	*dysmsapi20170525.SendSmsResponse
}

type Sms

type Sms struct {
	alibaba.Alibaba
	Sms struct {
		SignName       string // 短信签名名称
		TemplateCode   string // 短信模板ID
		TemplateParam  string // 短信模板变量对应的实际值,JSON格式
		ConnectTimeout int    // 连接超时时间
	}
	// contains filtered or unexported fields
}

func NewSms

func NewSms(options ...option) *Sms

func (*Sms) CreateClient

func (s *Sms) CreateClient() error

func (*Sms) Ok added in v0.4.4

func (s *Sms) Ok() bool

func (*Sms) Send

func (s *Sms) Send() error

Send 发送短信

func (*Sms) SendResult added in v0.4.4

func (s *Sms) SendResult() *SendResult

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL