connect_wise_web_reports 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/connect_wise_web_reports/report.rb +11 -9
- data/lib/connect_wise_web_reports/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e33c29484229dbeb21e0f291b6e7f1916391c798
|
4
|
+
data.tar.gz: 01077e877dd853f76dc0bfa4ef8013c4e3a9999d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d491d61f7a1b4e242e7a3beb7a234998a2e5e852352b384f181885375d6b4b1a47c05b79d3dba7bdef2852b2917b663227d55cba0e76d4595d5c3937ce6c7d4
|
7
|
+
data.tar.gz: acb34cfd91a59694a3ffab728662cc51043775d0fc24a68f2361cbbfb88105c661f2384acfba434f4866ccc7237fc80c8e015aac8668ccfddaeed01e2f818fbf
|
@@ -14,25 +14,27 @@ module ConnectWiseWebReports
|
|
14
14
|
params = "r=#{name}"
|
15
15
|
|
16
16
|
# API credentials
|
17
|
-
params += "&c=#{options[:company_id].to_s}"
|
18
|
-
params += "&u=#{options[:integrator_id].to_s}"
|
19
|
-
params += "&p=#{options[:integrator_password].to_s}"
|
17
|
+
params += "&c=#{CGI.escape options[:company_id].to_s}"
|
18
|
+
params += "&u=#{CGI.escape options[:integrator_id].to_s}"
|
19
|
+
params += "&p=#{CGI.escape options[:integrator_password].to_s}"
|
20
20
|
|
21
21
|
#order
|
22
|
-
params += "&o=#{options[:order_by].to_s}" unless options[:order_by].nil?
|
22
|
+
params += "&o=#{CGI.escape options[:order_by].to_s}" unless options[:order_by].nil?
|
23
23
|
|
24
24
|
# pagination
|
25
|
-
params += "&l=#{options[:limit].to_s}" unless options[:limit].nil?
|
26
|
-
params += "&s=#{options[:skip].to_s}" unless options[:skip].nil?
|
25
|
+
params += "&l=#{CGI.escape options[:limit].to_s}" unless options[:limit].nil?
|
26
|
+
params += "&s=#{CGI.escape options[:skip].to_s}" unless options[:skip].nil?
|
27
27
|
|
28
28
|
# timeout
|
29
|
-
params += "&t=#{options[:timeout].to_s}" unless options[:timeout].nil?
|
29
|
+
params += "&t=#{CGI.escape options[:timeout].to_s}" unless options[:timeout].nil?
|
30
30
|
|
31
31
|
# fields
|
32
|
-
|
32
|
+
unless options[:fields].nil? || options[:fields].empty?
|
33
|
+
params += "&f=#{options[:fields].map { |f| CGI.escape f }.join('&f=')}"
|
34
|
+
end
|
33
35
|
|
34
36
|
# conditions
|
35
|
-
params += "&q=#{CGI.escape
|
37
|
+
params += "&q=#{CGI.escape options[:conditions]}" unless options[:conditions].blank?
|
36
38
|
|
37
39
|
url = "https://#{options[:host]}/#{options[:version]}/webreport/?#{params}"
|
38
40
|
|