adobe_connect_api 0.0.38.alpha → 0.0.39.alpha

Sign up to get free protection for your applications and to get access to all the features.
@@ -127,12 +127,6 @@ class AdobeConnectAPI
127
127
  # create a new meeting in Adobe Connect
128
128
  # e.g. "https://collab-test.switch.ch/api/xml?action=sco-update&type=meeting&name=API-Test&folder-id=12578070&date-begin=2012-06-15T17:00&date-end=2012-06-15T23:00&url-path=apitest"
129
129
  def create_meeting_with_host(name, folder_id, url_path, filter)
130
-
131
- # TODO KG: get folder_id
132
- if folder_id == nil
133
- folder_id = 12578070
134
- end
135
-
136
130
  puts "ACS create meeting with name, folder_id and url_path: " + name + folder_id.to_s + url_path
137
131
 
138
132
  res = query("sco-update",
@@ -181,6 +175,28 @@ class AdobeConnectAPI
181
175
  rows.first["principal-id"] unless rows.nil?
182
176
  end
183
177
 
178
+ def get_my_meetings_folder_id(email)
179
+ # res = query("sco-shortcuts")
180
+ # data = XmlSimple.xml_in(res.body)
181
+ # if data["shortcuts"]
182
+ # data["shortcuts"].each do |trans|
183
+ # if trans["sco"]["type"] == "user-meetings"
184
+ # tree_id = trans["sco"]["sco-id"]
185
+ # break
186
+ # end
187
+ # end
188
+
189
+ # NOTE: this id does not change unless we set up AC new
190
+ tree_id = 14
191
+
192
+ filter = AdobeConnectApi::FilterDefinition.new
193
+ filter["email"] == contact_mail
194
+
195
+ res = sco_contents(tree_id, filter)
196
+ # should not contain more than 1 result
197
+ return res.rows.first["sco-id"]
198
+ end
199
+
184
200
  # e.g. "https://collab-test.switch.ch/api/xml?action=permissions-update&principal-id=12578066&acl-id=13112626&permission-id=host"
185
201
  def permissions_update(principal_id, acl_id, permission_id)
186
202
  res = query("permissions-update",
@@ -327,21 +343,6 @@ class AdobeConnectAPI
327
343
  res = query("sco-search-by-field",
328
344
  "query" => name,
329
345
  "field" => "name")
330
- # action = "sco-search-by-field&query=" + name + "&field=name"
331
- # uri = URI.parse(AC_HOST + "/api/xml?action=#{action}")
332
- # http = Net::HTTP.new(uri.host, uri.port)
333
- # if uri.scheme == "https"
334
- # http.use_ssl=true
335
- # http.verify_mode = OpenSSL::SSL::VERIFY_NONE
336
- # end
337
- # request = Net::HTTP::Get.new(uri.request_uri)
338
- # if @sessionid
339
- # request.add_field("Cookie", "BREEZESESSION="+@sessionid)
340
- # end
341
- # puts request.path
342
- # response = http.request(request)
343
-
344
- puts res.body
345
346
  data = XmlSimple.xml_in(res.body)
346
347
  scos = []
347
348
  if data["sco-search-by-field-info"]
@@ -1,3 +1,3 @@
1
1
  module AdobeConnectApi
2
- VERSION = "0.0.38.alpha"
2
+ VERSION = "0.0.39.alpha"
3
3
  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.38.alpha
4
+ version: 0.0.39.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-26 00:00:00.000000000Z
12
+ date: 2012-09-27 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: xml-simple
16
- requirement: &2169850480 !ruby/object:Gem::Requirement
16
+ requirement: &2153493160 !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: *2169850480
24
+ version_requirements: *2153493160
25
25
  description: Wrapper to the Adobe Connect API
26
26
  email:
27
27
  - christian.rohrer@switch.ch