webex 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/webex/meeting/action.rb +15 -15
- data/lib/webex/meeting/attendee.rb +12 -12
- data/lib/webex/meeting/presenter.rb +15 -15
- data/lib/webex/meeting/registration.rb +25 -25
- data/lib/webex/meeting/report.rb +15 -15
- data/lib/webex/meeting/schedule.rb +0 -2
- data/lib/webex/user/activation.rb +0 -2
- data/lib/webex/user/file.rb +0 -2
- data/lib/webex/user/partner.rb +0 -2
- data/lib/webex/user/registration.rb +40 -40
- data/lib/webex/user/report.rb +0 -2
- data/lib/webex/version.rb +1 -1
- metadata +15 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9b8c4e96b5a9761bfffa701015b59b98c5bc016
|
4
|
+
data.tar.gz: 7ccc9732c2fca6cd3a5edd5981653b07feacfacf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a08ac0d80cec1663129d6cbf7e961117763fc1dbcd38bc25da45e27b8dec8091d05ee0546519f5bdb226665afa6aab5af65b98106c46b6b52da8d56edef88017
|
7
|
+
data.tar.gz: 10e880997f938b707568f699cfecc697fec73b594d99234a82bbab8cd70daab27c399aca9d617e1e52557a78f9078b2715a1f3857869e2ab79e501a394b8d3a2
|
data/lib/webex/meeting/action.rb
CHANGED
@@ -46,21 +46,6 @@ module Webex
|
|
46
46
|
Hash[res.body.stringify_string.split('&').map! { |i| i.split('=') }]
|
47
47
|
end
|
48
48
|
|
49
|
-
private
|
50
|
-
|
51
|
-
def cancel_mail?
|
52
|
-
cancel_mail
|
53
|
-
end
|
54
|
-
|
55
|
-
def tracking_code_hash
|
56
|
-
attribute_length!(10, tracking_codes)
|
57
|
-
hash = {}
|
58
|
-
tracking_codes.each_with_index do |code, index|
|
59
|
-
hash.merge!("TC#{index + 1}".to_sym => code)
|
60
|
-
end
|
61
|
-
hash
|
62
|
-
end
|
63
|
-
|
64
49
|
def generate_params(overwrite_params = {})
|
65
50
|
result = {}
|
66
51
|
result[:AT] = overwrite_params[:api_type]
|
@@ -90,6 +75,21 @@ module Webex
|
|
90
75
|
result.delete_if { |k, v| v.nil? }
|
91
76
|
end
|
92
77
|
|
78
|
+
private
|
79
|
+
|
80
|
+
def cancel_mail?
|
81
|
+
cancel_mail
|
82
|
+
end
|
83
|
+
|
84
|
+
def tracking_code_hash
|
85
|
+
attribute_length!(10, tracking_codes)
|
86
|
+
hash = {}
|
87
|
+
tracking_codes.each_with_index do |code, index|
|
88
|
+
hash.merge!("TC#{index + 1}".to_sym => code)
|
89
|
+
end
|
90
|
+
hash
|
91
|
+
end
|
92
|
+
|
93
93
|
def attribute_length!(length, attribute)
|
94
94
|
raise LengthError, %Q{option "#{attribute}" is too long.} if attribute.size > length
|
95
95
|
end
|
@@ -32,6 +32,18 @@ module Webex
|
|
32
32
|
res = Net::HTTP.post_form post_url, generate_params(api_type: 'MD')
|
33
33
|
Hash[res.body.stringify_string.split('&').map! { |i| i.split('=') }]
|
34
34
|
end
|
35
|
+
|
36
|
+
def generate_params(overwrite_params = {})
|
37
|
+
result = {}
|
38
|
+
result[:AT] = overwrite_params[:api_type]
|
39
|
+
result[:MK] = meeting_key
|
40
|
+
result[:BU] = back_url
|
41
|
+
result[:EM] = email
|
42
|
+
result[:EI] = invitation
|
43
|
+
result.merge!(attendees_hash) if result[:AT] == 'AA'
|
44
|
+
result[:EC] = cancel_mail? if result[:AT] == 'DA'
|
45
|
+
result.delete_if { |k, v| v.nil? }
|
46
|
+
end
|
35
47
|
|
36
48
|
private
|
37
49
|
|
@@ -49,18 +61,6 @@ module Webex
|
|
49
61
|
end
|
50
62
|
hash
|
51
63
|
end
|
52
|
-
|
53
|
-
def generate_params(overwrite_params = {})
|
54
|
-
result = {}
|
55
|
-
result[:AT] = overwrite_params[:api_type]
|
56
|
-
result[:MK] = meeting_key
|
57
|
-
result[:BU] = back_url
|
58
|
-
result[:EM] = email
|
59
|
-
result[:EI] = invitation
|
60
|
-
result.merge!(attendees_hash) if result[:AT] == 'AA'
|
61
|
-
result[:EC] = cancel_mail? if result[:AT] == 'DA'
|
62
|
-
result.delete_if { |k, v| v.nil? }
|
63
|
-
end
|
64
64
|
end
|
65
65
|
end
|
66
66
|
end
|
@@ -27,21 +27,6 @@ module Webex
|
|
27
27
|
Hash[res.body.stringify_string.split('&').map! { |i| i.split('=') }]
|
28
28
|
end
|
29
29
|
|
30
|
-
private
|
31
|
-
|
32
|
-
def cancel_mail?
|
33
|
-
cancel_mail
|
34
|
-
end
|
35
|
-
|
36
|
-
def phone_params
|
37
|
-
result = {}
|
38
|
-
result[:PC] = phones[:PhoneCountry]
|
39
|
-
result[:PA] = phones[:PhoneArea]
|
40
|
-
result[:PN] = phones[:PhoneNumber]
|
41
|
-
result[:PE] = phones[:PhoneExt]
|
42
|
-
result
|
43
|
-
end
|
44
|
-
|
45
30
|
def generate_params(overwrite_params = {})
|
46
31
|
result = {}
|
47
32
|
result[:AT] = overwrite_params[:api_type]
|
@@ -56,6 +41,21 @@ module Webex
|
|
56
41
|
result[:EC] = cancel_mail? if result[:AT] == 'DP'
|
57
42
|
result.delete_if { |k, v| v.nil? }
|
58
43
|
end
|
44
|
+
|
45
|
+
private
|
46
|
+
|
47
|
+
def cancel_mail?
|
48
|
+
cancel_mail
|
49
|
+
end
|
50
|
+
|
51
|
+
def phone_params
|
52
|
+
result = {}
|
53
|
+
result[:PC] = phones[:PhoneCountry]
|
54
|
+
result[:PA] = phones[:PhoneArea]
|
55
|
+
result[:PN] = phones[:PhoneNumber]
|
56
|
+
result[:PE] = phones[:PhoneExt]
|
57
|
+
result
|
58
|
+
end
|
59
59
|
end
|
60
60
|
end
|
61
61
|
end
|
@@ -26,31 +26,7 @@ module Webex
|
|
26
26
|
res = Net::HTTP.post_form post_url, generate_params(api_type: 'RM')
|
27
27
|
Hash[res.body.stringify_string.split('&').map! { |i| i.split('=') }]
|
28
28
|
end
|
29
|
-
|
30
|
-
private
|
31
|
-
|
32
|
-
def name_and_value_params
|
33
|
-
attribute_length!(15, name_and_values)
|
34
|
-
hash = {}
|
35
|
-
name_and_values.each_with_index do |params, index|
|
36
|
-
hash.merge!(:"name#{index + 1}" => params[:name])
|
37
|
-
hash.merge!(:"value#{index + 1}" => params[:value])
|
38
|
-
end
|
39
|
-
hash
|
40
|
-
end
|
41
|
-
|
42
|
-
def tc_params
|
43
|
-
attributes = [ text_box_contents, check_box_contents, radio_button_contents, dropdown_list_selections ]
|
44
|
-
keys = ['TX', 'CB', 'RB', 'DL']
|
45
|
-
hash = {}
|
46
|
-
attributes.each_with_index do |params, index_of_keys|
|
47
|
-
params.each_with_index do |value, index_of_value|
|
48
|
-
hash.merge!(:"#{keys[index_of_keys]}#{index_of_value + 1}" => value)
|
49
|
-
end if params
|
50
|
-
end
|
51
|
-
hash
|
52
|
-
end
|
53
|
-
|
29
|
+
|
54
30
|
def generate_params(overwrite_params = {})
|
55
31
|
result = {}
|
56
32
|
result[:AT] = overwrite_params[:api_type]
|
@@ -77,6 +53,30 @@ module Webex
|
|
77
53
|
result.delete_if { |k, v| v.nil? }
|
78
54
|
end
|
79
55
|
|
56
|
+
private
|
57
|
+
|
58
|
+
def name_and_value_params
|
59
|
+
attribute_length!(15, name_and_values)
|
60
|
+
hash = {}
|
61
|
+
name_and_values.each_with_index do |params, index|
|
62
|
+
hash.merge!(:"name#{index + 1}" => params[:name])
|
63
|
+
hash.merge!(:"value#{index + 1}" => params[:value])
|
64
|
+
end
|
65
|
+
hash
|
66
|
+
end
|
67
|
+
|
68
|
+
def tc_params
|
69
|
+
attributes = [ text_box_contents, check_box_contents, radio_button_contents, dropdown_list_selections ]
|
70
|
+
keys = ['TX', 'CB', 'RB', 'DL']
|
71
|
+
hash = {}
|
72
|
+
attributes.each_with_index do |params, index_of_keys|
|
73
|
+
params.each_with_index do |value, index_of_value|
|
74
|
+
hash.merge!(:"#{keys[index_of_keys]}#{index_of_value + 1}" => value)
|
75
|
+
end if params
|
76
|
+
end
|
77
|
+
hash
|
78
|
+
end
|
79
|
+
|
80
80
|
def attribute_length!(length, attribute)
|
81
81
|
raise LengthError, %Q{option "#{attribute}" is too long.} if attribute.size > length
|
82
82
|
end
|
data/lib/webex/meeting/report.rb
CHANGED
@@ -24,21 +24,6 @@ module Webex
|
|
24
24
|
Hash[res.body.stringify_string.split('&').map! { |i| i.split('=') }]
|
25
25
|
end
|
26
26
|
|
27
|
-
private
|
28
|
-
|
29
|
-
def cancel_mail?
|
30
|
-
cancel_mail
|
31
|
-
end
|
32
|
-
|
33
|
-
def phone_params
|
34
|
-
result = {}
|
35
|
-
result[:PC] = phones[:PhoneCountry]
|
36
|
-
result[:PA] = phones[:PhoneArea]
|
37
|
-
result[:PN] = phones[:PhoneNumber]
|
38
|
-
result[:PE] = phones[:PhoneExt]
|
39
|
-
result
|
40
|
-
end
|
41
|
-
|
42
27
|
def generate_params(overwrite_params = {})
|
43
28
|
result = {}
|
44
29
|
result[:AT] = overwrite_params[:api_type]
|
@@ -62,6 +47,21 @@ module Webex
|
|
62
47
|
result[:BU] = back_url
|
63
48
|
result.delete_if { |k, v| v.nil? }
|
64
49
|
end
|
50
|
+
|
51
|
+
private
|
52
|
+
|
53
|
+
def cancel_mail?
|
54
|
+
cancel_mail
|
55
|
+
end
|
56
|
+
|
57
|
+
def phone_params
|
58
|
+
result = {}
|
59
|
+
result[:PC] = phones[:PhoneCountry]
|
60
|
+
result[:PA] = phones[:PhoneArea]
|
61
|
+
result[:PN] = phones[:PhoneNumber]
|
62
|
+
result[:PE] = phones[:PhoneExt]
|
63
|
+
result
|
64
|
+
end
|
65
65
|
end
|
66
66
|
end
|
67
67
|
end
|
data/lib/webex/user/file.rb
CHANGED
data/lib/webex/user/partner.rb
CHANGED
@@ -40,6 +40,46 @@ module Webex
|
|
40
40
|
Hash[res.body.stringify_string.split('&').map! { |i| i.split('=') }]
|
41
41
|
end
|
42
42
|
|
43
|
+
def generate_params(overwrite_params = {})
|
44
|
+
result = {}
|
45
|
+
result[:AT] = overwrite_params[:api_type]
|
46
|
+
result[:PW] = password
|
47
|
+
result[:PID] = partner_id
|
48
|
+
result[:WID] = webex_id
|
49
|
+
result[:Address1] = address_1
|
50
|
+
result[:Address2] = address_2
|
51
|
+
result[:City] = city
|
52
|
+
result[:State] = state
|
53
|
+
result[:ZipCode] = zip_code
|
54
|
+
result[:Country] = country
|
55
|
+
result[:AC] = computer
|
56
|
+
result[:AS] = storage
|
57
|
+
result[:LA] = admin
|
58
|
+
result[:MW] = web_ex_type
|
59
|
+
result[:PL] = partner_link
|
60
|
+
result[:PT] = portal
|
61
|
+
result[:MT] = meeting_type
|
62
|
+
result[:TimeZone] = time_zone
|
63
|
+
result[:BU] = back_url
|
64
|
+
result[:OC] = one_click
|
65
|
+
|
66
|
+
if result[:AT] == 'SU'
|
67
|
+
result[:FN] = first_name
|
68
|
+
result[:LN] = last_name
|
69
|
+
result[:EM] = email
|
70
|
+
result[:ForceChangeUserPwd] = password_change
|
71
|
+
end
|
72
|
+
|
73
|
+
if result[:AT] == 'EU'
|
74
|
+
result[:NFN] = first_name
|
75
|
+
result[:NLN] = last_name
|
76
|
+
result[:NEM] = email
|
77
|
+
result[:NPW] = new_password
|
78
|
+
result[:NWID] = new_webex_id
|
79
|
+
end
|
80
|
+
merge_hash!(result)
|
81
|
+
end
|
82
|
+
|
43
83
|
private
|
44
84
|
|
45
85
|
def tracking_code_hash
|
@@ -87,46 +127,6 @@ module Webex
|
|
87
127
|
overwrite_params.delete_if { |k, v| v.nil? }
|
88
128
|
end
|
89
129
|
|
90
|
-
def generate_params(overwrite_params = {})
|
91
|
-
result = {}
|
92
|
-
result[:AT] = overwrite_params[:api_type]
|
93
|
-
result[:PW] = password
|
94
|
-
result[:PID] = partner_id
|
95
|
-
result[:WID] = webex_id
|
96
|
-
result[:Address1] = address_1
|
97
|
-
result[:Address2] = address_2
|
98
|
-
result[:City] = city
|
99
|
-
result[:State] = state
|
100
|
-
result[:ZipCode] = zip_code
|
101
|
-
result[:Country] = country
|
102
|
-
result[:AC] = computer
|
103
|
-
result[:AS] = storage
|
104
|
-
result[:LA] = admin
|
105
|
-
result[:MW] = web_ex_type
|
106
|
-
result[:PL] = partner_link
|
107
|
-
result[:PT] = portal
|
108
|
-
result[:MT] = meeting_type
|
109
|
-
result[:TimeZone] = time_zone
|
110
|
-
result[:BU] = back_url
|
111
|
-
result[:OC] = one_click
|
112
|
-
|
113
|
-
if result[:AT] == 'SU'
|
114
|
-
result[:FN] = first_name
|
115
|
-
result[:LN] = last_name
|
116
|
-
result[:EM] = email
|
117
|
-
result[:ForceChangeUserPwd] = password_change
|
118
|
-
end
|
119
|
-
|
120
|
-
if result[:AT] == 'EU'
|
121
|
-
result[:NFN] = first_name
|
122
|
-
result[:NLN] = last_name
|
123
|
-
result[:NEM] = email
|
124
|
-
result[:NPW] = new_password
|
125
|
-
result[:NWID] = new_webex_id
|
126
|
-
end
|
127
|
-
merge_hash!(result)
|
128
|
-
end
|
129
|
-
|
130
130
|
def attribute_length!(length, attribute)
|
131
131
|
raise LengthError, %Q{option "#{attribute}" is too long.} if attribute.size > length
|
132
132
|
end
|
data/lib/webex/user/report.rb
CHANGED
data/lib/webex/version.rb
CHANGED
metadata
CHANGED
@@ -1,69 +1,69 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wei-Yi Chiu
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.9'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.9'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '10.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: sinatra
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - ~>
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - ~>
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
description: webex APIs for rails, according to cisco webex
|
@@ -73,9 +73,9 @@ executables: []
|
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
|
-
- .gitignore
|
77
|
-
- .rspec
|
78
|
-
- .travis.yml
|
76
|
+
- ".gitignore"
|
77
|
+
- ".rspec"
|
78
|
+
- ".travis.yml"
|
79
79
|
- Gemfile
|
80
80
|
- LICENSE.txt
|
81
81
|
- README.md
|
@@ -117,12 +117,12 @@ require_paths:
|
|
117
117
|
- lib
|
118
118
|
required_ruby_version: !ruby/object:Gem::Requirement
|
119
119
|
requirements:
|
120
|
-
- -
|
120
|
+
- - ">="
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: '0'
|
123
123
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
124
124
|
requirements:
|
125
|
-
- -
|
125
|
+
- - ">="
|
126
126
|
- !ruby/object:Gem::Version
|
127
127
|
version: '0'
|
128
128
|
requirements: []
|