turbosms

package
v0.0.0-...-e1b3a39 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Request

func Request(c *http.Client, url string, payload []byte) ([]byte, error, int)

func SoapDecode

func SoapDecode(data []byte, contents interface{}) error

func SoapEncode

func SoapEncode(contents interface{}) ([]byte, error)

Types

type Config

type Config struct {
	Alogin    string `yaml:"login"`
	Apassword string `yaml:"password"`
}

sachet section.

type SoapBody

type SoapBody struct {
	Contents []byte `xml:",innerxml"`
}

type SoapEnvelopeReqest

type SoapEnvelopeReqest struct {
	XMLName struct{} `xml:"SOAP-ENV:Envelope"`
	Id1     string   `xml:"xmlns:SOAP-ENV,attr"`
	Id2     string   `xml:"xmlns:ns1,attr"`
	Body    SoapBody `xml:"SOAP-ENV:Body"`
}

type SoapEnvelopeResponse

type SoapEnvelopeResponse struct {
	XMLName struct{} `xml:"Envelope"`
	Id1     string   `xml:"xmlns:SOAP-ENV,attr"`
	Id2     string   `xml:"xmlns:ns1,attr"`
	Body    SoapBody
}

type Turbosms

type Turbosms struct {
	Login    string
	Password string
}

func NewTurbosms

func NewTurbosms(config Config) *Turbosms

func (*Turbosms) Send

func (c *Turbosms) Send(message sachet.Message) (err error)

Jump to

Keyboard shortcuts

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