Sha256: e346c275987e3f236a8ccde3588f5560647106209856a0f40e1c07abb830a7e9

Contents?: true

Size: 1.13 KB

Versions: 3

Compression:

Stored size: 1.13 KB

Contents

# Wechat Handler 微信回调处理引擎

[![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](http://www.rubydoc.info/gems/wechat-handler/frames)
[![License](https://img.shields.io/badge/license-MIT-green.svg)](http://opensource.org/licenses/MIT)

[![Gem Version](https://badge.fury.io/rb/wechat-handler.svg)](https://badge.fury.io/rb/wechat-handler)
[![Dependency Status](https://gemnasium.com/badges/github.com/topbitdu/wechat-handler.svg)](https://gemnasium.com/github.com/topbitdu/wechat-handler)

The Wechat Handler engine handles the Wechat event & message notifications. 微信回调处理引擎处理微信服务器发出的事件通知和消息通知。



## Recent Update

Check out the [Road Map](ROADMAP.md) to find out what's the next.
Check out the [Change Log](CHANGELOG.md) to find out what's new.



## Usage in Gemfile

```ruby
gem 'wechat-handler'
```



## Include the controller concern

```ruby
include Wechat::Handler::Concerns::Dispatcher

def on_event(pairs)
  { 'MsgType' => 'text', 'Content' => 'Aloha!' }
end
```

The Dispatcher handles the ToUserName, the FromUserName, and the CreateTime automatically.

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wechat-handler-2.1 README.md
wechat-handler-1.0 README.md
wechat-handler-0.1.2 README.md