sms

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AliSMS

func AliSMS(phone, sign, code, param string) error

AliSMS ("1367898765456", "xurw", "SMS_193245985", "{\"code\":\"8976\"}") need config:

"sms": {
		"domain": "xxx",
		"version": "xxx",
		"apiName": "xxx",
		"accessKey": "xxx",
		"accessSecret": "xxx",
		"zoneID": "xxx"
  },

func AliSMSWithExtend added in v1.0.7

func AliSMSWithExtend(phone, sign, code, param string, extendFields map[string]string) error

扩充 SmsUpExtendCode(上行短信扩展码字段)

func AwsSMS

func AwsSMS(phone, sign, message string) error

AwsSMS send sms by aws phone 8613567876789 need config:

"sms": {
		"sign": "xxx",
		"accessKey": "xxx",
		"accessSecret": "xxx",
		"region": "xxx"
  },

func ParseAliSMSSendERR

func ParseAliSMSSendERR(err error) (code string)

ParseAliSMSSendERR parse error code

Types

type SMSERRObj

type SMSERRObj struct {
	Code       string `json:"code"`
	TemplateID string `json:"templateID"`
	Phone      string `json:"phone"`
	SendOn     string `json:"sendOn"`
}

func FetchSMSSendResult

func FetchSMSSendResult(phone string) (errSMS []SMSERRObj, err error)

Jump to

Keyboard shortcuts

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