gtbox_sms

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 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 GTBoxSMS added in v0.0.8

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

func (*GTBoxSMS) SetupSMSConfigWithAli added in v0.0.8

func (aSMS *GTBoxSMS) 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