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)
已过时。
|
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
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
WxErrorExceptionCopyright © 2020. All rights reserved.