chuanglan

package module
v0.0.0-...-9041de9 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

README

chuanglan

创蓝接口GO版本SDK

https://www.chuanglan.com/document

国内通知短信

批量提交接口

MsgV1SendJson

示例

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthV1

type AuthV1 struct {
	Origin   string
	Account  string
	Password string
}

type HttpDetail

type HttpDetail struct {
	Request  *http.Request
	Response *http.Response
}

type MsgV1SendJsonReply

type MsgV1SendJsonReply struct {
	Code     string `json:"code"`  // 返回“0”表示提交成功
	MsgID    string `json:"msgId"` // 消息id
	Time     string `json:"time"`  // 响应时间
	ErrorMsg string `json:"errorMsg"`
}

type MsgV1SendJsonRequest

type MsgV1SendJsonRequest struct {
	Msg      string    `eg:"【企业】XX项目30分钟内,连续产生2次退款."`
	Phone    []string  `eg:"[]string{\"13411112222\",\"13488882222\"}"`
	SendTime time.Time `note:"注意传入中国时区的 time.Time"`
	Extend   string
	Report   bool
	UID      string
}

MsgV1SendJson 批量提交接口 https://www.chuanglan.com/document/6110e57909fd9600010209de/6110efa909fd960001020a23

type V1

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

func NewV1

func NewV1(httpClient *http.Client, auth AuthV1) (V1, error)

func (V1) MsgV1SendJson

func (v V1) MsgV1SendJson(ctx context.Context, data MsgV1SendJsonRequest) (httpDetail HttpDetail, reply MsgV1SendJsonReply, err error)

Jump to

Keyboard shortcuts

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