alidayu

package
v0.0.0-...-a619a86 Latest Latest
Warning

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

Go to latest
Published: May 25, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Alidayu_URL        string = "http://gw.api.taobao.com/router/rest"
	Alidayu_SendSMS    string = "alibaba.aliqin.fc.sms.num.send"
	Alidayu_CallTTS    string = "alibaba.aliqin.fc.tts.num.singlecall"
	Alidayu_CallVoice  string = "alibaba.aliqin.fc.voice.num.singlecall"
	Alidayu_CallDouble string = "alibaba.aliqin.fc.voice.num.doublecall"
)

Variables

View Source
var (
	ErrRequired   error = errors.New("AppKey or AppSecret is required!")
	ErrParameters error = errors.New("Parameters are not complete!")
	AppKey        string
	AppSecret     string
)

Functions

This section is empty.

Types

type DayuResp

type DayuResp struct {
	SmsResp   `json:"alibaba_aliqin_fc_sms_num_send_response"`
	ErrorResp `json:"error_response"`
}

func SendSMS

func SendSMS(rec_num, sms_free_sign_name, sms_template_code, sms_param string) (result DayuResp, err error)

type ErrorResp

type ErrorResp struct {
	Code    int
	Msg     string
	SubCode string `json:"sub_code"`
	SubMsg  string `json:"sub_msg"`
}

type Result

type Result struct {
	ErrCode string `json:"err_code"`
	Model   string
	Success bool
}

type SmsResp

type SmsResp struct {
	Result `json:"result"`
}

Jump to

Keyboard shortcuts

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