qq_client 4.0.8 → 4.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ae9c516b43243ecf7031c66830aa42579a2b2ea
4
- data.tar.gz: 5eeac5d506c5597dc9297ce5020ea439ddd669c4
3
+ metadata.gz: 42a1ed4f99bef8ffb7088b3c759c6bb9cd206c04
4
+ data.tar.gz: ce5fc3f744905efb0fdc1c8eb804d90967a0196f
5
5
  SHA512:
6
- metadata.gz: b283cdb8e59f40141842951e90a98a2c9ef73867886019abb702ae0520c755c4bf32a9d38c3bfb1e39c506cd555f84150cbeb12c99a1c8a2dfabf28917fd01b5
7
- data.tar.gz: 74028e4a721536f685754219e1734a3266d3e3dc5d9b1a4941198cdef8fa01d8ff42c4183d385dc2bf1659b00053bda9a7616fc04fa7622a5663e473ef2df85c
6
+ metadata.gz: 8ab7ac586b2b7cf3dbcbfb5e88dea9845324289be3a1aa38b07ac5b799f8a5c52973e9d4024ac81997d71e78e79d0eaec3970e625c64bbdfd43652962178e264
7
+ data.tar.gz: 2e143df3ce39cc63d445f69648ca141fc0dd20efc295f99e7f166a57d3ec0880396ba3370756737f819dc7d60759faffb996c48c2e59b77b54a4c11e6254b0f4
@@ -13,7 +13,9 @@ module QqClient
13
13
  # Get Tencent Weibo user's login information.
14
14
  # More info (http://wiki.connect.qq.com/get_info)
15
15
  def get_info(uid, options = {})
16
- @oauth.post uid, "user/get_info", options
16
+ data = @oauth.post uid, "user/get_info", options
17
+ data['data']['openid'] = uid
18
+ data
17
19
  end
18
20
 
19
21
  # Published a microblogging message (plain text) to the Tencent microblogging platforms.
@@ -26,7 +28,7 @@ module QqClient
26
28
  # Upload a picture and posted a message on the Tencent microblogging platforms.
27
29
  # More info (http://wiki.connect.qq.com/add_pic_t)
28
30
  def add_pic_t(uid, content, pic, options = {})
29
- default_params = { :content => content,:pic => pic }
31
+ default_params = { :content => content, :pic => pic, :multipart => true }
30
32
  @oauth.post uid, "t/add_pic_t", default_params.merge(options)
31
33
  end
32
34
 
@@ -1,3 +1,3 @@
1
1
  module QqClient
2
- VERSION = "4.0.8"
2
+ VERSION = "4.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qq_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.8
4
+ version: 4.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Gonzalez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-02 00:00:00.000000000 Z
11
+ date: 2015-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client