aliphone

package
v0.0.0-...-dfd69a5 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "aliphone"
)

内置常亮

Variables

This section is empty.

Functions

func New

func New(setting map[string]string) (sender.Sender, error)

New create a new phone sender

func ProcessMsg

func ProcessMsg(msg string) string

ProcessMsg deals with raw message so that aliyun voice can recognize it

Types

type Sender

type Sender struct {
	AccessKeyID   string
	AccessSecret  string
	ServiceNumber string
	TtsCode       string
}

Sender is a phone sender, which will call the mobile

func (*Sender) Send

func (sender *Sender) Send(title, message, from string, phones []string) (int, error)

Send will call the mobile by phone number message is mandatory title, url, btnTxt, from are ignored

Jump to

Keyboard shortcuts

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