nexmo

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: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ServiceName = "nexmo"

Variables

This section is empty.

Functions

func NewSMSDeliveryService

func NewSMSDeliveryService(config interface{}) pnv10n.SMSDeliveryService

Types

type Config

type Config struct {
	APIKey    string `env:"API_KEY,required"`
	APISecret string `env:"API_SECRET,required"`
	Number    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

Jump to

Keyboard shortcuts

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