SmsClient

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2018 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DYSMSAPI_ENDPOINT = "http://dysmsapi.aliyuncs.com"
)

DYSMSAPI_ENDPOINT 阿里云短信接口URL前缀

Variables

This section is empty.

Functions

This section is empty.

Types

type Params

type Params struct {
	PhoneNumbers,
	SignName,
	TemplateCode,
	TemplateParam string
}

Params 短信模板参数

type SMSClient

type SMSClient struct {
	// contains filtered or unexported fields
}

SMSClient ...

func NewSMSClient

func NewSMSClient(accessKeyID, secretAccessKey string) (*SMSClient, error)

NewSMSClient ...

func (*SMSClient) SendSMS

func (sc *SMSClient) SendSMS(params Params) (int, string, error)

SendSMS 发送短信

Jump to

Keyboard shortcuts

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