sms

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateClient added in v0.13.0

func CreateClient(accessKeyId, accessKeySecret string) (result *dysmsapi20170525.Client, err error)

CreateClient 创建Client

func SendSms

func SendSms(data RequestSendSmsData) (err error)

SendSms 发送短信

Types

type RequestSendSmsData added in v0.13.0

type RequestSendSmsData struct {
	AccessKeyId     string `json:"access_key_id"`
	AccessKeySecret string `json:"access_key_secret"`
	RegionId        string `json:"region_id,omitempty"`
	PhoneNumbers    string `json:"phone_numbers"`
	SignName        string `json:"sign_name"`
	TemplateCode    string `json:"template_code"`
	TemplateParam   string `json:"template_param"`
}

RequestSendSmsData 请求发送短信数据

Jump to

Keyboard shortcuts

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