twilio_connector

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultAccountSID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
	DefaultAuthToken  = "f2xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
)

Variables

This section is empty.

Functions

func Module

func Module(scope string) fx.Option

Types

type Params

type Params struct {
	fx.In

	Lifecycle fx.Lifecycle
	Logger    *zap.Logger
}

type SendSMSReq

type SendSMSReq struct {
	From string `json:"from"`
	To   string `json:"to"`
	Msg  string `json:"msg"`
}

type TwilioConnector

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

func (*TwilioConnector) GetClient

func (c *TwilioConnector) GetClient() *twilio.RestClient

func (*TwilioConnector) SendSMS

func (c *TwilioConnector) SendSMS(req *SendSMSReq) error

Jump to

Keyboard shortcuts

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