twilio

package
v0.5.25 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

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

func NewTwilio

func NewTwilio(options ...Option) *Adapter

func (*Adapter) Provide

func (t *Adapter) Provide(ctx context.Context) any

func (*Adapter) Send

func (t *Adapter) Send(params *sms.Config) error

func (*Adapter) Verify

func (t *Adapter) Verify(phone, code string) error

type Option

type Option func(*Options)

func WithAccountSid

func WithAccountSid(accountSid string) Option

func WithAnalog

func WithAnalog(analog bool) Option

func WithAuthToken

func WithAuthToken(authToken string) Option

func WithEdge

func WithEdge(edge string) Option

func WithRegion

func WithRegion(region string) Option

func WithServiceSid

func WithServiceSid(serviceSid string) Option

type Options

type Options struct {
	Analog     bool
	AccountSid string
	AuthToken  string
	ServiceSid string
	Edge       string
	Region     string
}

Jump to

Keyboard shortcuts

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