developergarden_sdk 0.9.0 → 0.9.1

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.
data/README CHANGED
@@ -43,7 +43,7 @@ You can use the gem from pure Ruby applications and of course from Ruby on Rails
43
43
 
44
44
  require 'rubygems'
45
45
  gem 'developergarden_sdk'
46
- require 'token_Service/token_service'
46
+ require 'token_service/token_service'
47
47
  require 'ip_location_service/ip_location_service'
48
48
 
49
49
  @ip_location_service = IpLocationService::IpLocationService.new("<USER>@t-online.de", "<PASSWORD>")
@@ -64,7 +64,9 @@ You can use the gem from pure Ruby applications and of course from Ruby on Rails
64
64
  === Ruby Example to perform a local search
65
65
  require 'rubygems'
66
66
  gem 'developergarden_sdk'
67
- require 'token_Service/token_service'
67
+ require 'token_service/token_service'
68
+ require 'token_service/token_service'
69
+ require 'local_search_service/local_search_service'
68
70
 
69
71
  @service = LocalSearchService::LocalSearchService.new("<USER>@t-online.de", "<PASSWORD>")
70
72
 
@@ -72,7 +74,7 @@ You can use the gem from pure Ruby applications and of course from Ruby on Rails
72
74
  :what => "music",
73
75
  :near => "Konstanz"
74
76
  }
75
- response = @service.local_search(search_parameter, ServiceEnvironment.MOCK)
77
+ response = @service.local_search(search_parameter, ServiceEnvironment.PRODUCTION)
76
78
 
77
79
  # Show response xml
78
80
  puts response.search_result.to_xml
@@ -80,6 +82,30 @@ You can use the gem from pure Ruby applications and of course from Ruby on Rails
80
82
  lat = results_where_locs_where["LAT"]
81
83
  puts lat
82
84
 
85
+ === Ruby Example to create a conference call
86
+ require 'rubygems'
87
+ gem 'developergarden_sdk'
88
+ require 'token_Service/token_service'
89
+ require 'conference_call_service/conference_call_service'
90
+
91
+ environment = ServiceEnvironment.PRODUCTION
92
+
93
+ service = ConferenceCallService::ConferenceCallService.new("<USERNAME>@t-online.de", "<PASSWORD>")
94
+
95
+ conf_details = ConferenceCallService::ConferenceDetails.new("A very important conf", "A very impressive description", 30)
96
+
97
+ response = service.create_conference("max.mustermann", conf_details, nil, environment)
98
+
99
+ conf_id = response.conference_id
100
+
101
+ participant = ConferenceCallService::ParticipantDetails.new('maxi', 'max', '<NUMBER A>', 'max@spin.to', 1)
102
+ participant2 = ConferenceCallService::ParticipantDetails.new('roger', 'beep', '<NUMBER B>', 'roger@spin.to', 0)
103
+
104
+ service.new_participant(conf_id, participant, environment)
105
+ service.new_participant(conf_id, participant2, environment)
106
+
107
+ service.commit_conference(conf_id, ServiceEnvironment.PRODUCTION)
108
+
83
109
  ==== To use your gem from your Ruby on Rails app
84
110
  In your environment.rb add the following line in the config block:
85
111
  config.gem 'developergarden_sdk'
data/Rakefile CHANGED
@@ -13,7 +13,7 @@ require 'fileutils'
13
13
 
14
14
  spec = Gem::Specification.new do |s|
15
15
  s.name = 'developergarden_sdk'
16
- s.version = '0.9.0'
16
+ s.version = '0.9.1'
17
17
  s.homepage = 'http://www.developergarden.com'
18
18
  s.has_rdoc = true
19
19
  s.extra_rdoc_files = ['README', 'LICENSE']
@@ -123,7 +123,7 @@ module ConferenceCallService
123
123
 
124
124
  # Retrieves that status of the given conference.
125
125
  # ===Parameters
126
- # <tt>conference_id</tt>::
126
+ # <tt>conference_id</tt>:: Id of the conference of interest.
127
127
  # <tt>what</tt>:: Contraints of the list to be retrieved.
128
128
  # <tt>environment</tt>:: Service environment as defined in ServiceLevel.
129
129
  def get_conference_status(conference_id, what = ConferenceConstants.CONFERENCE_LIST_ALL, environment = ServiceEnvironment.MOCK, account = nil)
@@ -225,7 +225,7 @@ module ConferenceCallService
225
225
  # Retrieves that status of the given conference.
226
226
  # ===Parameters
227
227
  # <tt>conference_id</tt>::
228
- # <tt>what</tt>:: Contraints of the list to be retrieved.
228
+ # <tt>what</tt>:: Constraints of the list to be retrieved.
229
229
  # <tt>environment</tt>:: Service environment as defined in ServiceLevel.
230
230
  def remove_participant(conference_id, participant_id, environment = ServiceEnvironment.MOCK, account = nil)
231
231
  response_xml = invoke_authenticated("cc:removeParticipant") do |request, doc|
@@ -289,8 +289,8 @@ module ConferenceCallService
289
289
  # Creates a conference template.
290
290
  # ===Parameters
291
291
  # <tt>owner_id</tt>:: id of the owner of the conference template
292
- # <tt>detail</tt>: details of the conference template. ConferenceDetails Type
293
- # <tt>participants</tt>: optional parameter of the type ParticipantDetail
292
+ # <tt>detail</tt>:: details of the conference template. ConferenceDetails Type
293
+ # <tt>participants</tt>:: optional parameter of the type ParticipantDetail
294
294
  # <tt>environment</tt>:: Service environment as defined in ServiceLevel.
295
295
  def create_conference_template(owner_id, detail, participants = nil, environment = ServiceEnvironment.MOCK, account = nil)
296
296
  response_xml = invoke_authenticated("cc:createConferenceTemplate") do |request, doc|
@@ -317,7 +317,7 @@ module ConferenceCallService
317
317
 
318
318
  # Returns the confernece template with the given id.
319
319
  # ===Parameters
320
- # <tt>template_id</tt>::
320
+ # <tt>template_id</tt>:: Id of the template of interest.
321
321
  # <tt>environment</tt>:: Service environment as defined in ServiceLevel.
322
322
  def get_conference_template(template_id, environment = ServiceEnvironment.MOCK, account = nil)
323
323
  response_xml = invoke_authenticated("cc:getConferenceTemplate") do |request, doc|
@@ -65,8 +65,6 @@ module LocalSearchService
65
65
  end
66
66
  end
67
67
 
68
- puts response.to_xml
69
-
70
68
  response = LocalSearchResponse.new(response)
71
69
 
72
70
  return response
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: developergarden_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Fischer / Aperto move GmbH
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-18 00:00:00 +01:00
12
+ date: 2009-12-22 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency