gtbox_sms

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GTCreateClient

func GTCreateClient(accessKeyId *string, accessKeySecret *string) (_result *dysmsapi20170525.Client, _err error)

*

  • 使用AK&SK初始化账号Client
  • @param accessKeyId
  • @param accessKeySecret
  • @return Client
  • @throws Exception

func GTSendSMS

func GTSendSMS(phone string, msgCode string) error

Types

type GTGoSMS

type GTGoSMS struct {
	SMSToolsAliYunAccessKeyId     string
	SMSToolsAliYunAccessKeySecret string
	SMSToolsAliYunTemplateCode    string
	SMSToolsAliYunSignName        string
}
var (
	SMSTool *GTGoSMS
)

func (*GTGoSMS) SetupSMSConfigWithAli

func (aSMS *GTGoSMS) SetupSMSConfigWithAli(accessKeyId string, accessKeySecret string, templateCode string, signName string)

SetupSMSConfigWithAli 初始化阿里云 accessKeyId accessKeySecret templateCode:短信模版 signName 签名

Jump to

Keyboard shortcuts

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