Documentation ¶
Index ¶
- type MessagingResponse
- func (m *MessagingResponse) Message(body *string) *verbs.Message
- func (m *MessagingResponse) MessageWithAttributes(attributes verbs.MessageAttributes, body *string) *verbs.Message
- func (m *MessagingResponse) Redirect(url string)
- func (m *MessagingResponse) RedirectWithAttributes(attributes verbs.RedirectAttributes, url string)
- func (m *MessagingResponse) ToString() (*string, error)
- func (m *MessagingResponse) ToTwiML() (*string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessagingResponse ¶
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 (*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
Click to show internal directories.
Click to hide internal directories.