package
Version:
v0.0.147
Opens a new window with list of versions in this module.
Published: Mar 20, 2019
License: AGPL-3.0
Opens a new window with license information.
Imports: 30
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
NewClientFromChannel creates a new Twilio IVR client for the passed in account and and auth token
type CallRequest struct {
To []Phone `json:"to"`
From Phone `json:"from"`
AnswerURL []string `json:"answer_url"`
AnswerMethod string `json:"answer_method"`
EventURL []string `json:"event_url"`
EventMethod string `json:"event_method"`
}
type CallResponse struct {
UUID string `json:"uuid"`
Status string `json:"status"`
Direction string `json:"direction"`
ConversationUUID string `json:"conversation_uuid"`
}
CallResponse is our struct for a Nexmo call response
{
"uuid": "63f61863-4a51-4f6b-86e1-46edebcf9356",
"status": "started",
"direction": "outbound",
"conversation_uuid": "CON-f972836a-550f-45fa-956c-12a2ab5b7d22"
}
type Hangup struct {
XMLName string `xml:"Hangup"`
}
type Input struct {
Action string `json:"action"`
MaxDigits int `json:"maxDigits,omitempty"`
SubmitOnHash bool `json:"submitOnHash"`
Timeout int `json:"timeOut"`
EventURL []string `json:"eventUrl"`
EventMethod string `json:"eventMethod"`
}
type NCCOInput struct {
DTMF string `json:"dtmf"`
TimedOut bool `json:"timed_out"`
UUID string `json:"uuid"`
ConversationUUID string `json:"conversation_uuid"`
Timestamp string `json:"timestamp"`
}
type Phone struct {
Type string `json:"type"`
Number int `json:"number"`
}
type Record struct {
Action string `json:"action"`
EndOnKey string `json:"endOnKey,omitempty"`
Timeout int `json:"timeOut,omitempty"`
EventURL []string `json:"eventUrl"`
EventMethod string `json:"eventMethod"`
}
type Redirect struct {
XMLName string `xml:"Redirect"`
URL string `xml:",chardata"`
}
type StatusRequest struct {
UUID string `json:"uuid"`
Status string `json:"status"`
Duration string `json:"duration"`
}
type Stream struct {
Action string `json:"action"`
StreamURL []string `json:"streamUrl"`
}
type Talk struct {
Action string `json:"action"`
Text string `json:"text"`
BargeIn bool `json:"bargeIn,omitempty"`
Error string `json:"_error,omitempty"`
Message string `json:"_message,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.