voice

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VoiceResponse

type VoiceResponse struct {
	XMLName xml.Name `xml:"Response"`

	Children []interface{}
}

VoiceResponse provides the structure and functions for generation TwiML that can be used on Programmable Voice. See https://www.twilio.com/docs/voice/twiml for more details

func New

func New() *VoiceResponse

New create a new instance of VoiceResponse

func (*VoiceResponse) Connect

func (v *VoiceResponse) Connect() *verbs.Connect

func (*VoiceResponse) ConnectWithAttributes

func (v *VoiceResponse) ConnectWithAttributes(attributes verbs.ConnectAttributes) *verbs.Connect

func (*VoiceResponse) Dial

func (v *VoiceResponse) Dial(phoneNumber *string) *verbs.Dial

func (*VoiceResponse) DialWithAttributes

func (v *VoiceResponse) DialWithAttributes(attributes verbs.DialAttributes, phoneNumber *string) *verbs.Dial

func (*VoiceResponse) Enqueue

func (v *VoiceResponse) Enqueue(name *string) *verbs.Enqueue

func (*VoiceResponse) EnqueueWithAttributes

func (v *VoiceResponse) EnqueueWithAttributes(attributes verbs.EnqueueAttributes, name *string) *verbs.Enqueue

func (*VoiceResponse) Gather

func (v *VoiceResponse) Gather() *verbs.Gather

func (*VoiceResponse) GatherWithAttributes

func (v *VoiceResponse) GatherWithAttributes(attributes verbs.GatherAttributes) *verbs.Gather

func (*VoiceResponse) Hangup

func (v *VoiceResponse) Hangup()

func (*VoiceResponse) Leave

func (v *VoiceResponse) Leave()

func (*VoiceResponse) Pause

func (v *VoiceResponse) Pause()

func (*VoiceResponse) PauseWithAttributes

func (v *VoiceResponse) PauseWithAttributes(attributes verbs.PauseAttributes)

func (*VoiceResponse) Pay

func (v *VoiceResponse) Pay() *verbs.Pay

func (*VoiceResponse) PayWithAttributes

func (v *VoiceResponse) PayWithAttributes(attributes verbs.PayAttributes) *verbs.Pay

func (*VoiceResponse) Play

func (v *VoiceResponse) Play(url *string)

func (*VoiceResponse) PlayWithAttributes

func (v *VoiceResponse) PlayWithAttributes(attributes verbs.PlayAttributes, url *string)

func (*VoiceResponse) Prompt

func (v *VoiceResponse) Prompt() *verbs.Prompt

func (*VoiceResponse) PromptWithAttributes

func (v *VoiceResponse) PromptWithAttributes(attributes verbs.PromptAttributes) *verbs.Prompt

func (*VoiceResponse) Queue

func (v *VoiceResponse) Queue(name string)

func (*VoiceResponse) QueueWithAttributes

func (v *VoiceResponse) QueueWithAttributes(attributes nouns.QueueAttributes, name string)

func (*VoiceResponse) Record

func (v *VoiceResponse) Record()

func (*VoiceResponse) RecordWithAttributes

func (v *VoiceResponse) RecordWithAttributes(attributes verbs.RecordAttributes)

func (*VoiceResponse) Redirect

func (v *VoiceResponse) Redirect(url string)

func (*VoiceResponse) RedirectWithAttributes

func (v *VoiceResponse) RedirectWithAttributes(attributes verbs.RedirectAttributes, url string)

func (*VoiceResponse) Refer

func (v *VoiceResponse) Refer() *verbs.Refer

func (*VoiceResponse) ReferWithAttributes

func (v *VoiceResponse) ReferWithAttributes(attributes verbs.ReferAttributes) *verbs.Refer

func (*VoiceResponse) Reject

func (v *VoiceResponse) Reject()

func (*VoiceResponse) RejectWithAttributes

func (v *VoiceResponse) RejectWithAttributes(attributes verbs.RejectAttributes)

func (*VoiceResponse) Say

func (v *VoiceResponse) Say(message string)

func (*VoiceResponse) SayWithAttributes

func (v *VoiceResponse) SayWithAttributes(attributes verbs.SayAttributes, message string)

func (*VoiceResponse) Sms

func (v *VoiceResponse) Sms(message string)

func (*VoiceResponse) SmsWithAttributes

func (v *VoiceResponse) SmsWithAttributes(attributes verbs.SmsAttributes, message string)

func (*VoiceResponse) Start

func (v *VoiceResponse) Start() *verbs.Start

func (*VoiceResponse) StartWithAttributes

func (v *VoiceResponse) StartWithAttributes(attributes verbs.StartAttributes) *verbs.Start

func (*VoiceResponse) Stop

func (v *VoiceResponse) Stop() *verbs.Stop

func (*VoiceResponse) StopWithAttributes

func (v *VoiceResponse) StopWithAttributes(attributes verbs.StopAttributes) *verbs.Stop

func (*VoiceResponse) ToString added in v0.3.0

func (v *VoiceResponse) ToString() (*string, error)

ToString generates the TwiML string or returns an error if the response cannot be marshalled

func (*VoiceResponse) ToTwiML

func (v *VoiceResponse) ToTwiML() (*string, error)

ToTwiML generates the TwiML string or returns an error if the response cannot be marshalled

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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