adobe_connect_api 0.0.24.alpha → 0.0.25.alpha
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/adobe_connect_api/version.rb +1 -1
- data/lib/adobe_connect_api.rb +7 -3
- metadata +4 -4
data/lib/adobe_connect_api.rb
CHANGED
@@ -147,6 +147,7 @@ class AdobeConnectAPI
|
|
147
147
|
sco_id = data["sco"].first['sco-id']
|
148
148
|
|
149
149
|
#get principal id
|
150
|
+
puts filter.inspect
|
150
151
|
principal_id = get_principal_id(filter)
|
151
152
|
puts "ACS: add principal " + principal_id + " as host to new created meeting " + sco_id
|
152
153
|
|
@@ -158,12 +159,15 @@ class AdobeConnectAPI
|
|
158
159
|
|
159
160
|
# searches the user with the given email address and returns the principal id
|
160
161
|
# e.g. "https://collab-test.switch.ch/api/xml?action=principal-list&filter-email=rfurter@ethz.ch"
|
161
|
-
def get_principal_id(filter)
|
162
|
-
|
162
|
+
def get_principal_id(filter = nil, sort = nil)
|
163
|
+
puts "ACS: get_principal_id"
|
164
|
+
res = query("principal-list",
|
165
|
+
"filter" => filter,
|
166
|
+
"sort" => sort)
|
163
167
|
puts query
|
164
168
|
|
165
169
|
data = XmlSimple.xml_in(res.body)
|
166
|
-
principal_id = data["principal"].first['principal-id']
|
170
|
+
principal_id = data["principal-list"].first['principal-id']
|
167
171
|
|
168
172
|
return principal_id
|
169
173
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adobe_connect_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.25.alpha
|
5
5
|
prerelease: 7
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-09-
|
12
|
+
date: 2012-09-26 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: xml-simple
|
16
|
-
requirement: &
|
16
|
+
requirement: &2156116640 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2156116640
|
25
25
|
description: Wrapper to the Adobe Connect API
|
26
26
|
email:
|
27
27
|
- christian.rohrer@switch.ch
|