package
Version:
v0.0.180
Opens a new window with list of versions in this module.
Published: Apr 11, 2019
License: AGPL-3.0
Opens a new window with license information.
Imports: 26
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
NewClient creates a new Twilio IVR client for the passed in account and and auth token
NewClientFromChannel creates a new Twilio IVR client for the passed in account and and auth token
type CallResponse struct {
SID string `json:"sid"`
Status string `json:"status"`
}
CallResponse is our struct for a Twilio call response
type Gather struct {
XMLName string `xml:"Gather"`
NumDigits int `xml:"numDigits,attr,omitempty"`
FinishOnKey string `xml:"finishOnKey,attr,omitempty"`
Timeout int `xml:"timeout,attr,omitempty"`
Action string `xml:"action,attr,omitempty"`
Commands []interface{} `xml:",innerxml"`
}
type Hangup struct {
XMLName string `xml:"Hangup"`
}
type Play struct {
XMLName string `xml:"Play"`
URL string `xml:",chardata"`
}
type Record struct {
XMLName string `xml:"Record"`
Action string `xml:"action,attr,omitempty"`
MaxLength int `xml:"maxLength,attr,omitempty"`
}
type Redirect struct {
XMLName string `xml:"Redirect"`
URL string `xml:",chardata"`
}
type Response struct {
XMLName string `xml:"Response"`
Message string `xml:",comment"`
Gather *Gather `xml:"Gather"`
Commands []interface{} `xml:",innerxml"`
}
type Say struct {
XMLName string `xml:"Say"`
Text string `xml:",chardata"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.