All Projects → heyuxian → weixin-sdk

heyuxian / weixin-sdk

Licence: other
www.docs4dev.com/

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to weixin-sdk

Telegram Spring Boot Starter
Telegram Bot API Spring Boot Starter
Stars: ✭ 79 (+315.79%)
Mutual labels:  spring-boot-starter
Spring Backend Boilerplate
The modularized backend boilerplate based on Spring Boot Framework, easy to get started and add your business part.
Stars: ✭ 134 (+605.26%)
Mutual labels:  spring-boot-starter
Tutorial Soap Spring Boot Cxf
Tutorial how to create, test, deploy, monitor SOAP-Webservices using Spring Boot and Apache CXF
Stars: ✭ 167 (+778.95%)
Mutual labels:  spring-boot-starter
Handlebars Spring Boot Starter
Spring Boot auto-configuration for Handlebars
Stars: ✭ 102 (+436.84%)
Mutual labels:  spring-boot-starter
Bucket4j Spring Boot Starter
Spring Boot Starter for Bucket4j
Stars: ✭ 127 (+568.42%)
Mutual labels:  spring-boot-starter
Justauth Spring Boot Starter
Spring Boot 集成 JustAuth 的最佳实践~
Stars: ✭ 143 (+652.63%)
Mutual labels:  spring-boot-starter
Disconf Spring Boot Starter
disconf-spring-boot-starter 让你可以使用spring-boot的方式开发依赖disconf的程序 只需要关心disconfi的配置文件和配置项,省略了编写xml的麻烦
Stars: ✭ 44 (+131.58%)
Mutual labels:  spring-boot-starter
Graphql Spqr Spring Boot Starter
Spring Boot 2 starter powered by GraphQL SPQR
Stars: ✭ 187 (+884.21%)
Mutual labels:  spring-boot-starter
Jasypt Spring Boot
Jasypt integration for Spring boot
Stars: ✭ 1,948 (+10152.63%)
Mutual labels:  spring-boot-starter
Opentracing Toolbox
Best-of-breed OpenTracing utilities, instrumentations and extensions
Stars: ✭ 161 (+747.37%)
Mutual labels:  spring-boot-starter
Wicket Spring Boot
Spring Boot starter for Apache Wicket
Stars: ✭ 117 (+515.79%)
Mutual labels:  spring-boot-starter
Cassandre Trading Bot
Cassandre makes it easy to create your Java crypto trading bot. Our Spring boot starter takes care of exchange connections, accounts, orders, trades, and positions.
Stars: ✭ 120 (+531.58%)
Mutual labels:  spring-boot-starter
Grpc Spring Boot Starter
Spring Boot starter module for gRPC framework.
Stars: ✭ 2,190 (+11426.32%)
Mutual labels:  spring-boot-starter
Disruptor Spring Boot Starter
starter for disruptor
Stars: ✭ 83 (+336.84%)
Mutual labels:  spring-boot-starter
Riptide
Client-side response routing for Spring
Stars: ✭ 169 (+789.47%)
Mutual labels:  spring-boot-starter
Spring Higher Order Components
⚡️ Preconfigured components to speedup Spring Boot development
Stars: ✭ 65 (+242.11%)
Mutual labels:  spring-boot-starter
Grpc Spring Boot Starter
Spring Boot starter module for gRPC framework.
Stars: ✭ 1,829 (+9526.32%)
Mutual labels:  spring-boot-starter
wx iciba
金山词霸(iciba)基于微信小程序wepy版本,可做wepy学习案例,
Stars: ✭ 29 (+52.63%)
Mutual labels:  weixin
Rocketmq Spring Boot Starter
rocketmq-spring-boot-starter
Stars: ✭ 178 (+836.84%)
Mutual labels:  spring-boot-starter
Cas Client Autoconfig Support
Annotation-based configuration support for Apereo CAS Java clients
Stars: ✭ 153 (+705.26%)
Mutual labels:  spring-boot-starter

微信 SDK

Build Status Coverage Status License

项目简介

本项目使用 spring-boot-starter 的形式封装了微信公众平台的常用 API,延续了 spring-boot 的风格,以最少化配置项为目标,除了 appid, secret 等基础配置项之外,你不需要做任何其他设置,系统提供的默认设置已经能覆盖大部分的使用情况;当然,总还是会有些特殊需求不能被覆盖到,所以系统也对外提供了接口,用户可以实现对应模块的接口来覆盖系统的默认设置。

配置

前提

  • 本项目基于 Spring Boot,所以要使用本项目,必须引入 Spring Boot 的相关依赖
  • JDK 1.8 及以上

引入 maven 依赖

<dependency>
	<groupId>me.javaroad.openapi.wechat</groupId>
	<artifactId>wechat-spring-boot-starter</artifactId>
	<version>1.0-SNAPSHOT</version>
</dependency>

因为目前是 snapshot 版本,所以还需要引入 snapshot repository :

<repositories>
  <repository>
      <snapshots />
      <id>sonatype snapshots</id>
      <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
  </repository>
</repositories>

基础配置

在 application.yml 中新增以下配置:

weixin:
  mp:
    endpoint:
      # 微信回调地址,默认为 /weixin/callback,如需自定义,请修改以下配置项
      callback-url: /weixin/callback
    security:
      # 微信后台配置的 token
      token: 1234567890
      # 微信后台配置的消息加解密 aeskey
      encodingAesKey: abcdefghijklmnopqrstuvwxyz0123456789ABCDEFG
      # #############################################################
      # 微信 access token 过期刷新阈值,计算方法:
      # 当前时间 - (获得token时间 + token 有效期 + 阈值) < 0 则刷新 token
      # 默认为 token 失效前 5 分钟刷新
      # #############################################################
      refresh-token-threshold: 300
    auth:
      # APPID
      appid: appid
      # APP secret
      secret: secret

完成以上两项配置后,已经可以成功接入微信。接下来,你可以根据自身需求阅读对应模块的文档,实现自己的业务逻辑。

目录

  • 获取 AccessToken
  • 消息管理
    • 接收普通消息
    • 接收事件推送
    • 被动回复消息
    • 消息加解密
    • 获取微信服务器 IP
    • 客服消息
    • 群发接口和原创校验
    • 模板消息接口
    • 一次性订阅消息
  • 素材管理
  • 图文消息留言管理
  • 用户管理
  • 账号管理
  • 数据统计
  • 微信卡卷
  • ... TODO

问题及建议

若是对于本项目有任何问题或建议,请提 Issue

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].