mitake

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 MitakeQueryResponse added in v1.0.0

type MitakeQueryResponse struct {
	MsgId      string
	StatusCode string
	Error      string
	StatusTime string
	SmsPoint   int8
}

func QuerySMS added in v1.0.0

func QuerySMS(username string, password string, messageId string) (*MitakeQueryResponse, error)

func (*MitakeQueryResponse) Parse added in v1.0.0

func (mqr *MitakeQueryResponse) Parse(body []byte) error

type MitakeResponse added in v1.0.0

type MitakeResponse struct {
	ClientId     string
	MsgId        string
	StatusCode   string
	Error        string
	AccountPoint int32
	Duplicate    string
	SmsPoint     int8
}

func SendSMS

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

func (*MitakeResponse) Parse added in v1.0.0

func (mr *MitakeResponse) Parse(body []byte) error

Jump to

Keyboard shortcuts

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