Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gather ¶
type Gather struct {
XMLName xml.Name `xml:"Gather"`
RequestURL string `xml:"requestUrl,attr,omitempty"`
RequestURLTimeout interface{} `xml:"requestUrlTimeout,attr,omitempty"`
TerminatingDigits interface{} `xml:"terminatingDigits,attr,omitempty"`
MaxDigits interface{} `xml:"maxDigits,attr,omitempty"`
InterDigitTimeout interface{} `xml:"interDigitTimeout,attr,omitempty"`
Bargeable interface{} `xml:"bargeable,attr,omitempty"`
}
Gather verb is used to collect digits for some period of time.
type Pause ¶
Pause is a verb to specify the length of seconds to wait before executing the next verb
type PlayAudio ¶
type PlayAudio struct {
XMLName xml.Name `xml:"PlayAudio"`
Digits string `xml:"digits,attr,omitempty"`
URL string `xml:",chardata"`
}
The PlayAudio verb is used to play an audio file in the call
type Record ¶
type Record struct {
XMLName xml.Name `xml:"Record"`
RequestURL string `xml:"requestUrl,attr,omitempty"`
RequestURLTimeout interface{} `xml:"requestUrlTimeout,attr,omitempty"`
TerminatingDigits interface{} `xml:"terminatingDigits,attr,omitempty"`
MaxDuration interface{} `xml:"maxDuration,attr,omitempty"`
Transcribe interface{} `xml:"transcribe,attr,omitempty"`
TranscribeCallbackURL string `xml:"transcribeCallbackUrl,attr,omitempty"`
}
Record verb allow call recording
type Redirect ¶
type Redirect struct {
XMLName xml.Name `xml:"Redirect"`
RequestURL string `xml:"requestUrl,attr,omitempty"`
RequestURLTimeout interface{} `xml:"requestUrlTimeout,attr,omitempty"`
}
Redirect verb is used to redirect the current XML execution to another URL.
type Response ¶
type Response struct {
Verbs []interface{} `xml:"."`
}
Response is response element of BXML
type SendMessage ¶
type SendMessage struct {
XMLName xml.Name `xml:"SendMessage"`
From string `xml:"from,attr,omitempty"`
To string `xml:"to,attr,omitempty"`
RequestURL string `xml:"requestUrl,attr,omitempty"`
RequestURLTimeout interface{} `xml:"requestUrlTimeout,attr,omitempty"`
StatusCallbackURL string `xml:"statusCallbackUrl,attr,omitempty"`
Text string `xml:",chardata"`
}
SendMessage is used to send a text message
type SpeakSentence ¶
type SpeakSentence struct {
XMLName xml.Name `xml:"SpeakSentence"`
Gender interface{} `xml:"gender,attr,omitempty"`
Locale interface{} `xml:"locale,attr,omitempty"`
Voice string `xml:"voice,attr,omitempty"`
Sentence string `xml:",chardata"`
}
The SpeakSentence verb is used to convert any text into speak for the caller
type Transfer ¶
type Transfer struct {
XMLName xml.Name `xml:"Transfer"`
TransferTo string `xml:"transferTo,attr,omitempty"`
TransferCallerID string `xml:"transferCallerId,attr,omitempty"`
RequestURL string `xml:"requestUrl,attr,omitempty"`
RequestURLTimeout interface{} `xml:"requestUrlTimeout,attr,omitempty"`
Tag string `xml:"tag,attr,omitempty"`
CallTimeout interface{} `xml:"callTimeout,attr,omitempty"`
PhoneNumbers []string `xml:"PhoneNumber"`
SpeakSentence *SpeakSentence `xml:",omitempty"`
PlayAudio *PlayAudio `xml:",omitempty"`
Record *Record `xml:",omitempty"`
}
Transfer verb is used to transfer the call to another number.
Click to show internal directories.
Click to hide internal directories.