alibaba

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(accessKeyId string, accessKeySecret string) (*Client, error)

func (Client) Send

func (c Client) Send(req *SmsRequest) error

type SmsRequest

type SmsRequest struct {
	PhoneNumbers  string // 手机号
	SignName      string // 头部名称 // 阿里云短信测试
	TemplateCode  string // 模板代码 // SMS_154950909
	TemplateParam string // 模板参数 // {\"code\":\"1234\"}
}

Jump to

Keyboard shortcuts

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