README.md
# WeixinAuthorize
[![Gem Version](https://badge.fury.io/rb/weixin_authorize.png)](http://badge.fury.io/rb/weixin_authorize)
[![Build Status](https://secure.travis-ci.org/lanrion/weixin_authorize.png?branch=master)](http://travis-ci.org/lanrion/weixin_authorize)
[![Code Climate](https://codeclimate.com/github/lanrion/weixin_authorize.png)](https://codeclimate.com/github/lanrion/weixin_authorize)
[![Coverage Status](https://codeclimate.com/github/lanrion/weixin_authorize/coverage.png)](https://codeclimate.com/github/lanrion/weixin_authorize)
Support using [Redis](http://redis.io) to store `access_token`
[Wiki](https://github.com/lanrion/weixin_authorize/wiki)
[Getting-Started](https://github.com/lanrion/weixin_authorize/wiki/Getting-Started)
[JS SDK](https://github.com/lanrion/weixin_authorize/wiki/js-sdk)
## 支持自助实现API
详情见:https://github.com/lanrion/weixin_authorize/wiki/diy-your-api
## 已经完成API
* 客服消息
* 模板消息
* 用户分组管理
* 用户信息管理
* Oauth 2授权
* 二维码生成
* 自定义菜单
* 群发消息
* 多媒体管理
* JS SDK(ticket支持缓存)
* 更多请查看测试例子
## 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:
```ruby
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
## 捐赠支持
如果你觉得我的gem对你有帮助,欢迎打赏支持,:smile:
![](https://raw.githubusercontent.com/lanrion/my_config/master/imagex/donation_me_wx.jpg)