public interface WxMaMsgService
消息发送接口
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
ACTIVITY_ID_CREATE_URL |
static String |
KEFU_MESSAGE_SEND_URL |
static String |
SUBSCRIBE_MSG_SEND_URL |
static String |
TEMPLATE_MSG_SEND_URL |
static String |
UNIFORM_MSG_SEND_URL |
static String |
UPDATABLE_MSG_SEND_URL |
| 限定符和类型 | 方法和说明 |
|---|---|
com.google.gson.JsonObject |
createUpdatableMessageActivityId()
创建被分享动态消息的 activity_id.
|
boolean |
sendKefuMsg(WxMaKefuMessage message)
发送客服消息
详情请见: 发送客服消息
接口url格式:https://api.weixin.qq.com/cgi-bin/message/custom/send?
|
void |
sendSubscribeMsg(WxMaSubscribeMessage subscribeMessage)
发送订阅消息
https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.send.html
|
void |
sendTemplateMsg(WxMaTemplateMessage templateMessage)
已过时。
|
void |
sendUniformMsg(WxMaUniformMessage uniformMessage)
下发小程序和公众号统一的服务消息
详情请见: 下发小程序和公众号统一的服务消息
接口url格式:https://api.weixin.qq.com/cgi-bin/message/wxopen/template/uniform_send?
|
void |
setUpdatableMsg(WxMaUpdatableMsg msg)
修改被分享的动态消息.
|
boolean sendKefuMsg(WxMaKefuMessage message) throws WxErrorException
发送客服消息 详情请见: 发送客服消息 接口url格式:https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=ACCESS_TOKEN
message - 客服消息WxErrorException - .@Deprecated void sendTemplateMsg(WxMaTemplateMessage templateMessage) throws WxErrorException
发送模板消息 详情请见: 发送模板消息 接口url格式:https://api.weixin.qq.com/cgi-bin/message/wxopen/template/send?access_token=ACCESS_TOKEN 小程序模板消息接口将于2020年1月10日下线,开发者可使用订阅消息功能
templateMessage - 模版消息WxErrorException - .void sendSubscribeMsg(WxMaSubscribeMessage subscribeMessage) throws WxErrorException
发送订阅消息 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.send.html
subscribeMessage - 订阅消息WxErrorException - .void sendUniformMsg(WxMaUniformMessage uniformMessage) throws WxErrorException
下发小程序和公众号统一的服务消息 详情请见: 下发小程序和公众号统一的服务消息 接口url格式:https://api.weixin.qq.com/cgi-bin/message/wxopen/template/uniform_send?access_token=ACCESS_TOKEN
uniformMessage - 消息WxErrorException - .com.google.gson.JsonObject createUpdatableMessageActivityId()
throws WxErrorException
创建被分享动态消息的 activity_id. 动态消息: https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share/updatable-message.html 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/updatable-message/updatableMessage.createActivityId.html 接口地址:GET https://api.weixin.qq.com/cgi-bin/message/wxopen/activityid/create?access_token=ACCESS_TOKEN
WxErrorException - .void setUpdatableMsg(WxMaUpdatableMsg msg) throws WxErrorException
修改被分享的动态消息. 动态消息: https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share/updatable-message.html 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/updatable-message/updatableMessage.setUpdatableMsg.html 接口地址:POST https://api.weixin.qq.com/cgi-bin/message/wxopen/activityid/create?access_token=ACCESS_TOKEN
msg - 动态消息WxErrorException - .Copyright © 2020. All rights reserved.