pswincom

package
v0.0.0-...-425bf4c Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ConfigType string

	URL string
	// contains filtered or unexported fields
}

Config for PSWinCom sms service

func NewConfig

func NewConfig(username string, password string, from string) Config

NewConfig returns a new Config

func (Config) SendNotification

func (c Config) SendNotification(message string, recipient string) error

SendNotification sends msg to recipient as SMS

type Msg

type Msg struct {
	XMLName   xml.Name `xml:"MSG"`
	Text      string   `xml:",chardata"`
	ID        string   `xml:"ID"`
	Message   string   `xml:"TEXT"`
	Sender    string   `xml:"SND"`
	Receiver  string   `xml:"RCV"`
	Operation string   `xml:"OP"`
	Class     string   `xml:"CLASS,omitempty"`
}

type Msglst

type Msglst struct {
	XMLName xml.Name `xml:"MSGLST"`
	Text    string   `xml:",chardata"`
	Msg     Msg      `xml:"MSG"`
}

Jump to

Keyboard shortcuts

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