WeixinAuthorize

Gem Version Build Status Code Climate Coverage Status

Support using Redis to store access_token

Wiki

Getting-Started

V2.0开发中:

https://github.com/lanrion/weixin_authorize/milestones/v2.0-dev

  1. 重构API实现,调用方式
  2. 对token,ticket的管理,提供第三方开发灵活者自助化
  3. 尝试RestClient的弃用,选择更高效的HTTP client包
  4. 支持更多的异常处理机制

注意:查看Wiki或者源代码时,请切换对应的版本来查看。Master处于不断更新完善分支。

How to test

Go to https://github.com/lanrion/weixin_authorize/issues/2, apply a weixin sandbox test account and follow this account

https://github.com/lanrion/weixin_authorize/blob/master/spec/spec_helper.rb

change your infos:

ENV["APPID"]="wxe371e0960de5426a"
ENV["APPSECRET"]="572b93d3d20aea242692a804243a141b"
ENV["OPENID"]="oEEoyuEasxionjR5HygmEOQGwRcw"

then run rspec .

Contributing

  1. Fork it
  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 new Pull Request