public interface WxMaMsgService
消息发送接口
| 限定符和类型 | 字段和说明 | 
|---|---|
| static String | KEFU_MESSAGE_SEND_URL | 
| static String | SUBSCRIBE_MSG_SEND_URL | 
| static String | TEMPLATE_MSG_SEND_URL | 
| static String | UNIFORM_MSG_SEND_URL | 
| 限定符和类型 | 方法和说明 | 
|---|---|
| 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)
 发送模板消息
 详情请见: 发送模板消息
 接口url格式:https://api.weixin.qq.com/cgi-bin/message/wxopen/template/send? | 
| void | sendUniformMsg(WxMaUniformMessage uniformMessage)
 下发小程序和公众号统一的服务消息
 详情请见: 下发小程序和公众号统一的服务消息
 接口url格式:https://api.weixin.qq.com/cgi-bin/message/wxopen/template/uniform_send? | 
boolean sendKefuMsg(WxMaKefuMessage message) throws WxErrorException
发送客服消息 详情请见: 发送客服消息 接口url格式:https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=ACCESS_TOKEN
WxErrorExceptionvoid sendTemplateMsg(WxMaTemplateMessage templateMessage) throws WxErrorException
发送模板消息 详情请见: 发送模板消息 接口url格式:https://api.weixin.qq.com/cgi-bin/message/wxopen/template/send?access_token=ACCESS_TOKEN
WxErrorExceptionvoid sendSubscribeMsg(WxMaSubscribeMessage subscribeMessage) throws WxErrorException
https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.send.html发送订阅消息
WxErrorExceptionvoid sendUniformMsg(WxMaUniformMessage uniformMessage) throws WxErrorException
下发小程序和公众号统一的服务消息 详情请见: 下发小程序和公众号统一的服务消息 接口url格式:https://api.weixin.qq.com/cgi-bin/message/wxopen/template/uniform_send?access_token=ACCESS_TOKEN
WxErrorExceptionCopyright © 2019. All rights reserved.