messaging

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessagingResponse

type MessagingResponse struct {
	XMLName  xml.Name `xml:"Response"`
	Children []interface{}
}

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

func New

func New() *MessagingResponse

New create a new instance of MessagingResponse

func (*MessagingResponse) Message

func (m *MessagingResponse) Message(body *string) *verbs.Message

func (*MessagingResponse) MessageWithAttributes

func (m *MessagingResponse) MessageWithAttributes(attributes verbs.MessageAttributes, body *string) *verbs.Message

func (*MessagingResponse) Redirect

func (m *MessagingResponse) Redirect(url string)

func (*MessagingResponse) RedirectWithAttributes

func (m *MessagingResponse) RedirectWithAttributes(attributes verbs.RedirectAttributes, url string)

func (*MessagingResponse) ToString added in v0.3.0

func (m *MessagingResponse) ToString() (*string, error)

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

func (*MessagingResponse) ToTwiML

func (m *MessagingResponse) 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