msgamp

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

消息amp通道 model

https://open.taobao.com/API.htm?docId=50611&docType=2

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SendMessageReq

type SendMessageReq struct {
	// 接受者ID,如果是群,则是群ID。如果是用户,则是uid。
	TargetId string `json:"target_id,omitempty" xml:"target_id,omitempty"`
	// 选用的模板ID
	TemplateInstanceId string `json:"template_instance_id,omitempty" xml:"template_instance_id,omitempty"`
	// 模板渲染参数
	TemplateData string `json:"template_data,omitempty" xml:"template_data,omitempty"`
	// 跳转的目标链接参数,如:page=xxxx
	ActionUrlParams string `json:"action_url_params,omitempty" xml:"action_url_params,omitempty"`
}

SendMessageReq

type TaobaoMessageSendAPIResponse

type TaobaoMessageSendAPIResponse struct {
	model.CommonResponse
	TaobaoMessageSendResponse
}

消息发送 API返回值 taobao.message.send

消息发送接口

type TaobaoMessageSendRequest

type TaobaoMessageSendRequest struct {
	model.Params
	// contains filtered or unexported fields
}

消息发送 API请求 taobao.message.send

消息发送接口

func NewTaobaoMessageSendRequest

func NewTaobaoMessageSendRequest() *TaobaoMessageSendRequest

初始化TaobaoMessageSendRequest对象

func (TaobaoMessageSendRequest) GetApiMethodName

func (r TaobaoMessageSendRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoMessageSendRequest) GetApiParams

func (r TaobaoMessageSendRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TaobaoMessageSendRequest) GetSendMessageReq

func (r TaobaoMessageSendRequest) GetSendMessageReq() *SendMessageReq

SendMessageReq Getter

func (*TaobaoMessageSendRequest) SetSendMessageReq

func (r *TaobaoMessageSendRequest) SetSendMessageReq(sendMessageReq *SendMessageReq) error

SendMessageReq Setter 消息发送相关参数

type TaobaoMessageSendResponse

type TaobaoMessageSendResponse struct {
	XMLName xml.Name `xml:"message_send_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
	// 返回值
	Model string `json:"model,omitempty" xml:"model,omitempty"`
	// 错误信息
	MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"`
	// 错误码
	MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"`
}

消息发送 成功返回结果

Jump to

Keyboard shortcuts

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