sms

package
v0.0.0-...-3b54ddd Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HostAliSms = "http://dysmsapi.aliyuncs.com"
	ApiAliSms  = ""
)
View Source
const ApiHost_Huyi = "http://106.ihuyi.com/webservice/sms.php"
View Source
const Apidaiyi = "http://api.daiyicloud.com/asmx/smsservice.aspx"

Variables

This section is empty.

Functions

This section is empty.

Types

type Ali

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

func NewAli

func NewAli(apiKey, apiSecret string) *Ali

func (*Ali) Send

func (a *Ali) Send(tplCode string, signName string, phones string, data map[string]string) error

发送短信 phones 支持以逗号,分割的多个手机号码

func (*Ali) Sign

func (a *Ali) Sign(kv util.OrderKV) (sign string, err error)

POP签名

type Daiyi

type Daiyi struct {
	Name string
	Pwd  string
}

func NewDaiyi

func NewDaiyi(name, pwd string) *Daiyi

func (*Daiyi) Send

func (p *Daiyi) Send(mobile string, content, sign string) (err error)

type HuyiSms

type HuyiSms struct {
	ApiId  string
	ApiKey string
}

func NewHuyiSms

func NewHuyiSms(ApiId, ApiKey string) *HuyiSms

func (*HuyiSms) Send

func (p *HuyiSms) Send(phone, content string) (err error)

Jump to

Keyboard shortcuts

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