twilio

package
v1.22.11 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Twilio

type Twilio struct {
	// contains filtered or unexported fields
}

func InitTwilioProvider

func InitTwilioProvider(config TwilioConfig) *Twilio

func (*Twilio) CanHandleMessage

func (t *Twilio) CanHandleMessage(message providers.Message) bool

func (*Twilio) HandleMessage

func (t *Twilio) HandleMessage(message providers.Message) error

type TwilioConfig

type TwilioConfig struct {
	SID   string
	Token string
	From  string
}

type TwilioMessage

type TwilioMessage struct {
	SenderPhoneNumber    string
	RecipientPhoneNumber string
	Content              string
}

func (*TwilioMessage) GetContent

func (msg *TwilioMessage) GetContent() string

Jump to

Keyboard shortcuts

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