76 Star 473 Fork 191

hm-tools / hm-tools-wxmp-adapter

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
readme.md 3.20 KB
一键复制 编辑 原始数据 按行查看 历史
JHybo 提交于 2020-06-07 00:22 . maven center

Maven Central

前言

本组件对应实现微信公众平台“消息管理”章节相关api接口、事件推送,原接口文档地址:消息管理

接口说明

  • top.hmtools.wxmp.message.customerService.apis.ICustomerServiceApi 旧版客服消息
  • top.hmtools.wxmp.message.group.apis.IGroupMessageApi 群发消息接口
  • top.hmtools.wxmp.message.template.apis.ITemplateApi 模板消息接口

事件消息类说明

  1. 接收普通消息 top.hmtools.wxmp.message.ordinary.model
  2. 接收事件推送 top.hmtools.wxmp.message.eventPush.model
  3. 被动回复用户消息 top.hmtools.wxmp.message.reply.model
  4. 消息加解密说明
  5. 客服消息 top.hmtools.wxmp.message.customerService
  6. 群发接口和原创校验 top.hmtools.wxmp.message.group
  7. 模板消息接口 top.hmtools.wxmp.message.template
  8. 一次性订阅消息
  9. 模板消息运营规范
  10. 接口调用频次限制说明
  11. 获取公众号的自动回复规则

使用示例

  1. 引用jar包
<dependency>
  <groupId>top.hmtools</groupId>
  <artifactId>wxmp-message</artifactId>
  <version>1.0.0</version>
</dependency>
  1. 获取wxmpSession,参照 wxmp-core/readme.md
//2 获取动态代理对象实例
ITemplateApi templateApi = wxmpSession.getMapper(ITemplateApi.class);

//3 获取所有模板信息
TemplateListResult result = templateApi.getAllPrivateTemplate();

更多示例参见:

Java
1
https://gitee.com/hm-tools/hm-tools-wxmp-adapter.git
git@gitee.com:hm-tools/hm-tools-wxmp-adapter.git
hm-tools
hm-tools-wxmp-adapter
hm-tools-wxmp-adapter
master

搜索帮助