twsms

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TwsmsQueryResponse added in v1.0.0

type TwsmsQueryResponse struct {
	Code       string `json:"code"`
	Text       string `json:"text"`
	StatusCode string `json:"statuscode"`
	StatusText string `json:"statustext"`
	DoneTime   string `json:"donetime"`
}

func QuerySMS added in v1.0.0

func QuerySMS(username string, password string, mobile string, messageId uint64) (*TwsmsQueryResponse, error)

func (*TwsmsQueryResponse) Parse added in v1.0.0

func (tqr *TwsmsQueryResponse) Parse(data []byte) error

type TwsmsResponse added in v1.0.0

type TwsmsResponse struct {
	Code  string `json:"code"`
	Text  string `json:"text"`
	MsgId uint64 `json:"msgid"`
}

func SendSMS

func SendSMS(username string, password string, mobile string, message string) (*TwsmsResponse, error)

func (*TwsmsResponse) Parse added in v1.0.0

func (tr *TwsmsResponse) Parse(data []byte) error

type TwsmsVoiceQueryResponse added in v1.0.0

type TwsmsVoiceQueryResponse struct {
	MsgId      uint64
	Mobile     string
	Playtime   uint
	TotalPoint uint
	Status     string
	ErrorCode  int
}

func QueryVoice added in v1.0.0

func QueryVoice(username string, password string, messageId uint64) (*TwsmsVoiceQueryResponse, error)

func (*TwsmsVoiceQueryResponse) Parse added in v1.0.0

func (tvr *TwsmsVoiceQueryResponse) Parse(data []byte) error

type TwsmsVoiceResponse added in v1.0.0

type TwsmsVoiceResponse struct {
	MsgId      uint64
	TotalPoint uint
	ErrorCode  int
}

func SendVoice added in v1.0.0

func SendVoice(username string, password string, mobile string, message string) (*TwsmsVoiceResponse, error)

func (*TwsmsVoiceResponse) Parse added in v1.0.0

func (tvr *TwsmsVoiceResponse) Parse(data []byte) error

Jump to

Keyboard shortcuts

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