tmc

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

消息服务API

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlibabaLsyMiniappMsgPush

AlibabaLsyMiniappMsgPush

零售云小程序消息推送 alibaba.lsy.miniapp.msg.push

零售云小程序消息推送,推送消息至零售云(喵零等)

func AlipayXiaodaiUserPermit

AlipayXiaodaiUserPermit

阿里金融用户授权 alipay.xiaodai.user.permit

阿里金融为用户开通消息通道接口

func TaobaoIstoreGiftingMessageGet

TaobaoIstoreGiftingMessageGet

gifting消息获取 taobao.istore.gifting.message.get

该api通过参数查询对应的gifting消息

func TaobaoTmcGroupAdd

func TaobaoTmcGroupAdd(clt *core.SDKClient, req *tmc.TaobaoTmcGroupAddAPIRequest, session string) (*tmc.TaobaoTmcGroupAddAPIResponse, error)
TaobaoTmcGroupAdd

为已开通用户添加用户分组 taobao.tmc.group.add

为已开通用户添加用户分组,授权消息使用

func TaobaoTmcGroupDelete

TaobaoTmcGroupDelete

删除指定的分组或分组下的用户 taobao.tmc.group.delete

删除指定的分组或分组下的用户,授权消息使用

func TaobaoTmcGroupsGet

func TaobaoTmcGroupsGet(clt *core.SDKClient, req *tmc.TaobaoTmcGroupsGetAPIRequest, session string) (*tmc.TaobaoTmcGroupsGetAPIResponse, error)
TaobaoTmcGroupsGet

获取自定义用户分组列表 taobao.tmc.groups.get

获取自定义用户分组列表

func TaobaoTmcMessageProduce

TaobaoTmcMessageProduce

发布单条消息 taobao.tmc.message.produce

发布单条消息

func TaobaoTmcMessagesConfirm

TaobaoTmcMessagesConfirm

确认消费消息的状态 taobao.tmc.messages.confirm

确认消费消息的状态

func TaobaoTmcMessagesConsume

TaobaoTmcMessagesConsume

消费多条消息 taobao.tmc.messages.consume

消费多条消息。消费时如果没有返回消息,建议做控制,不要一直调api,浪费应用的流量。如对程序做好优化,若没有消息则,sleep 100ms 等。

func TaobaoTmcMessagesProduce

TaobaoTmcMessagesProduce

批量发送消息 taobao.tmc.messages.produce

批量发送消息

func TaobaoTmcMsgSendrecord

TaobaoTmcMsgSendrecord

消息发送记录查询 taobao.tmc.msg.sendrecord

查询单条消息发送记录,只返回返回条数和时间。

func TaobaoTmcQueueGet

func TaobaoTmcQueueGet(clt *core.SDKClient, req *tmc.TaobaoTmcQueueGetAPIRequest, session string) (*tmc.TaobaoTmcQueueGetAPIResponse, error)
TaobaoTmcQueueGet

获取消息队列积压情况 taobao.tmc.queue.get

根据appkey和groupName获取消息队列积压情况

func TaobaoTmcTopicGroupAdd

TaobaoTmcTopicGroupAdd

topic分组路由 taobao.tmc.topic.group.add

根据topic名称路由消息到不同的分组。(前提:发送方未指定分组名) 如果是需要授权的消息,分组路由先判断用户分组路由(使用taobao.tmc.group.add添加的路由),用户分组路由不存在时,才会判断topic分组路由

func TaobaoTmcTopicGroupDelete

TaobaoTmcTopicGroupDelete

删除消息topic分组路由 taobao.tmc.topic.group.delete

删除根据topic名称路由消息到不同的分组关系

func TaobaoTmcUserCancel

TaobaoTmcUserCancel

取消用户的消息服务 taobao.tmc.user.cancel

取消用户的消息服务

func TaobaoTmcUserGet

func TaobaoTmcUserGet(clt *core.SDKClient, req *tmc.TaobaoTmcUserGetAPIRequest, session string) (*tmc.TaobaoTmcUserGetAPIResponse, error)
TaobaoTmcUserGet

获取用户已开通消息 taobao.tmc.user.get

查询指定用户开通的消息通道和组

func TaobaoTmcUserPermit

TaobaoTmcUserPermit

为已授权的用户开通消息服务 taobao.tmc.user.permit

为已授权的用户开通消息服务,授权消息使用。<br/><span style="color:red">注意:topic覆盖更新,务必传入全量topic,或者不传topics,使用appkey订阅的所有topic</span>

func TaobaoTmcUserTopicsGet

TaobaoTmcUserTopicsGet

获取用户开通的topic列表 taobao.tmc.user.topics.get

获取用户开通的topic列表,授权消息使用

Types

This section is empty.

Jump to

Keyboard shortcuts

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