Documentation ¶
Overview ¶
消息服务API
Index ¶
- func AlibabaLsyMiniappMsgPush(clt *core.SDKClient, req *tmc.AlibabaLsyMiniappMsgPushAPIRequest, ...) (*tmc.AlibabaLsyMiniappMsgPushAPIResponse, error)
- func AlipayXiaodaiUserPermit(clt *core.SDKClient, req *tmc.AlipayXiaodaiUserPermitAPIRequest, ...) (*tmc.AlipayXiaodaiUserPermitAPIResponse, error)
- func TaobaoIstoreGiftingMessageGet(clt *core.SDKClient, req *tmc.TaobaoIstoreGiftingMessageGetAPIRequest, ...) (*tmc.TaobaoIstoreGiftingMessageGetAPIResponse, error)
- func TaobaoTmcGroupAdd(clt *core.SDKClient, req *tmc.TaobaoTmcGroupAddAPIRequest, session string) (*tmc.TaobaoTmcGroupAddAPIResponse, error)
- func TaobaoTmcGroupDelete(clt *core.SDKClient, req *tmc.TaobaoTmcGroupDeleteAPIRequest, session string) (*tmc.TaobaoTmcGroupDeleteAPIResponse, error)
- func TaobaoTmcGroupsGet(clt *core.SDKClient, req *tmc.TaobaoTmcGroupsGetAPIRequest, session string) (*tmc.TaobaoTmcGroupsGetAPIResponse, error)
- func TaobaoTmcMessageProduce(clt *core.SDKClient, req *tmc.TaobaoTmcMessageProduceAPIRequest, ...) (*tmc.TaobaoTmcMessageProduceAPIResponse, error)
- func TaobaoTmcMessagesConfirm(clt *core.SDKClient, req *tmc.TaobaoTmcMessagesConfirmAPIRequest, ...) (*tmc.TaobaoTmcMessagesConfirmAPIResponse, error)
- func TaobaoTmcMessagesConsume(clt *core.SDKClient, req *tmc.TaobaoTmcMessagesConsumeAPIRequest, ...) (*tmc.TaobaoTmcMessagesConsumeAPIResponse, error)
- func TaobaoTmcMessagesProduce(clt *core.SDKClient, req *tmc.TaobaoTmcMessagesProduceAPIRequest, ...) (*tmc.TaobaoTmcMessagesProduceAPIResponse, error)
- func TaobaoTmcMsgSendrecord(clt *core.SDKClient, req *tmc.TaobaoTmcMsgSendrecordAPIRequest, session string) (*tmc.TaobaoTmcMsgSendrecordAPIResponse, error)
- func TaobaoTmcQueueGet(clt *core.SDKClient, req *tmc.TaobaoTmcQueueGetAPIRequest, session string) (*tmc.TaobaoTmcQueueGetAPIResponse, error)
- func TaobaoTmcTopicGroupAdd(clt *core.SDKClient, req *tmc.TaobaoTmcTopicGroupAddAPIRequest, session string) (*tmc.TaobaoTmcTopicGroupAddAPIResponse, error)
- func TaobaoTmcTopicGroupDelete(clt *core.SDKClient, req *tmc.TaobaoTmcTopicGroupDeleteAPIRequest, ...) (*tmc.TaobaoTmcTopicGroupDeleteAPIResponse, error)
- func TaobaoTmcUserCancel(clt *core.SDKClient, req *tmc.TaobaoTmcUserCancelAPIRequest, session string) (*tmc.TaobaoTmcUserCancelAPIResponse, error)
- func TaobaoTmcUserGet(clt *core.SDKClient, req *tmc.TaobaoTmcUserGetAPIRequest, session string) (*tmc.TaobaoTmcUserGetAPIResponse, error)
- func TaobaoTmcUserPermit(clt *core.SDKClient, req *tmc.TaobaoTmcUserPermitAPIRequest, session string) (*tmc.TaobaoTmcUserPermitAPIResponse, error)
- func TaobaoTmcUserTopicsGet(clt *core.SDKClient, req *tmc.TaobaoTmcUserTopicsGetAPIRequest, session string) (*tmc.TaobaoTmcUserTopicsGetAPIResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlibabaLsyMiniappMsgPush ¶
func AlibabaLsyMiniappMsgPush(clt *core.SDKClient, req *tmc.AlibabaLsyMiniappMsgPushAPIRequest, session string) (*tmc.AlibabaLsyMiniappMsgPushAPIResponse, error)
AlibabaLsyMiniappMsgPush
零售云小程序消息推送 alibaba.lsy.miniapp.msg.push
零售云小程序消息推送,推送消息至零售云(喵零等)
func AlipayXiaodaiUserPermit ¶
func AlipayXiaodaiUserPermit(clt *core.SDKClient, req *tmc.AlipayXiaodaiUserPermitAPIRequest, session string) (*tmc.AlipayXiaodaiUserPermitAPIResponse, error)
AlipayXiaodaiUserPermit
阿里金融用户授权 alipay.xiaodai.user.permit
阿里金融为用户开通消息通道接口
func TaobaoIstoreGiftingMessageGet ¶
func TaobaoIstoreGiftingMessageGet(clt *core.SDKClient, req *tmc.TaobaoIstoreGiftingMessageGetAPIRequest, session string) (*tmc.TaobaoIstoreGiftingMessageGetAPIResponse, error)
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 ¶
func TaobaoTmcGroupDelete(clt *core.SDKClient, req *tmc.TaobaoTmcGroupDeleteAPIRequest, session string) (*tmc.TaobaoTmcGroupDeleteAPIResponse, error)
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 ¶
func TaobaoTmcMessageProduce(clt *core.SDKClient, req *tmc.TaobaoTmcMessageProduceAPIRequest, session string) (*tmc.TaobaoTmcMessageProduceAPIResponse, error)
TaobaoTmcMessageProduce
发布单条消息 taobao.tmc.message.produce
发布单条消息
func TaobaoTmcMessagesConfirm ¶
func TaobaoTmcMessagesConfirm(clt *core.SDKClient, req *tmc.TaobaoTmcMessagesConfirmAPIRequest, session string) (*tmc.TaobaoTmcMessagesConfirmAPIResponse, error)
TaobaoTmcMessagesConfirm
确认消费消息的状态 taobao.tmc.messages.confirm
确认消费消息的状态
func TaobaoTmcMessagesConsume ¶
func TaobaoTmcMessagesConsume(clt *core.SDKClient, req *tmc.TaobaoTmcMessagesConsumeAPIRequest, session string) (*tmc.TaobaoTmcMessagesConsumeAPIResponse, error)
TaobaoTmcMessagesConsume
消费多条消息 taobao.tmc.messages.consume
消费多条消息。消费时如果没有返回消息,建议做控制,不要一直调api,浪费应用的流量。如对程序做好优化,若没有消息则,sleep 100ms 等。
func TaobaoTmcMessagesProduce ¶
func TaobaoTmcMessagesProduce(clt *core.SDKClient, req *tmc.TaobaoTmcMessagesProduceAPIRequest, session string) (*tmc.TaobaoTmcMessagesProduceAPIResponse, error)
TaobaoTmcMessagesProduce
批量发送消息 taobao.tmc.messages.produce
批量发送消息
func TaobaoTmcMsgSendrecord ¶
func TaobaoTmcMsgSendrecord(clt *core.SDKClient, req *tmc.TaobaoTmcMsgSendrecordAPIRequest, session string) (*tmc.TaobaoTmcMsgSendrecordAPIResponse, error)
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 ¶
func TaobaoTmcTopicGroupAdd(clt *core.SDKClient, req *tmc.TaobaoTmcTopicGroupAddAPIRequest, session string) (*tmc.TaobaoTmcTopicGroupAddAPIResponse, error)
TaobaoTmcTopicGroupAdd
topic分组路由 taobao.tmc.topic.group.add
根据topic名称路由消息到不同的分组。(前提:发送方未指定分组名) 如果是需要授权的消息,分组路由先判断用户分组路由(使用taobao.tmc.group.add添加的路由),用户分组路由不存在时,才会判断topic分组路由
func TaobaoTmcTopicGroupDelete ¶
func TaobaoTmcTopicGroupDelete(clt *core.SDKClient, req *tmc.TaobaoTmcTopicGroupDeleteAPIRequest, session string) (*tmc.TaobaoTmcTopicGroupDeleteAPIResponse, error)
TaobaoTmcTopicGroupDelete
删除消息topic分组路由 taobao.tmc.topic.group.delete
删除根据topic名称路由消息到不同的分组关系
func TaobaoTmcUserCancel ¶
func TaobaoTmcUserCancel(clt *core.SDKClient, req *tmc.TaobaoTmcUserCancelAPIRequest, session string) (*tmc.TaobaoTmcUserCancelAPIResponse, error)
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 ¶
func TaobaoTmcUserPermit(clt *core.SDKClient, req *tmc.TaobaoTmcUserPermitAPIRequest, session string) (*tmc.TaobaoTmcUserPermitAPIResponse, error)
TaobaoTmcUserPermit
为已授权的用户开通消息服务 taobao.tmc.user.permit
为已授权的用户开通消息服务,授权消息使用。<br/><span style="color:red">注意:topic覆盖更新,务必传入全量topic,或者不传topics,使用appkey订阅的所有topic</span>
func TaobaoTmcUserTopicsGet ¶
func TaobaoTmcUserTopicsGet(clt *core.SDKClient, req *tmc.TaobaoTmcUserTopicsGetAPIRequest, session string) (*tmc.TaobaoTmcUserTopicsGetAPIResponse, error)
TaobaoTmcUserTopicsGet
获取用户开通的topic列表 taobao.tmc.user.topics.get
获取用户开通的topic列表,授权消息使用
Types ¶
This section is empty.
Source Files ¶
- AlibabaLsyMiniappMsgPush.go
- AlipayXiaodaiUserPermit.go
- TaobaoIstoreGiftingMessageGet.go
- TaobaoTmcGroupAdd.go
- TaobaoTmcGroupDelete.go
- TaobaoTmcGroupsGet.go
- TaobaoTmcMessageProduce.go
- TaobaoTmcMessagesConfirm.go
- TaobaoTmcMessagesConsume.go
- TaobaoTmcMessagesProduce.go
- TaobaoTmcMsgSendrecord.go
- TaobaoTmcQueueGet.go
- TaobaoTmcTopicGroupAdd.go
- TaobaoTmcTopicGroupDelete.go
- TaobaoTmcUserCancel.go
- TaobaoTmcUserGet.go
- TaobaoTmcUserPermit.go
- TaobaoTmcUserTopicsGet.go
- doc.go