aria_sdk 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/aria_sdk/aria_admintools_rest_client.rb +11 -11
- data/lib/aria_sdk/aria_core_rest_client.rb +11 -11
- data/lib/aria_sdk/aria_core_soap_client.rb +27 -28
- data/lib/aria_sdk/aria_object_query_rest_client.rb +11 -11
- data/lib/aria_sdk/aria_rest_client.rb +19 -20
- metadata +24 -34
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ea3dcc239a3714d82422e71a3a660ec203450b12
|
4
|
+
data.tar.gz: 7b0e4f34bf27b391f78a42434296612d14e7ed9e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4cc6e77a4ac6817e6a9cd5bf92025dd7e9f66079c2dd58338b043fbb97d60f9be2561012ea727c5f08bb7ce909c33dd2b4f6f0f6373a5cb75a080a88d3b28c9d
|
7
|
+
data.tar.gz: 4cefa6d66ff55e22370c4891c9af015ce50e7217d7a2e6723ca5af85738fa60328c917465d6aee5ad7a7c91f575d7ffdf4e396f389d24238833c31aab7c5eeef
|
@@ -2,18 +2,18 @@ require 'aria_sdk/aria_rest_client'
|
|
2
2
|
|
3
3
|
class AriaAdmintoolsRestClient < AriaRestClient
|
4
4
|
|
5
|
-
|
5
|
+
attr_reader :prod
|
6
6
|
|
7
|
-
|
8
|
-
|
7
|
+
def initialize client_no, auth_key, prod = false
|
8
|
+
@prod = prod
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
10
|
+
url = if prod
|
11
|
+
'https://admintools.ariasystems.net/AdminTools.php/Dispatcher'
|
12
|
+
else
|
13
|
+
'https://admintools.future.stage.ariasystems.net/AdminTools.php/Dispatcher'
|
14
|
+
end
|
15
15
|
|
16
|
-
|
17
|
-
|
16
|
+
super client_no, auth_key, url
|
17
|
+
end
|
18
18
|
|
19
|
-
end
|
19
|
+
end
|
@@ -2,18 +2,18 @@ require 'aria_sdk/aria_rest_client'
|
|
2
2
|
|
3
3
|
class AriaCoreRestClient < AriaRestClient
|
4
4
|
|
5
|
-
|
5
|
+
attr_reader :prod
|
6
6
|
|
7
|
-
|
8
|
-
|
7
|
+
def initialize client_no, auth_key, prod = false
|
8
|
+
@prod = prod
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
10
|
+
url = if prod
|
11
|
+
'https://secure.ariasystems.net/api/ws/api_ws_class_dispatcher.php'
|
12
|
+
else
|
13
|
+
'https://secure.future.stage.ariasystems.net/api/ws/api_ws_class_dispatcher.php'
|
14
|
+
end
|
15
15
|
|
16
|
-
|
17
|
-
|
16
|
+
super client_no, auth_key, url
|
17
|
+
end
|
18
18
|
|
19
|
-
end
|
19
|
+
end
|
@@ -1,43 +1,42 @@
|
|
1
1
|
require 'savon'
|
2
2
|
|
3
3
|
class AriaCoreSoapClient
|
4
|
-
|
4
|
+
include Savon
|
5
5
|
|
6
|
-
|
6
|
+
attr_accessor :client_no, :auth_key
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
def initialize(client_no, auth_key, version, prod = false)
|
9
|
+
self.client_no = client_no
|
10
|
+
self.auth_key = auth_key
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
12
|
+
if prod
|
13
|
+
wsdl = "https://secure.ariasystems.net/api/Advanced/wsdl/#{version}/complete-doc_literal_wrapped.wsdl"
|
14
|
+
else
|
15
|
+
wsdl = "https://secure.future.stage.ariasystems.net/api/Advanced/wsdl/#{version}/complete-doc_literal_wrapped.wsdl"
|
16
|
+
end
|
17
17
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
18
|
+
@client = Savon.client(wsdl: wsdl) do
|
19
|
+
convert_request_keys_to :none
|
20
|
+
end
|
21
|
+
end
|
22
22
|
|
23
|
-
|
23
|
+
def call(api_name, message = {})
|
24
24
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
25
|
+
defaults = {
|
26
|
+
output_format: 'json',
|
27
|
+
client_no: self.client_no,
|
28
|
+
auth_key: self.auth_key,
|
29
|
+
}
|
30
30
|
|
31
|
-
|
32
|
-
|
31
|
+
message.merge!(defaults)
|
32
|
+
response = @client.call(api_name.to_sym, message: message)
|
33
33
|
|
34
|
-
|
35
|
-
|
34
|
+
#response = @client.call(api_name.to_sym, message: message )
|
35
|
+
response_name = api_name << '_response_element'
|
36
36
|
|
37
|
-
|
37
|
+
body = response.body[response_name.to_sym]
|
38
38
|
|
39
|
-
|
40
|
-
|
41
|
-
end
|
39
|
+
return body
|
40
|
+
end
|
42
41
|
|
43
42
|
end
|
@@ -2,18 +2,18 @@ require 'aria_sdk/aria_rest_client'
|
|
2
2
|
|
3
3
|
class AriaObjectQueryRestClient < AriaRestClient
|
4
4
|
|
5
|
-
|
5
|
+
attr_reader :prod
|
6
6
|
|
7
|
-
|
8
|
-
|
7
|
+
def initialize client_no, auth_key, prod = false
|
8
|
+
@prod = prod
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
10
|
+
url = if prod
|
11
|
+
'https://secure.ariasystems.net/api/AriaQuery/objects.php'
|
12
|
+
else
|
13
|
+
'https://secure.future.stage.ariasystems.net/api/AriaQuery/objects.php'
|
14
|
+
end
|
15
15
|
|
16
|
-
|
17
|
-
|
16
|
+
super client_no, auth_key, url
|
17
|
+
end
|
18
18
|
|
19
|
-
end
|
19
|
+
end
|
@@ -2,31 +2,30 @@ require 'httparty'
|
|
2
2
|
require 'json'
|
3
3
|
|
4
4
|
class AriaRestClient
|
5
|
-
|
5
|
+
include HTTParty
|
6
6
|
|
7
|
-
|
7
|
+
attr_accessor :client_no, :auth_key, :url
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
9
|
+
def initialize(client_no, auth_key, url)
|
10
|
+
self.client_no = client_no
|
11
|
+
self.auth_key = auth_key
|
12
|
+
self.url = url
|
13
|
+
end
|
14
14
|
|
15
|
-
|
15
|
+
def call(api_name, options = {})
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
17
|
+
defaults = {
|
18
|
+
:output_format => 'json',
|
19
|
+
:client_no => self.client_no,
|
20
|
+
:auth_key => self.auth_key,
|
21
|
+
:rest_call => api_name
|
22
|
+
}
|
23
23
|
|
24
|
-
|
24
|
+
options.merge!(defaults)
|
25
25
|
|
26
|
-
|
26
|
+
result = self.class.post(self.url, :body => options)
|
27
27
|
|
28
|
-
|
29
|
-
|
30
|
-
end
|
28
|
+
return result
|
29
|
+
end
|
31
30
|
|
32
|
-
end
|
31
|
+
end
|
metadata
CHANGED
@@ -1,78 +1,69 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aria_sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
5
|
-
prerelease:
|
4
|
+
version: 0.2.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Aria Systems, Inc.
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2014-
|
11
|
+
date: 2014-10-14 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: httparty
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: '0'
|
19
|
+
version: '0.13'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0'
|
26
|
+
version: '0.13'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: savon
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ~>
|
36
32
|
- !ruby/object:Gem::Version
|
37
|
-
version: '
|
33
|
+
version: '2.5'
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - ~>
|
44
39
|
- !ruby/object:Gem::Version
|
45
|
-
version: '
|
40
|
+
version: '2.5'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: json
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - ~>
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
47
|
+
version: '1.8'
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - ~>
|
60
53
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
54
|
+
version: '1.8'
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: rspec
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- -
|
59
|
+
- - ~>
|
68
60
|
- !ruby/object:Gem::Version
|
69
61
|
version: '0'
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
|
-
- -
|
66
|
+
- - ~>
|
76
67
|
- !ruby/object:Gem::Version
|
77
68
|
version: '0'
|
78
69
|
description: A set of objects to help connect with the Aria Systems REST and SOAP
|
@@ -82,34 +73,33 @@ executables: []
|
|
82
73
|
extensions: []
|
83
74
|
extra_rdoc_files: []
|
84
75
|
files:
|
76
|
+
- lib/aria_sdk.rb
|
77
|
+
- lib/aria_sdk/aria_admintools_rest_client.rb
|
78
|
+
- lib/aria_sdk/aria_core_rest_client.rb
|
85
79
|
- lib/aria_sdk/aria_core_soap_client.rb
|
86
80
|
- lib/aria_sdk/aria_object_query_rest_client.rb
|
87
|
-
- lib/aria_sdk/aria_admintools_rest_client.rb
|
88
81
|
- lib/aria_sdk/aria_rest_client.rb
|
89
|
-
- lib/aria_sdk/aria_core_rest_client.rb
|
90
|
-
- lib/aria_sdk.rb
|
91
82
|
homepage: https://developer.ariasystems.net/
|
92
83
|
licenses: []
|
84
|
+
metadata: {}
|
93
85
|
post_install_message:
|
94
86
|
rdoc_options: []
|
95
87
|
require_paths:
|
96
88
|
- lib
|
97
89
|
required_ruby_version: !ruby/object:Gem::Requirement
|
98
|
-
none: false
|
99
90
|
requirements:
|
100
|
-
- -
|
91
|
+
- - '>='
|
101
92
|
- !ruby/object:Gem::Version
|
102
93
|
version: '0'
|
103
94
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
104
|
-
none: false
|
105
95
|
requirements:
|
106
|
-
- -
|
96
|
+
- - '>='
|
107
97
|
- !ruby/object:Gem::Version
|
108
98
|
version: '0'
|
109
99
|
requirements: []
|
110
100
|
rubyforge_project:
|
111
|
-
rubygems_version:
|
101
|
+
rubygems_version: 2.4.2
|
112
102
|
signing_key:
|
113
|
-
specification_version:
|
103
|
+
specification_version: 4
|
114
104
|
summary: A wrapper for the Aria Systems REST and SOAP APIs
|
115
105
|
test_files: []
|