adobe_connect_api 0.0.8.alpha → 0.0.9.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.8.alpha"
2
+ VERSION = "0.0.9.alpha"
3
3
  end
@@ -255,6 +255,28 @@ class AdobeConnectAPI
255
255
  return AdobeConnectAPI::Result.new(data["status"][0]["code"], rows)
256
256
  end
257
257
 
258
+ def search_meeting(name)
259
+ action = "sco-search-by-field&query=" + name + "&field=name"
260
+ uri = URI.parse(AC_HOST + "/api/xml?action=#{action}")
261
+ http = Net::HTTP.new(uri.host, uri.port)
262
+ if uri.scheme == "https"
263
+ http.use_ssl=true
264
+ http.verify_mode = OpenSSL::SSL::VERIFY_NONE
265
+ end
266
+ request = Net::HTTP::Get.new(uri.request_uri)
267
+ if @sessionid
268
+ request.add_field("Cookie", "BREEZESESSION="+@sessionid)
269
+ end
270
+ puts request.path
271
+ response = http.request(request)
272
+
273
+ puts response.body
274
+ data = XmlSimple.xml_in(response.body)
275
+ if data["sco-search-by-field-info"]
276
+ results = data["sco-search-by-field-info"][0]
277
+ return results["sco"]
278
+ end
279
+
258
280
  #sends a query to the server and returns the http response. Parameters,
259
281
  #filter- and sort-definitions can be added. The filter as "filter" => ... and
260
282
  #the sort as "sort" => ...
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.8.alpha
4
+ version: 0.0.9.alpha
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-09-24 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: xml-simple
16
- requirement: &2153220160 !ruby/object:Gem::Requirement
16
+ requirement: &2153339500 !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: *2153220160
24
+ version_requirements: *2153339500
25
25
  description: Wrapper to the Adobe Connect API
26
26
  email:
27
27
  - christian.rohrer@switch.ch