safe-t-rest 0.0.3 → 0.0.4
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/safe-t-rest.rb +38 -3
- data/safe-t-rest.gemspec +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: 1e702f2133cba9ebc965b8037aab33c7b8f3bc21
|
4
|
+
data.tar.gz: e9f5ffbaabcf5109296b9767026de6c9619d6876
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 680980bf3331b44c008126d011212a86934d6265c7818aec1a6580944e895ae7da89466913a421b28b4baccff78333327c62d86f03fdd7d42a6afe4d24a4028b
|
7
|
+
data.tar.gz: d6de2ced9da2dc5a0eabf376a7cbeddcaa2719c54093a19339cfbd2deb340b2ad6c3bdeaa0e58331a83faa8cbae5bff169e3be4913b1501f784612856aec7fb5
|
data/lib/safe-t-rest.rb
CHANGED
@@ -11,7 +11,7 @@ class SafeTRest
|
|
11
11
|
:url => @url,
|
12
12
|
:headers => {
|
13
13
|
:servletRequestID => 'MethodRequest',
|
14
|
-
:BusinessLogic => "{Username:'
|
14
|
+
:BusinessLogic => "{Username:'', Password:'', RoleID: '#{@role_id}', ExtensionID: '#{@extenstion_id}', GetAppsProcessState: ['#{@guid}', false]}"
|
15
15
|
}
|
16
16
|
)
|
17
17
|
end
|
@@ -22,7 +22,7 @@ class SafeTRest
|
|
22
22
|
:url => @url,
|
23
23
|
:headers => {
|
24
24
|
:servletRequestID => 'MethodRequest',
|
25
|
-
:BusinessLogic => "{Username:'
|
25
|
+
:BusinessLogic => "{Username:'', Password:'', RoleID: '#{@role_id}', ExtensionID: '#{@extenstion_id}', GetPackageFileList: ['#{@guid}']}"
|
26
26
|
}
|
27
27
|
)
|
28
28
|
end
|
@@ -33,9 +33,44 @@ class SafeTRest
|
|
33
33
|
:url => @url,
|
34
34
|
:headers => {
|
35
35
|
:servletRequestID => 'MethodRequest',
|
36
|
-
:BusinessLogic => "{Username:'
|
36
|
+
:BusinessLogic => "{Username:'', Password:'', RoleID: '#{@role_id}', ExtensionID: '#{@extenstion_id}', iVerifyUserAccount: ['#{@username}', '#{@password}', true]}"
|
37
37
|
}
|
38
38
|
).split(':')
|
39
39
|
return [a[0], Base64.decode64(a[1])].join(':')
|
40
40
|
end
|
41
|
+
|
42
|
+
def iGetHistory(days)
|
43
|
+
a = RestClient::Request.execute(
|
44
|
+
:method => :post,
|
45
|
+
:url => @url,
|
46
|
+
:headers => {
|
47
|
+
:servletRequestID => 'MethodRequest',
|
48
|
+
:BusinessLogic => "{Username:'', Password:'', RoleID: '#{@role_id}', ExtensionID: '#{@extenstion_id}', iGetHistory: ['#{@username}', '#{@password}', #{days}]}"
|
49
|
+
}
|
50
|
+
)
|
51
|
+
end
|
52
|
+
|
53
|
+
def iUserAccountAddressList
|
54
|
+
a = RestClient::Request.execute(
|
55
|
+
:method => :post,
|
56
|
+
:url => @url,
|
57
|
+
:headers => {
|
58
|
+
:servletRequestID => 'MethodRequest',
|
59
|
+
:BusinessLogic => "{Username:'', Password:'', RoleID: '#{@role_id}', ExtensionID: '#{@extenstion_id}', iUserAccountAddressList: ['#{@username}', '#{@password}']}"
|
60
|
+
}
|
61
|
+
)
|
62
|
+
end
|
63
|
+
|
64
|
+
def iGetFolderList
|
65
|
+
a = RestClient::Request.execute(
|
66
|
+
:method => :post,
|
67
|
+
:url => @url,
|
68
|
+
:headers => {
|
69
|
+
:servletRequestID => 'MethodRequest',
|
70
|
+
:BusinessLogic => "{Username:'', Password:'', RoleID: '#{@role_id}', ExtensionID: '#{@extenstion_id}', iGetFolderList: ['#{@username}', '#{@password}', #{true}, #{false}, '0/000', 417]}"
|
71
|
+
}
|
72
|
+
)
|
73
|
+
end
|
74
|
+
|
75
|
+
|
41
76
|
end
|
data/safe-t-rest.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: safe-t-rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bar Hofesh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|