nexmo

package
v0.0.0-...-6fe13d1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2017 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NexmoURL = "https://api.nexmo.com"
	VoiceURL = "/tts/json"
)

Functions

This section is empty.

Types

type Nexmo

type Nexmo struct {
	sync.Mutex
	Url string

	Lg          string
	VoiceGender string
	Repeat      string
	From        string
	To          string
	VoiceMsg    string
	Status_url  string
	Resp        NexmoResponse
	// contains filtered or unexported fields
}

func (*Nexmo) Call

func (this *Nexmo) Call() (error, NexmoResponse)

func (*Nexmo) SetCallBack

func (this *Nexmo) SetCallBack(status_url string)

func (*Nexmo) SetGender

func (this *Nexmo) SetGender(gender string)

func (*Nexmo) SetKeyAndSecret

func (this *Nexmo) SetKeyAndSecret(key, secret string)

func (*Nexmo) SetLanguage

func (this *Nexmo) SetLanguage(lg string)

func (*Nexmo) SetRepeat

func (this *Nexmo) SetRepeat(times string)

func (*Nexmo) SetTo

func (this *Nexmo) SetTo(to string)

func (*Nexmo) SetToChinaZoneCode

func (this *Nexmo) SetToChinaZoneCode(to string)

func (*Nexmo) SetVoiceMsg

func (this *Nexmo) SetVoiceMsg(msg string)

type NexmoResponse

type NexmoResponse struct {
	To         string `json:"to"`
	Call_id    string `json:"call_id"`
	Status     int    `json:"status"`
	Error_text string `json:"error_text"`
}

Jump to

Keyboard shortcuts

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