simple_wx 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 14016b04930e8e82a6567edf4e861aa1eaca0c4a
4
- data.tar.gz: a5a501f857ad54af51b08c5702abd877ec61c86a
3
+ metadata.gz: 7e223bef1ee2c99093513985efdb207277dedd7a
4
+ data.tar.gz: 2c47e4ffff4f4fcbc5f2897f015d559018c7f5e8
5
5
  SHA512:
6
- metadata.gz: 8c75e4bd577a24851e7f3e100a482fa6eb359c3b8cf6a8e3e6c40c6ebeadabe315c494cc61ed5f30eafaa720a9365f4fb68ef9efd0d1f80e3525f5aff7cc8693
7
- data.tar.gz: 1f02bd359dc7233884eed0b72d8b6f7deb504954fb6c1c120c7bbb9b582e5a5803844f4f0168bf68b25e0b363d20bc2385454274faedf25f7d4812d3327efd03
6
+ metadata.gz: d13e275453321f845e768077a306db61f430e8e291abf92e1120bb5a28009e21321b160dcf4ef14dcf7e914228209670c14903e8468f3c3bc08b8f1d4887744e
7
+ data.tar.gz: 3cb3bcde0afdcd3bd7621e53d73266fc0ecdb0107071fb77f6c9c6d99600964c6054869074ffc87d60bfbab2f44afefa8a019fd7672d194666a8822bcc60a45b
data/README.md CHANGED
@@ -175,6 +175,13 @@ get jsapi_ticket
175
175
  auth.get_user_info
176
176
  ```
177
177
 
178
+ __第三方登录获取user_info__
179
+
180
+ ```ruby
181
+ auth = SimpleWx::OAuth.new(access_token: "o_auth_access_token", openid: "openid")
182
+ auth.get_user_info
183
+ ```
184
+
178
185
  ------
179
186
 
180
187
  ### UserInfo
@@ -34,6 +34,8 @@ module SimpleWx
34
34
 
35
35
  def initialize options
36
36
  @code = options[:code]
37
+ @access_token = options[:access_token]
38
+ @openid = options[:openid]
37
39
  end
38
40
 
39
41
  def get_access_token
@@ -1,3 +1,3 @@
1
1
  module SimpleWx
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_wx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott1743