Commit b81efc95 by lanrion

updated README.md

parent 26728259
...@@ -25,18 +25,15 @@ Or install it yourself as: ...@@ -25,18 +25,15 @@ Or install it yourself as:
```ruby ```ruby
$client ||= WeixinAuthorize::Client.new(ENV["APPID"], ENV["APPSECRET"]) $client ||= WeixinAuthorize::Client.new(ENV["APPID"], ENV["APPSECRET"])
``` ```
If you use ** Redis ** to store your access_token, you can also specify the `key`: If you use [Redis](http://redis.io) to store your access_token, you can also specify the `key`:
```ruby ```ruby
$client ||= WeixinAuthorize::Client.new(ENV["APPID"], ENV["APPSECRET"], "your_store_key") $client ||= WeixinAuthorize::Client.new(ENV["APPID"], ENV["APPSECRET"], "your_store_key")
``` ```
## Configure to use ** Redis ** to store your access_token (Recommend) ## Configure to use Redis to store your access_token (Recommend)
* Create file in: `config/initializers/weixin_authorize.rb` * Create file in: `config/initializers/weixin_authorize.rb`
...@@ -54,7 +51,6 @@ $client ||= WeixinAuthorize::Client.new(ENV["APPID"], ENV["APPSECRET"], "your_st ...@@ -54,7 +51,6 @@ $client ||= WeixinAuthorize::Client.new(ENV["APPID"], ENV["APPSECRET"], "your_st
WeixinAuthorize.configure do |config| WeixinAuthorize.configure do |config|
config.redis = redis config.redis = redis
end end
``` ```
### 获取用户管理信息 ### 获取用户管理信息
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment