twilio

package
v0.0.0-...-2754675 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ServiceName = "twilio"

Variables

This section is empty.

Functions

func NewSMSDeliveryService

func NewSMSDeliveryService(config interface{}) pnv10n.SMSDeliveryService

Types

type Config

type Config struct {
	AccountSID string `env:"ACCOUNT_SID,required"`
	AuthToken  string `env:"AUTH_TOKEN,required"`
	Sender     string `env:"NUMBER,required"`
}

func ConfigSkeleton

func ConfigSkeleton() Config

type SMSDeliveryService

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

func (*SMSDeliveryService) SendTextMessage

func (sms *SMSDeliveryService) SendTextMessage(recipient, text string) error

SendTextMessage is use for send text message using sms delivery service

Jump to

Keyboard shortcuts

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