Coder Social home page Coder Social logo

wxchat's Introduction

#WxChat An Open Source Java SDK for WeChat Open Platform


WxChat是为腾讯微信公众平台制作的一个Java版本的SDK,旨在快速建立开发模式的微信公众账号。 目前WxChat处于1.0版本

##主要功能

  1. 一站式微信请求处理
  2. 微信请求的算法验证
  3. 消息类型的封装和处理接口实现
  4. 自定义菜单处理的实现

##如何使用

  1. 这是一个Java Web项目,可以直接部署在tomcat等web容器上
  2. 微信公众账号中,接口配置以以下形式设置
    URL: http://[host]/WxChat/wxMsgCollection?token=[tokenValue]
    Token: [tokenValue]<br>
  3. 部署和配置成功之后,就可以测试消息的收发了

##关键部分解释

  1. 项目通过servlet的形式来接受http响应,具体类在org.poorzerg.weixin.WxMsgCollectionServlet
  2. 信息处理接口为org.poorzerg.weixin.process.MsgProcess
  3. 默认的信息处理接口为org.poorzerg.weixin.process.DefaultMsgProcess
  4. 默认的信息处理接口中,内置了默认的event处理实现org.poorzerg.weixin.process.DefaultEventProcess
  5. appid、appsecret等配置文件是src/main/resources/config.properties,其中的tokenkey用于验证接入的token是否合法

邮箱地址:[email protected]
博客地址:http://my.oschina.net/poorzerg/blog

wxchat's People

Contributors

poorzerg avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.