jsms

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const URL = "https://api.sms.jpush.cn/v1/"

Variables

This section is empty.

Functions

This section is empty.

Types

type Jsms

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

func New

func New(appKey, masterSecret string) *Jsms

func (*Jsms) CheckCode

func (this *Jsms) CheckCode(msg_id, code string) []byte

验证码验证

func (*Jsms) SendCode

func (this *Jsms) SendCode(mobile string, temp_id int) []byte

发送文本验证码短信

func (*Jsms) SendMessage

func (this *Jsms) SendMessage(mobile, tempId string, temp_para map[string]interface{}, time string) []byte

发送单条模板短信、单条定时短信

func (*Jsms) SendVoiceCode

func (this *Jsms) SendVoiceCode(mobile string) []byte

发送语音验证码短信

Jump to

Keyboard shortcuts

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