sms

package
v0.0.0-...-d54e58f Latest Latest
Warning

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

Go to latest
Published: Mar 9, 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 CancelMessage

type CancelMessage struct {
	MessageId string `json:"message_id"`
}

type Client

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

func NewClient

func NewClient() *Client

func (*Client) CreateSignature

func (c *Client) CreateSignature(data map[string]string) string

func (*Client) Execute

func (c *Client) Execute(request *Request) (string, error)

func (*Client) SetAppId

func (c *Client) SetAppId(appId string) *Client

func (*Client) SetSecretKey

func (c *Client) SetSecretKey(secretKey string) *Client

func (*Client) SetSignType

func (c *Client) SetSignType(signType string) *Client

func (*Client) SetTimestamp

func (c *Client) SetTimestamp(timestamp int64) *Client

func (*Client) SetVersion

func (c *Client) SetVersion(version string) *Client

type PlainMessage

type PlainMessage struct {
	Mobile   []string `json:"mobile"`
	Body     string   `json:"body"`
	SendTime string   `json:"send_time"`
}

type Request

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

func NewRequest

func NewRequest() *Request

func (*Request) GetBizContent

func (r *Request) GetBizContent() string

func (*Request) GetMethod

func (r *Request) GetMethod() string

func (*Request) SetBizContent

func (r *Request) SetBizContent(bizContent interface{}) *Request

func (*Request) SetMethod

func (r *Request) SetMethod(method string) *Request

type TemplateMessage

type TemplateMessage struct {
	Mobile     []string               `json:"mobile"`
	Type       int64                  `json:"type"`
	Sign       string                 `json:"sign"`
	TemplateId string                 `json:"template_id"`
	SendTime   string                 `json:"send_time"`
	Params     map[string]interface{} `json:"params"`
}

Jump to

Keyboard shortcuts

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