weibo2_plugins 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -22,7 +22,7 @@ module Weibo2Plugins
|
|
22
22
|
def self.get_date(url,access_token,params)
|
23
23
|
atts = {
|
24
24
|
headers: {"Content-Type" => "application/json","Accept"=>"application/json;charset=utf-8","User-Agent"=>"Mozilla/5.0 (X11; Linux x86_64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1"},
|
25
|
-
method: :get, timeout: 3000, :cache_timeout => 0, params: params
|
25
|
+
method: :get, timeout: 3000, :cache_timeout => 0, disable_ssl_peer_verification: true, params: params
|
26
26
|
}
|
27
27
|
request = Typhoeus::Request.new("#{HOST}#{url}",atts)
|
28
28
|
hydra = Typhoeus::Hydra.new
|
@@ -35,7 +35,7 @@ module Weibo2Plugins
|
|
35
35
|
def self.post_date(url,access_token,params)
|
36
36
|
atts = {
|
37
37
|
headers: {"Content-Type" => "application/json","Accept"=>"application/json;charset=utf-8","User-Agent"=>"Mozilla/5.0 (X11; Linux x86_64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1"},
|
38
|
-
method: :post, timeout: 3000, :cache_timeout => 0, params: params
|
38
|
+
method: :post, timeout: 3000, :cache_timeout => 0, disable_ssl_peer_verification: true, params: params
|
39
39
|
}
|
40
40
|
request = Typhoeus::Request.new("#{HOST}#{url}",atts)
|
41
41
|
hydra = Typhoeus::Hydra.new
|
@@ -55,7 +55,7 @@ module Weibo2Plugins
|
|
55
55
|
params = {uid: uid, access_token: access_token, count: 200}
|
56
56
|
atts = {
|
57
57
|
headers: {"Content-Type" => "application/json","Accept"=>"application/json;charset=utf-8","User-Agent"=>"Mozilla/5.0 (X11; Linux x86_64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1"},
|
58
|
-
method: :get, timeout: 3000, :cache_timeout => 0, params: params
|
58
|
+
method: :get, timeout: 3000, :cache_timeout => 0, disable_ssl_peer_verification: true, params: params
|
59
59
|
}
|
60
60
|
request = Typhoeus::Request.new("#{HOST}#{url}",atts)
|
61
61
|
hydra = Typhoeus::Hydra.new
|
@@ -69,7 +69,7 @@ module Weibo2Plugins
|
|
69
69
|
params = {uid: uid, access_token: access_token, status: URI.escape(status).to_json}
|
70
70
|
atts = {
|
71
71
|
headers: {"Content-Type" => "application/x-www-form-urlencoded","Accept"=>"application/json;charset=utf-8","User-Agent"=>"Mozilla/5.0 (X11; Linux x86_64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1"},
|
72
|
-
method: :post, timeout: 3000, cache_timeout: 0, params: params
|
72
|
+
method: :post, timeout: 3000, cache_timeout: 0, disable_ssl_peer_verification: true, params: params
|
73
73
|
}
|
74
74
|
request = Typhoeus::Request.new("#{HOST}#{url}",atts)
|
75
75
|
hydra = Typhoeus::Hydra.new
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: weibo2_plugins
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-11-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: oauth2
|