Wechat::Adapter

Build Status Gem Version Coverage Status

A wrapper for Tencent Wechat JSON API, currently only "menu" operation are tested, others should work also.

Installation

Add this line to your application's Gemfile:

gem 'wechat-adapter'

And then execute:

$ bundle

Or install it yourself as:

$ gem install wechat-adapter

Usage

require 'wechat/adapter'

appid = "wxb3fae34df644fbf7"
appsecret = "d0aae6a89949c8c789068397f9e1c59c"
api = WechatAPI.new(appid, appsecret)

api.get 'menu/get'

Contributing

  1. Fork it ( https://github.com/[my-github-username]/wechat-adapter/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request