webex_xml_api 0.1.0
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.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +1 -0
- data.tar.gz.sig +1 -0
- data/.gitignore +12 -0
- data/.rspec +2 -0
- data/.rubocop.yml +16 -0
- data/.simplecov +1 -0
- data/.travis.yml +8 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +94 -0
- data/Rakefile +7 -0
- data/certs/erolms.pem +21 -0
- data/lib/webex_xml_api.rb +11 -0
- data/lib/webex_xml_api/common.rb +52 -0
- data/lib/webex_xml_api/exceptions.rb +21 -0
- data/lib/webex_xml_api/meeting/create_meeting.rb +326 -0
- data/lib/webex_xml_api/meeting/del_meeting.rb +44 -0
- data/lib/webex_xml_api/meeting/get_meeting.rb +44 -0
- data/lib/webex_xml_api/meeting/getjoinurl_meeting.rb +45 -0
- data/lib/webex_xml_api/security_context.rb +43 -0
- data/lib/webex_xml_api/user/get_user.rb +43 -0
- data/lib/webex_xml_api/version.rb +3 -0
- data/spec/fixtures/meeting_create_meeting_request.xml +9 -0
- data/spec/fixtures/meeting_create_meeting_response_bad.xml +12 -0
- data/spec/fixtures/meeting_create_meeting_response_good.xml +12 -0
- data/spec/fixtures/meeting_del_meeting_request.xml +9 -0
- data/spec/fixtures/meeting_del_meeting_response_bad.xml +12 -0
- data/spec/fixtures/meeting_del_meeting_response_good.xml +12 -0
- data/spec/fixtures/meeting_get_meeting_request.xml +9 -0
- data/spec/fixtures/meeting_get_meeting_response_bad.xml +12 -0
- data/spec/fixtures/meeting_get_meeting_response_good.xml +12 -0
- data/spec/fixtures/meeting_getjoinurl_meeting_request.xml +9 -0
- data/spec/fixtures/meeting_getjoinurl_meeting_response_bad.xml +12 -0
- data/spec/fixtures/meeting_getjoinurl_meeting_response_good.xml +12 -0
- data/spec/fixtures/user_get_user_request.xml +9 -0
- data/spec/fixtures/user_get_user_response_bad.xml +12 -0
- data/spec/fixtures/user_get_user_response_good.xml +12 -0
- data/spec/spec_helper.rb +9 -0
- data/spec/webex_xml_api/common_spec.rb +7 -0
- data/spec/webex_xml_api/exceptions_spec.rb +54 -0
- data/spec/webex_xml_api/meeting/create_meeting_spec.rb +131 -0
- data/spec/webex_xml_api/meeting/del_meeting_spec.rb +85 -0
- data/spec/webex_xml_api/meeting/get_meeting_spec.rb +85 -0
- data/spec/webex_xml_api/meeting/getjoinurl_meeting_spec.rb +87 -0
- data/spec/webex_xml_api/security_context_spec.rb +60 -0
- data/spec/webex_xml_api/user/get_user_spec.rb +82 -0
- data/spec/webex_xml_api_spec.rb +7 -0
- data/webex_xml_api.gemspec +32 -0
- metadata +249 -0
- metadata.gz.sig +1 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: cc6439b697c1c55511d7d068eb80998801ea933c
|
4
|
+
data.tar.gz: 17c74a9dcf533b0af473db71e2c803f6465f9984
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 402c5e713cf1be2f30210a39fa37c89bd315bd14180b40eaef268b67ae6e3453d7502eb985f64c6a80886dbebfd4a610bc968f14bfca19daea8b6860ad66855e
|
7
|
+
data.tar.gz: f73f70f9856cf2c17b04137d93e701b2469bf573dcb7debe50804b8dc86c46a5a7fcc310885e3baeb68a2de0214cb41b47b6cea0ddaf28bee4845a2dd9c2e63c
|
checksums.yaml.gz.sig
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
������RB#���pzeX�����Er��S!ě��`�:��j��2��kS�m��=L��hr�AC&�a16��ʑa��āS��^<5�YM{hc�2e��j��Z�����)Kv;���3ӔX�F��l��g����;p�o%�
|
data.tar.gz.sig
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
���>��'�������4�U�Aqw ��$�GTn� �] 8�M�b�C�1w��Ζ�4���&P�N��n|{����;�R:�tlZM|6)R���P�Vf�@LE�N��ޅE\q�p,�P�Nٓ!.ذj�g��u<���
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
data/.simplecov
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
SimpleCov.start "test_frameworks"
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Erol Zavidic
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,94 @@
|
|
1
|
+
# WebexXmlApi
|
2
|
+
|
3
|
+
[](https://travis-ci.org/erolms/webex_xml_api)
|
4
|
+
|
5
|
+
The WebexXmlApi gem provides an interface to the Cisco WebEx Service for creating, scheduling and administering the Meetings. This gem is featuring a subset of an entire WebEx interface using the XML format.
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'webex_xml_api'
|
13
|
+
```
|
14
|
+
|
15
|
+
WebexXmlApi is cryptographically signed. To be sure the gem you install hasn’t been tampered with:
|
16
|
+
|
17
|
+
Add my public key (if you haven’t already) as a trusted certificate:
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
gem cert --add <(curl -Ls https://raw.github.com/erolms/webex_xml_api/master/certs/erolms.pem)
|
21
|
+
```
|
22
|
+
|
23
|
+
The MediumSecurity trust profile will verify signed gems, but allow the installation of unsigned dependencies.
|
24
|
+
|
25
|
+
This is necessary because not all of WebexXmlApi’s dependencies are signed, so we cannot use HighSecurity.
|
26
|
+
|
27
|
+
Execute:
|
28
|
+
|
29
|
+
```ruby
|
30
|
+
$ bundle
|
31
|
+
```
|
32
|
+
|
33
|
+
Or install it yourself as:
|
34
|
+
|
35
|
+
```ruby
|
36
|
+
$ gem install webex_xml_api -P MediumSecurity
|
37
|
+
```
|
38
|
+
|
39
|
+
## Usage
|
40
|
+
|
41
|
+
WebEx XML API requires you to provide the WebEx Login credentials in some way. Following are required parameters for successful authentication agains WebEx:
|
42
|
+
|
43
|
+
1. **site_name** (Your Site Name - easily identified in the webex.com URL)
|
44
|
+
2. **webex_id**
|
45
|
+
3. **password** or **session_ticket**
|
46
|
+
|
47
|
+
To create a WebEx Meeting you need to use **WebexXmlApi::Meeting::CreateMeeting** Service call. Here's an example (output from the console):
|
48
|
+
|
49
|
+
```ruby
|
50
|
+
sm = WebexXmlApi::Meeting::CreateMeeting.new(site_name: 'test', webex_id: 'username', password: 'password')
|
51
|
+
=> #<WebexXmlApi::Meeting::CreateMeeting:0x007ff2f99f0a30 @security_context=#<WebexXmlApi::SecurityContext:0x0... (output cut for brevity)
|
52
|
+
sm.conf_name = 'Name of the Telephone Conference'
|
53
|
+
=> "Name of the Telephone Conference"
|
54
|
+
sm.agenda = 'Meeting Agenda'
|
55
|
+
=> "Meeting Agenda"
|
56
|
+
sm.start_date = '07/29/2016 15:00:00' # note the MM/DD/YYYY HH:MM:SS format, or provide a DateTime object
|
57
|
+
=> "07/29/2016 15:00:00"
|
58
|
+
sm.duration = '30' # in Minutes
|
59
|
+
=> "30"
|
60
|
+
sm.open_time = '900' # time before the start in seconds where participants can join the meeting
|
61
|
+
sm.send_request
|
62
|
+
=> {"meetingkey"=>"123456789", "iCalendarURL"=>{"host"=>"https://test.webex.com/test/j.php?MTID=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "attendee"=>"https://test.webex.com/test/j.php?MTID=bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"}, "guestToken"=>"cccccccccccccccccccccccccccccccc", "type"=>"meet:createMeetingResponse"}
|
63
|
+
```
|
64
|
+
|
65
|
+
This will create a very basic meeting for you.
|
66
|
+
|
67
|
+
Using the **meetingkey** you can retrieve further details of your Meeting (**WebexXmlApi::Meeting::GetMeeting**), get URL for joining the meeting (**WebexXmlApi::Meeting::GetjoinurlMeeting**) or delete it (**WebexXmlApi::Meeting::DelMeeting**).
|
68
|
+
|
69
|
+
Further usage details can be found in [Wiki Site](https://github.com/erolms/webex_xml_api/wiki) here at GitHub or in the gem documentation.
|
70
|
+
|
71
|
+
## Development
|
72
|
+
|
73
|
+
After checking out the repo, run `bundle install` to install dependencies. Then, run `rake spec` to run the tests.
|
74
|
+
|
75
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
76
|
+
|
77
|
+
## Contributing
|
78
|
+
|
79
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/erolms/webex_xml_api.
|
80
|
+
|
81
|
+
1. Fork it
|
82
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
83
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
84
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
85
|
+
5. Create new Pull Request
|
86
|
+
|
87
|
+
## License
|
88
|
+
|
89
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
90
|
+
|
91
|
+
## Copyrights
|
92
|
+
|
93
|
+
[WebEx](https://www.webex.com/) is a Trademark of the [Cisco](https://www.cisco.com/) Corporation.
|
94
|
+
|
data/Rakefile
ADDED
data/certs/erolms.pem
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
-----BEGIN CERTIFICATE-----
|
2
|
+
MIIDfDCCAmSgAwIBAgIBATANBgkqhkiG9w0BAQUFADBCMQ8wDQYDVQQDDAZlcm9s
|
3
|
+
bXMxGjAYBgoJkiaJk/IsZAEZFgpnb29nbGVtYWlsMRMwEQYKCZImiZPyLGQBGRYD
|
4
|
+
Y29tMB4XDTE2MDcyMTE5NDAxNloXDTE3MDcyMTE5NDAxNlowQjEPMA0GA1UEAwwG
|
5
|
+
ZXJvbG1zMRowGAYKCZImiZPyLGQBGRYKZ29vZ2xlbWFpbDETMBEGCgmSJomT8ixk
|
6
|
+
ARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKF/jkTV5Dfl
|
7
|
+
2cxLTasgJVBhcQu7/46V9xmoQFJV71GeNhaLWII38H8CNJ1Z1kKeYVuCfB+AVEFB
|
8
|
+
f+5dXU4NFv5g9gupphTAvCjndhsx8UfS8xk3TBogDFJi8VhbdoJVZf/nUKqEOzFW
|
9
|
+
WOQWsOUYrbCHE97SLP4YMzPmrQbeudFTZhkIooJTfCgJMTRByQkIvhGovmPEC2iK
|
10
|
+
SCijh3gshMnYtWohU4/TcpJFFlSvN5vE0qGRhuT7H5lIE17koc9BLY/ds7Xb3K+6
|
11
|
+
BNpg1Dawkfj4xAwCvsKA9nUVJtO4+CyJ28de3G0ULbJM0ZIbny3bxcj1bWoxpJ3r
|
12
|
+
Mh1i1gxXyj8CAwEAAaN9MHswCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0O
|
13
|
+
BBYEFFPwzKI9ERlafHGS4lYAEaQRFKRdMCAGA1UdEQQZMBeBFWVyb2xtc0Bnb29n
|
14
|
+
bGVtYWlsLmNvbTAgBgNVHRIEGTAXgRVlcm9sbXNAZ29vZ2xlbWFpbC5jb20wDQYJ
|
15
|
+
KoZIhvcNAQEFBQADggEBAH2w8AzqS+cQIN7fU9mtXHRL4DVAJ7sMiqOKl+tylQwz
|
16
|
+
Hm85SB3s1Mnr5zHg3ktWiCg2f6it0Q3hwrqiMmYr/HhMgSV45pDeMOx8G35vkiSc
|
17
|
+
6Q9eOpX1EW/iP7o+bz1ApLRzJhNljKLRM5Ab+AyYhBWOV9GiHIR1Ezfa1Nvp4PrH
|
18
|
+
VXSbuNITNTsGyfMJPjRZEsDBHCiUaf4vKnTHLhdWchM+S9x+mgZtgJKhl4L5bGfY
|
19
|
+
IDTbBxqvlx+U6M7GX9uKycRxR3P7dvOQ30p888C7crtRRmxvBl2wE/fmHiK4gQ17
|
20
|
+
NREDtx+Bo3lOQwgUmOzofKQbE/vo0DRKogbZiCj30IY=
|
21
|
+
-----END CERTIFICATE-----
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'httparty'
|
2
|
+
require 'nokogiri'
|
3
|
+
require 'webex_xml_api/common'
|
4
|
+
require 'webex_xml_api/exceptions'
|
5
|
+
require 'webex_xml_api/meeting/create_meeting'
|
6
|
+
require 'webex_xml_api/meeting/del_meeting'
|
7
|
+
require 'webex_xml_api/meeting/get_meeting'
|
8
|
+
require 'webex_xml_api/meeting/getjoinurl_meeting'
|
9
|
+
require 'webex_xml_api/security_context'
|
10
|
+
require 'webex_xml_api/user/get_user'
|
11
|
+
require 'webex_xml_api/version'
|
@@ -0,0 +1,52 @@
|
|
1
|
+
module WebexXmlApi
|
2
|
+
module Common
|
3
|
+
# POST request to the WebEx XML Service
|
4
|
+
def post_webex_request(site_name, request)
|
5
|
+
endpoint = "https://#{site_name}.webex.com/WBXService/XMLService".freeze
|
6
|
+
HTTParty.post(endpoint, body: request,
|
7
|
+
headers: { 'Content-Type' => 'application/xml' })
|
8
|
+
end
|
9
|
+
|
10
|
+
# Check WebEx Response status and raise Exception if FAILURE
|
11
|
+
def check_response_and_return_data(resp)
|
12
|
+
status = resp.parsed_response['message']['header']['response']['result']
|
13
|
+
return resp.parsed_response['message']['body']['bodyContent'] if
|
14
|
+
status == 'SUCCESS'
|
15
|
+
c = resp.parsed_response['message']['header']['response']['exceptionID']
|
16
|
+
t = resp.parsed_response['message']['header']['response']['reason']
|
17
|
+
raise WebexXmlApi::RequestFailed.new(resp), "Error #{c}: #{t}"
|
18
|
+
end
|
19
|
+
|
20
|
+
# Create WebEx XML Request
|
21
|
+
def create_xml_request(sec_context, req_type, body_content)
|
22
|
+
namespaces = {
|
23
|
+
'xmlns:serv' => 'http://www.webex.com/schemas/2002/06/service',
|
24
|
+
'xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance',
|
25
|
+
'xsi:schemaLocation' => 'http://www.webex.com/schemas/2002/06/service'
|
26
|
+
}.freeze
|
27
|
+
builder = Nokogiri::XML::Builder.new(encoding: 'UTF-8') do |xml|
|
28
|
+
xml.message(namespaces) do
|
29
|
+
xml.<< sec_context
|
30
|
+
xml.body do
|
31
|
+
process_object('bodyContent', body_content, xml, req_type)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
builder.doc.root.name = 'serv:message'
|
36
|
+
builder.to_xml.gsub(%r{(<\w+\/>)}, '')
|
37
|
+
end
|
38
|
+
|
39
|
+
def process_object(label, obj, xml, req_type)
|
40
|
+
xml.send(label) do
|
41
|
+
xml.parent['xsi:type'] = req_type if label == 'bodyContent'
|
42
|
+
obj.each do |key, value|
|
43
|
+
if value.is_a?(Array) || value.is_a?(Hash)
|
44
|
+
process_object(key, value, xml, req_type)
|
45
|
+
else
|
46
|
+
xml.send(key, value) unless value.nil?
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module WebexXmlApi
|
2
|
+
# @abstact Exceptions raised by WebexXmlApi inherit from Error
|
3
|
+
class Error < StandardError; end
|
4
|
+
|
5
|
+
# Exception raised if you do not provide enough arguments for the Request
|
6
|
+
# Object to be valid
|
7
|
+
class NotEnoughArguments < Error; end
|
8
|
+
|
9
|
+
# @abstract Exception raised if request against WebEx Service failed
|
10
|
+
class RequestFailed < Error
|
11
|
+
# Returns the error received by WebEx XML API Service
|
12
|
+
# @return [Hash] An object with error code and message
|
13
|
+
attr_reader :response
|
14
|
+
|
15
|
+
# Instantiate an instance of RequestFailed with error Object
|
16
|
+
# @param [Object] An object with response received by WebEx Service
|
17
|
+
def initialize(response)
|
18
|
+
@response ||= response
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,326 @@
|
|
1
|
+
module WebexXmlApi
|
2
|
+
module Meeting
|
3
|
+
class CreateMeeting
|
4
|
+
include WebexXmlApi::Common
|
5
|
+
|
6
|
+
REQUEST_TYPE =
|
7
|
+
'java:com.webex.service.binding.meeting.CreateMeeting'.freeze
|
8
|
+
|
9
|
+
attr_accessor :security_context, :meeting
|
10
|
+
attr_reader :request, :response
|
11
|
+
|
12
|
+
def initialize(attributes = {})
|
13
|
+
@security_context ||= WebexXmlApi::SecurityContext.new(attributes)
|
14
|
+
@meeting ||= []
|
15
|
+
init_meeting_object
|
16
|
+
end
|
17
|
+
|
18
|
+
def to_xml
|
19
|
+
raise WebexXmlApi::NotEnoughArguments,
|
20
|
+
'Meeting::CreateMeeting' unless valid?
|
21
|
+
create_xml_request(@security_context.to_xml, REQUEST_TYPE, @meeting)
|
22
|
+
end
|
23
|
+
|
24
|
+
def valid?(context = self)
|
25
|
+
return false if context.conf_name.nil?
|
26
|
+
return false if context.start_date.nil? || context.duration.nil?
|
27
|
+
true
|
28
|
+
end
|
29
|
+
|
30
|
+
def send_request
|
31
|
+
@request = to_xml
|
32
|
+
@response = post_webex_request(security_context.site_name, @request)
|
33
|
+
check_response_and_return_data(@response)
|
34
|
+
end
|
35
|
+
|
36
|
+
# various getters and setter from here
|
37
|
+
def conf_name
|
38
|
+
@meeting['metaData']['confName']
|
39
|
+
end
|
40
|
+
|
41
|
+
def conf_name=(str)
|
42
|
+
@meeting['metaData']['confName'] = str
|
43
|
+
end
|
44
|
+
|
45
|
+
def agenda
|
46
|
+
@meeting['metaData']['agenda']
|
47
|
+
end
|
48
|
+
|
49
|
+
def agenda=(str)
|
50
|
+
@meeting['metaData']['agenda'] = str
|
51
|
+
end
|
52
|
+
|
53
|
+
def meeting_password
|
54
|
+
@meeting['accessControl']['meetingPassword']
|
55
|
+
end
|
56
|
+
|
57
|
+
def meeting_password=(str)
|
58
|
+
@meeting['accessControl']['meetingPassword'] = str
|
59
|
+
end
|
60
|
+
|
61
|
+
def start_date
|
62
|
+
@meeting['schedule']['startDate']
|
63
|
+
end
|
64
|
+
|
65
|
+
def start_date=(str)
|
66
|
+
if str.is_a? String
|
67
|
+
@meeting['schedule']['startDate'] = str
|
68
|
+
elsif str.is_a? DateTime
|
69
|
+
@meeting['schedule']['startDate'] = str.strftime('%m/%d/%Y %H:%M:%S')
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
def duration
|
74
|
+
@meeting['schedule']['duration']
|
75
|
+
end
|
76
|
+
|
77
|
+
def duration=(str)
|
78
|
+
@meeting['schedule']['duration'] = str
|
79
|
+
end
|
80
|
+
|
81
|
+
def open_time
|
82
|
+
@meeting['schedule']['openTime']
|
83
|
+
end
|
84
|
+
|
85
|
+
def open_time=(str)
|
86
|
+
@meeting['schedule']['openTime'] = str
|
87
|
+
end
|
88
|
+
|
89
|
+
def join_teleconf_before_host
|
90
|
+
@meeting['schedule']['joinTeleconfBeforeHost']
|
91
|
+
end
|
92
|
+
|
93
|
+
def join_teleconf_before_host=(str)
|
94
|
+
@meeting['schedule']['joinTeleconfBeforeHost'] = str
|
95
|
+
end
|
96
|
+
|
97
|
+
def first_attendee_as_presenter
|
98
|
+
@meeting['schedule']['firstAttendeeAsPresenter']
|
99
|
+
end
|
100
|
+
|
101
|
+
def first_attendee_as_presenter=(str)
|
102
|
+
@meeting['schedule']['firstAttendeeAsPresenter'] = str
|
103
|
+
end
|
104
|
+
|
105
|
+
def telephony_support
|
106
|
+
@meeting['telephony']['telephonySupport']
|
107
|
+
end
|
108
|
+
|
109
|
+
def telephony_support=(str)
|
110
|
+
@meeting['telephony']['telephonySupport'] = str
|
111
|
+
end
|
112
|
+
|
113
|
+
def intl_local_call_in
|
114
|
+
@meeting['telephony']['intlLocalCallIn']
|
115
|
+
end
|
116
|
+
|
117
|
+
def intl_local_call_in=(str)
|
118
|
+
@meeting['telephony']['intlLocalCallIn'] = str
|
119
|
+
end
|
120
|
+
|
121
|
+
def teleconf_location
|
122
|
+
@meeting['telephony']['teleconfLocation']
|
123
|
+
end
|
124
|
+
|
125
|
+
def teleconf_location=(str)
|
126
|
+
@meeting['telephony']['teleconfLocation'] = str
|
127
|
+
end
|
128
|
+
|
129
|
+
# rubocop:disable PredicateName
|
130
|
+
def is_mp_audio
|
131
|
+
@meeting['telephony']['isMPAudio']
|
132
|
+
end
|
133
|
+
|
134
|
+
def is_mp_audio=(str)
|
135
|
+
@meeting['telephony']['isMPAudio'] = str
|
136
|
+
end
|
137
|
+
# rubocop:enable PredicateName
|
138
|
+
|
139
|
+
def enable_chat
|
140
|
+
@meeting['enableOptions']['chat']
|
141
|
+
end
|
142
|
+
|
143
|
+
def enable_chat=(str)
|
144
|
+
@meeting['enableOptions']['chat'] = str
|
145
|
+
end
|
146
|
+
|
147
|
+
def enable_audio_video
|
148
|
+
@meeting['enableOptions']['audioVideo']
|
149
|
+
end
|
150
|
+
|
151
|
+
def enable_audio_video=(str)
|
152
|
+
@meeting['enableOptions']['audioVideo'] = str
|
153
|
+
end
|
154
|
+
|
155
|
+
private
|
156
|
+
|
157
|
+
def init_meeting_object
|
158
|
+
@meeting = {
|
159
|
+
'accessControl' => {
|
160
|
+
'listToPublic' => nil,
|
161
|
+
'isPublic' => nil,
|
162
|
+
'meetingPassword' => nil,
|
163
|
+
'enforcePassword' => nil
|
164
|
+
},
|
165
|
+
'metaData' => {
|
166
|
+
'confName' => nil,
|
167
|
+
'meetingType' => nil,
|
168
|
+
'agenda' => nil,
|
169
|
+
'greeting' => nil,
|
170
|
+
'location' => nil,
|
171
|
+
'invitation' => nil,
|
172
|
+
'setNonMTOptions' => nil,
|
173
|
+
'sessionTemplate' => nil,
|
174
|
+
'isInternal' => nil
|
175
|
+
},
|
176
|
+
'schedule' => {
|
177
|
+
'startDate' => nil,
|
178
|
+
'timeZoneID' => nil,
|
179
|
+
'timeZone' => nil,
|
180
|
+
'duration' => nil,
|
181
|
+
'openTime' => nil,
|
182
|
+
'hostWebExID' => nil,
|
183
|
+
'templateFilePath' => nil,
|
184
|
+
'showFilePath' => nil,
|
185
|
+
'showFileStartMode' => nil,
|
186
|
+
'showFileContPlayFlag' => nil,
|
187
|
+
'showFileInterVal' => nil,
|
188
|
+
'entryExitTone' => nil,
|
189
|
+
'extURL' => nil,
|
190
|
+
'extNotifyTime' => nil,
|
191
|
+
'joinNotifyURL' => nil,
|
192
|
+
'joinTeleconfBeforeHost' => nil,
|
193
|
+
'firstAttendeeAsPresenter' => nil
|
194
|
+
},
|
195
|
+
'telephony' => {
|
196
|
+
'telephonySupport' => nil,
|
197
|
+
'numPhoneLines' => nil,
|
198
|
+
'extTelephonyURL' => nil,
|
199
|
+
'extTelephonyDescription' => nil,
|
200
|
+
'enableTSP' => nil,
|
201
|
+
'tspAccountIndex' => nil,
|
202
|
+
'personalAccountIndex' => nil,
|
203
|
+
'intlLocalCallIn' => nil,
|
204
|
+
'teleconfLocation' => nil,
|
205
|
+
'callInNum' => nil,
|
206
|
+
'tspConference' => nil,
|
207
|
+
'tspAccessCodeOrder' => nil,
|
208
|
+
'tollFree' => nil,
|
209
|
+
'isMPAudio' => nil
|
210
|
+
},
|
211
|
+
'participants' => {
|
212
|
+
'maxUserNumber' => nil,
|
213
|
+
'attendees' => nil
|
214
|
+
},
|
215
|
+
'enableOptions' => {
|
216
|
+
'chat' => nil,
|
217
|
+
'poll' => nil,
|
218
|
+
'audioVideo' => nil,
|
219
|
+
'attendeeList' => nil,
|
220
|
+
'fileShare' => nil,
|
221
|
+
'presentation' => nil,
|
222
|
+
'applicationShare' => nil,
|
223
|
+
'desktopShare' => nil,
|
224
|
+
'webTour' => nil,
|
225
|
+
'meetingRecord' => nil,
|
226
|
+
'annotation' => nil,
|
227
|
+
'importDocument' => nil,
|
228
|
+
'saveDocument' => nil,
|
229
|
+
'printDocument' => nil,
|
230
|
+
'pointer' => nil,
|
231
|
+
'switchPage' => nil,
|
232
|
+
'fullScreen' => nil,
|
233
|
+
'thumbnail' => nil,
|
234
|
+
'zoom' => nil,
|
235
|
+
'copyPage' => nil,
|
236
|
+
'rcAppShare' => nil,
|
237
|
+
'rcDesktopShare' => nil,
|
238
|
+
'rcWebTour' => nil,
|
239
|
+
'javaClient' => nil,
|
240
|
+
'nativeClient' => nil,
|
241
|
+
'attendeeRecordMeeting' => nil,
|
242
|
+
'voip' => nil,
|
243
|
+
'faxIntoMeeting' => nil,
|
244
|
+
'enableReg' => nil,
|
245
|
+
'supportQandA' => nil,
|
246
|
+
'supportFeedback' => nil,
|
247
|
+
'supportBreakoutSessions' => nil,
|
248
|
+
'supportPanelists' => nil,
|
249
|
+
'supportRemoteComputer' => nil,
|
250
|
+
'supportShareWebContent' => nil,
|
251
|
+
'supportUCFWebPages' => nil,
|
252
|
+
'supportUCFRichMedia' => nil,
|
253
|
+
'autoDeleteAfterMeetingEnd' => nil,
|
254
|
+
'viewAnyDoc' => nil,
|
255
|
+
'viewAnyPage' => nil,
|
256
|
+
'allowContactPrivate' => nil,
|
257
|
+
'chatHost' => nil,
|
258
|
+
'chatPresenter' => nil,
|
259
|
+
'chatAllAttendees' => nil,
|
260
|
+
'multiVideo' => nil,
|
261
|
+
'notes' => nil,
|
262
|
+
'closedCaptions' => nil,
|
263
|
+
'singleNote' => nil,
|
264
|
+
'sendFeedback' => nil,
|
265
|
+
'displayQuickStartHost' => nil,
|
266
|
+
'displayQuickStartAttendees' => nil,
|
267
|
+
'supportE2E' => nil,
|
268
|
+
'supportPKI' => nil,
|
269
|
+
'HQvideo' => nil,
|
270
|
+
'HDvideo' => nil,
|
271
|
+
'viewVideoThumbs' => nil
|
272
|
+
},
|
273
|
+
'tracking' => {
|
274
|
+
'trackingCode1' => nil,
|
275
|
+
'trackingCode2' => nil,
|
276
|
+
'trackingCode3' => nil,
|
277
|
+
'trackingCode4' => nil,
|
278
|
+
'trackingCode5' => nil,
|
279
|
+
'trackingCode6' => nil,
|
280
|
+
'trackingCode7' => nil,
|
281
|
+
'trackingCode8' => nil,
|
282
|
+
'trackingCode9' => nil,
|
283
|
+
'trackingCode10' => nil
|
284
|
+
},
|
285
|
+
'repeat' => {
|
286
|
+
'repeatType' => nil,
|
287
|
+
'interval' => nil,
|
288
|
+
'afterMeetingNumber' => nil,
|
289
|
+
'dayInWeek' => nil,
|
290
|
+
'expirationDate' => nil,
|
291
|
+
'dayInMonth' => nil,
|
292
|
+
'weekInMonth' => nil,
|
293
|
+
'monthInYear' => nil,
|
294
|
+
'dayInYear' => nil,
|
295
|
+
'isException' => nil,
|
296
|
+
'seriesMeetingKey' => nil,
|
297
|
+
'hasException' => nil
|
298
|
+
},
|
299
|
+
'remind' => {
|
300
|
+
'enableReminder' => nil,
|
301
|
+
'emails' => nil,
|
302
|
+
'sendEmail' => nil,
|
303
|
+
'mobile' => nil,
|
304
|
+
'sendMobile' => nil,
|
305
|
+
'daysAhead' => nil,
|
306
|
+
'hoursAhead' => nil,
|
307
|
+
'minutesAhead' => nil
|
308
|
+
},
|
309
|
+
'attendeeOptions' => {
|
310
|
+
'request' => nil,
|
311
|
+
'registration' => nil,
|
312
|
+
'auto' => nil,
|
313
|
+
'emailInvitations' => nil,
|
314
|
+
'participantLimit' => nil,
|
315
|
+
'excludePassword' => nil,
|
316
|
+
'joinRequiresAccount' => nil
|
317
|
+
},
|
318
|
+
'assistService' => {
|
319
|
+
'assistRequest' => nil,
|
320
|
+
'assistConfirm' => nil
|
321
|
+
}
|
322
|
+
}
|
323
|
+
end
|
324
|
+
end
|
325
|
+
end
|
326
|
+
end
|