chuanglan

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Callback

type Callback struct {
	MsgID      string `json:"msgId"`
	Mobile     string `json:"mobile"`
	Status     string `json:"status"`
	Desc       string `json:"statusDesc"`
	NotifyTime string `json:"notifyTime"`
	ReportTime string `json:"reportTime"`
	Length     string `json:"length"`
}

Callback .

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client .

func NewClient

func NewClient(c *conf.Config) *Client

NewClient new ChuangLan

func (*Client) Callback

func (v *Client) Callback(ctx context.Context, account, pwd, url string, count int) (callbacks []*Callback, err error)

Callback sms callbacks.

func (*Client) CallbackInternational

func (v *Client) CallbackInternational(ctx context.Context, count int) (callbacks []*Callback, err error)

CallbackInternational sms callbacks.

func (*Client) GetPid

func (v *Client) GetPid() int32

GetPid get pid

func (*Client) SendActSms

func (v *Client) SendActSms(ctx context.Context, r *smsmdl.ModelSend) (msgid string, err error)

SendActSms send act sms

func (*Client) SendBatchActSms

func (v *Client) SendBatchActSms(ctx context.Context, r *smsmdl.ModelSend) (msgid string, err error)

SendBatchActSms send batch act sms

func (*Client) SendInternationalSms

func (v *Client) SendInternationalSms(ctx context.Context, r *smsmdl.ModelSend) (msgid string, err error)

SendInternationalSms send international sms

func (*Client) SendSms

func (v *Client) SendSms(ctx context.Context, r *smsmdl.ModelSend) (msgid string, err error)

SendSms send sms

Jump to

Keyboard shortcuts

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