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 +4 -4
- data/lib/qq_client/client.rb +4 -2
- data/lib/qq_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42a1ed4f99bef8ffb7088b3c759c6bb9cd206c04
|
4
|
+
data.tar.gz: ce5fc3f744905efb0fdc1c8eb804d90967a0196f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ab7ac586b2b7cf3dbcbfb5e88dea9845324289be3a1aa38b07ac5b799f8a5c52973e9d4024ac81997d71e78e79d0eaec3970e625c64bbdfd43652962178e264
|
7
|
+
data.tar.gz: 2e143df3ce39cc63d445f69648ca141fc0dd20efc295f99e7f166a57d3ec0880396ba3370756737f819dc7d60759faffb996c48c2e59b77b54a4c11e6254b0f4
|
data/lib/qq_client/client.rb
CHANGED
@@ -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
|
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
|
|
data/lib/qq_client/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|