Wechat::Adapter
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
- Fork it ( https://github.com/[my-github-username]/wechat-adapter/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
