adobe_connect_api 0.0.13.alpha → 0.0.14.alpha

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.
@@ -1,3 +1,3 @@
1
1
  module AdobeConnectApi
2
- VERSION = "0.0.13.alpha"
2
+ VERSION = "0.0.14.alpha"
3
3
  end
@@ -143,7 +143,14 @@ class AdobeConnectAPI
143
143
  puts query
144
144
 
145
145
  puts "ACS: meeting created"
146
- return res.body
146
+ puts response.body
147
+ data = XmlSimple.xml_in(response.body)
148
+ scos = []
149
+ if data["sco-search-by-field-info"]
150
+ results = data["sco-search-by-field-info"][0]
151
+ scos = results["sco"]
152
+ end
153
+ return AdobeConnectAPI::Result.new(data["status"][0]["code"], scos)
147
154
  # 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
148
155
  end
149
156
 
@@ -307,6 +314,8 @@ class AdobeConnectAPI
307
314
  #filter- and sort-definitions can be added. The filter as "filter" => ... and
308
315
  #the sort as "sort" => ...
309
316
  def query(action, hash = {})
317
+ puts action
318
+ puts hash.inspect
310
319
  # uri = URI.parse("https://130.59.10.31")
311
320
  # http = Net::HTTP.new(uri.host, uri.port)
312
321
  # http.use_ssl = true
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.13.alpha
4
+ version: 0.0.14.alpha
5
5
  prerelease: 7
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-09-25 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: xml-simple
16
- requirement: &2165656260 !ruby/object:Gem::Requirement
16
+ requirement: &2161463000 !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: *2165656260
24
+ version_requirements: *2161463000
25
25
  description: Wrapper to the Adobe Connect API
26
26
  email:
27
27
  - christian.rohrer@switch.ch