Commit f1b63a54 by lanrion

updated README.md

parent 5b0060fe
...@@ -28,7 +28,11 @@ Or install it yourself as: ...@@ -28,7 +28,11 @@ Or install it yourself as:
```ruby ```ruby
# new a client
$client ||= WeixinAuthorize::Client.new(ENV["APPID"], ENV["APPSECRET"]) $client ||= WeixinAuthorize::Client.new(ENV["APPID"], ENV["APPSECRET"])
# valid app_id and app_secret
$client.is_valid? # return true or false
``` ```
### Option: use [Redis](http://redis.io) to store your access_token (Recommend) ### Option: use [Redis](http://redis.io) to store your access_token (Recommend)
......
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