zoom_rb 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +1 -1
- data/CHANGELOG.md +15 -0
- data/Gemfile.lock +83 -53
- data/Makefile +1 -1
- data/README.md +22 -4
- data/lib/zoom/actions/account.rb +33 -58
- data/lib/zoom/actions/billing.rb +38 -0
- data/lib/zoom/actions/dashboard.rb +33 -0
- data/lib/zoom/actions/groups.rb +17 -0
- data/lib/zoom/actions/im/chat.rb +16 -4
- data/lib/zoom/actions/meeting.rb +48 -40
- data/lib/zoom/actions/phone.rb +27 -0
- data/lib/zoom/actions/recording.rb +25 -16
- data/lib/zoom/actions/report.rb +9 -34
- data/lib/zoom/actions/roles.rb +41 -0
- data/lib/zoom/actions/sip_audio.rb +75 -0
- data/lib/zoom/actions/token.rb +35 -0
- data/lib/zoom/actions/user.rb +50 -64
- data/lib/zoom/actions/webinar.rb +33 -40
- data/lib/zoom/client.rb +27 -7
- data/lib/zoom/clients/oauth.rb +46 -3
- data/lib/zoom/constants/account/options/pay_modes.rb +12 -0
- data/lib/zoom/constants/account/settings/permitted_settings.rb +125 -0
- data/lib/zoom/constants/constants.rb +35 -0
- data/lib/zoom/constants/meeting/approval_types.rb +11 -0
- data/lib/zoom/constants/meeting/audio_type.rb +11 -0
- data/lib/zoom/constants/meeting/auto_recording.rb +11 -0
- data/lib/zoom/constants/meeting/registration_types.rb +11 -0
- data/lib/zoom/constants/meeting/types.rb +12 -0
- data/lib/zoom/constants/recurrence/monthly_weeks.rb +13 -0
- data/lib/zoom/constants/recurrence/types.rb +11 -0
- data/lib/zoom/constants/recurrence/weekly_days.rb +15 -0
- data/lib/zoom/constants/user/create_types.rb +12 -0
- data/lib/zoom/constants/user/types.rb +11 -0
- data/lib/zoom/constants/webinar/approval_types.rb +11 -0
- data/lib/zoom/constants/webinar/audio_type.rb +11 -0
- data/lib/zoom/constants/webinar/auto_recording.rb +11 -0
- data/lib/zoom/constants/webinar/registration_types.rb +11 -0
- data/lib/zoom/constants/webinar/types.rb +11 -0
- data/lib/zoom/error.rb +9 -1
- data/lib/zoom/params.rb +51 -12
- data/lib/zoom/utils.rb +13 -8
- data/lib/zoom/version.rb +2 -2
- data/lib/{zoom.rb → zoom_rb.rb} +8 -3
- data/spec/fixtures/account/create.json +6 -0
- data/spec/{lib/zoom/actions/report/hosts_report_spec.rb → fixtures/account/delete.json} +0 -0
- data/spec/fixtures/account/get.json +13 -0
- data/spec/fixtures/account/managed_domains.json +7 -0
- data/spec/fixtures/account/options_update.json +7 -0
- data/spec/fixtures/account/settings_get.json +1 -1
- data/spec/{lib/zoom/actions/report/meeting_polls_report_spec.rb → fixtures/account/settings_update.json} +0 -0
- data/spec/fixtures/account/trusted_domains.json +3 -0
- data/spec/fixtures/billing/get.json +12 -0
- data/spec/fixtures/billing/plans_list.json +44 -0
- data/spec/fixtures/billing/plans_subscribe.json +30 -0
- data/spec/fixtures/billing/plans_usage.json +30 -0
- data/spec/{lib/zoom/actions/report/meetings_report_spec.rb → fixtures/billing/update.json} +0 -0
- data/spec/fixtures/chat/channels/get.json +5 -0
- data/spec/fixtures/chat/users/channels/list.json +17 -0
- data/spec/fixtures/dashboard/crc.json +104 -0
- data/spec/fixtures/dashboard/meeting/detail.json +20 -0
- data/spec/fixtures/dashboard/meeting/participants.json +56 -0
- data/spec/fixtures/{metrics_meetings.json → dashboard/meetings.json} +1 -2
- data/spec/fixtures/error/channel_not_found.json +4 -0
- data/spec/fixtures/error/group_does_not_exist.json +4 -0
- data/spec/fixtures/error/group_not_belong_to_account.json +4 -0
- data/spec/fixtures/error/meeting_not_exist.json +4 -0
- data/spec/fixtures/error/next_page_token_invalid.json +4 -0
- data/spec/fixtures/error/unauthorized_request.json +4 -0
- data/spec/fixtures/error/user_not_exist.json +1 -1
- data/spec/fixtures/groups/get.json +5 -0
- data/spec/fixtures/groups/list.json +15 -0
- data/spec/fixtures/meeting/add_registrant.json +7 -0
- data/spec/fixtures/meeting/create.json +31 -16
- data/spec/fixtures/meeting/get.json +43 -33
- data/spec/fixtures/meeting/invitation.json +3 -0
- data/spec/fixtures/meeting/live_stream/errors/meeting_not_found.json +4 -0
- data/spec/fixtures/meeting/live_stream/errors/missing_field.json +10 -0
- data/spec/fixtures/{recording_get.json → recording/get.json} +17 -6
- data/spec/fixtures/recording/list.json +53 -0
- data/spec/fixtures/recording/settings/get.json +7 -0
- data/spec/fixtures/report/meeting.json +19 -0
- data/spec/fixtures/report/meeting/participants.json +17 -0
- data/spec/fixtures/roles/assign.json +4 -0
- data/spec/fixtures/roles/create.json +9 -0
- data/spec/fixtures/roles/get.json +11 -0
- data/spec/fixtures/roles/list.json +29 -0
- data/spec/fixtures/roles/members.json +15 -0
- data/spec/fixtures/sip_audio/sip_trunks_get.json +19 -0
- data/spec/fixtures/sip_audio/sip_trunks_internal_callout_countries_add.json +10 -0
- data/spec/fixtures/sip_audio/sip_trunks_internal_callout_country_list.json +15 -0
- data/spec/fixtures/sip_audio/sip_trunks_internal_numbers_add.json +14 -0
- data/spec/fixtures/sip_audio/sip_trunks_internal_numbers_list.json +16 -0
- data/spec/fixtures/sip_audio/sip_trunks_numbers_assign.json +7 -0
- data/spec/fixtures/sip_audio/sip_trunks_numbers_list.json +9 -0
- data/spec/fixtures/token/access_token.json +7 -0
- data/spec/fixtures/token/data_compliance.json +8 -0
- data/spec/fixtures/token/refresh_token.json +7 -0
- data/spec/fixtures/user/assistant/create.json +4 -0
- data/spec/fixtures/user/assistant/list.json +8 -0
- data/spec/fixtures/user/email_check.json +3 -0
- data/spec/fixtures/user/get.json +35 -21
- data/spec/fixtures/user/list.json +17 -13
- data/spec/fixtures/user/permissions.json +65 -0
- data/spec/fixtures/user/recording/list.json +50 -0
- data/spec/fixtures/user/scheduler/list.json +12 -0
- data/spec/fixtures/user/token.json +3 -0
- data/spec/{lib/zoom/actions/report/telephone_report_spec.rb → fixtures/user/update_password.json} +0 -0
- data/spec/fixtures/user/vanity_name.json +3 -0
- data/spec/fixtures/webinar/panelist_list.json +12 -0
- data/spec/fixtures/webinar/poll_get.json +13 -0
- data/spec/fixtures/webinar/polls_list.json +16 -0
- data/spec/lib/zoom/actions/account/create_spec.rb +68 -0
- data/spec/lib/zoom/actions/account/delete_spec.rb +44 -0
- data/spec/lib/zoom/actions/account/get_locked_settings_spec.rb +43 -0
- data/spec/lib/zoom/actions/account/get_spec.rb +43 -0
- data/spec/lib/zoom/actions/account/managed_domains_spec.rb +43 -0
- data/spec/lib/zoom/actions/account/options_update_spec.rb +58 -0
- data/spec/lib/zoom/actions/account/settings_get_spec.rb +5 -5
- data/spec/lib/zoom/actions/account/settings_update_spec.rb +55 -0
- data/spec/lib/zoom/actions/account/trusted_domains_spec.rb +43 -0
- data/spec/lib/zoom/actions/billing/get_spec.rb +48 -0
- data/spec/lib/zoom/actions/billing/plans_list_spec.rb +48 -0
- data/spec/lib/zoom/actions/billing/plans_subscribe_spec.rb +69 -0
- data/spec/lib/zoom/actions/billing/plans_usage_spec.rb +48 -0
- data/spec/lib/zoom/actions/billing/update_spec.rb +64 -0
- data/spec/lib/zoom/actions/dashboard/crc_spec.rb +33 -0
- data/spec/lib/zoom/actions/dashboard/meeting_details_spec.rb +62 -0
- data/spec/lib/zoom/actions/dashboard/meeting_participants_spec.rb +74 -0
- data/spec/lib/zoom/actions/dashboard/meetings_spec.rb +63 -0
- data/spec/lib/zoom/actions/{group → groups}/create_spec.rb +0 -0
- data/spec/lib/zoom/actions/{group → groups}/delete_spec.rb +0 -0
- data/spec/lib/zoom/actions/{group → groups}/edit_spec.rb +0 -0
- data/spec/lib/zoom/actions/groups/get_spec.rb +62 -0
- data/spec/lib/zoom/actions/groups/list_spec.rb +47 -0
- data/spec/lib/zoom/actions/{group → groups}/member/add_spec.rb +0 -0
- data/spec/lib/zoom/actions/{group → groups}/member/delete_spec.rb +0 -0
- data/spec/lib/zoom/actions/{group → groups/member}/list_spec.rb +0 -0
- data/spec/lib/zoom/actions/im/chat/channels/get_spec.rb +64 -0
- data/spec/lib/zoom/actions/im/chat/users/channels/get_spec.rb +45 -0
- data/spec/lib/zoom/actions/meeting/add_registrant_spec.rb +30 -0
- data/spec/lib/zoom/actions/meeting/create_spec.rb +13 -13
- data/spec/lib/zoom/actions/meeting/delete_spec.rb +17 -34
- data/spec/lib/zoom/actions/meeting/get_spec.rb +21 -31
- data/spec/lib/zoom/actions/meeting/invitation_spec.rb +48 -0
- data/spec/lib/zoom/actions/meeting/livestream_spec.rb +61 -0
- data/spec/lib/zoom/actions/meeting/update_spec.rb +48 -42
- data/spec/lib/zoom/actions/recording/file_delete_spec.rb +33 -0
- data/spec/lib/zoom/actions/recording/get_spec.rb +19 -35
- data/spec/lib/zoom/actions/recording/list_spec.rb +20 -26
- data/spec/lib/zoom/actions/recording/settings/get_spec.rb +42 -0
- data/spec/lib/zoom/actions/recording/settings/update_spec.rb +32 -0
- data/spec/lib/zoom/actions/report/meeting_details_report_spec.rb +44 -0
- data/spec/lib/zoom/actions/report/meeting_participants_report_spec.rb +44 -0
- data/spec/lib/zoom/actions/roles/assign_spec.rb +25 -0
- data/spec/lib/zoom/actions/roles/create_spec.rb +55 -0
- data/spec/lib/zoom/actions/roles/get_spec.rb +37 -0
- data/spec/lib/zoom/actions/roles/list_spec.rb +28 -0
- data/spec/lib/zoom/actions/roles/members_spec.rb +35 -0
- data/spec/lib/zoom/actions/roles/unassign_spec.rb +34 -0
- data/spec/lib/zoom/actions/sip_audio/add_trunks_internal_callout_countries_spec.rb +25 -0
- data/spec/lib/zoom/actions/sip_audio/add_trunks_internal_numbers_spec.rb +25 -0
- data/spec/lib/zoom/actions/sip_audio/assign_numbers_spec.rb +29 -0
- data/spec/lib/zoom/actions/sip_audio/delete_internal_callout_countries_spec.rb +44 -0
- data/spec/lib/zoom/actions/sip_audio/delete_trunk_internal_numbers_spec.rb +44 -0
- data/spec/lib/zoom/actions/sip_audio/delete_trunk_numbers_spec.rb +44 -0
- data/spec/lib/zoom/actions/sip_audio/delete_trunks_spec.rb +44 -0
- data/spec/lib/zoom/actions/sip_audio/get_trunks_spec.rb +50 -0
- data/spec/lib/zoom/actions/sip_audio/list_trunk_numbers_spec.rb +46 -0
- data/spec/lib/zoom/actions/sip_audio/list_trunks_internal_callout_country_spec.rb +53 -0
- data/spec/lib/zoom/actions/sip_audio/list_trunks_internal_numbers_spec.rb +53 -0
- data/spec/lib/zoom/actions/token/access_token_spec.rb +26 -0
- data/spec/lib/zoom/actions/token/data_compliance_spec.rb +41 -0
- data/spec/lib/zoom/actions/token/refresh_token_spec.rb +26 -0
- data/spec/lib/zoom/actions/user/assistant/create_spec.rb +59 -0
- data/spec/lib/zoom/actions/user/assistant/delete_all_spec.rb +44 -0
- data/spec/lib/zoom/actions/user/assistant/delete_spec.rb +48 -1
- data/spec/lib/zoom/actions/user/assistant/list_spec.rb +53 -0
- data/spec/lib/zoom/actions/user/email_check_spec.rb +43 -0
- data/spec/lib/zoom/actions/user/get_spec.rb +10 -1
- data/spec/lib/zoom/actions/user/list_recordings_spec.rb +57 -0
- data/spec/lib/zoom/actions/user/list_spec.rb +32 -1
- data/spec/lib/zoom/actions/user/permissions_spec.rb +52 -0
- data/spec/lib/zoom/actions/user/scheduler/delete_all_spec.rb +44 -0
- data/spec/lib/zoom/actions/user/scheduler/delete_spec.rb +50 -0
- data/spec/lib/zoom/actions/user/scheduler/list_spec.rb +53 -0
- data/spec/lib/zoom/actions/user/settings_update_spec.rb +50 -0
- data/spec/lib/zoom/actions/user/token_spec.rb +61 -0
- data/spec/lib/zoom/actions/user/update_password_spec.rb +29 -0
- data/spec/lib/zoom/actions/user/vanity_name_spec.rb +51 -0
- data/spec/lib/zoom/actions/webinar/panelist_list_spec.rb +44 -0
- data/spec/lib/zoom/actions/webinar/poll_get_spec.rb +47 -0
- data/spec/lib/zoom/actions/webinar/polls_list_spec.rb +44 -0
- data/spec/lib/zoom/client_spec.rb +48 -1
- data/spec/lib/zoom/params_spec.rb +23 -3
- data/spec/lib/zoom/utils_spec.rb +12 -7
- data/spec/spec_helper.rb +15 -2
- data/zoom_rb.gemspec +1 -1
- metadata +295 -108
- data/lib/zoom/actions/group.rb +0 -8
- data/lib/zoom/actions/metrics.rb +0 -27
- data/lib/zoom/constants.rb +0 -103
- data/spec/fixtures/meeting/delete.json +0 -4
- data/spec/fixtures/meeting/end.json +0 -4
- data/spec/fixtures/meeting/live.json +0 -32
- data/spec/fixtures/meeting/register.json +0 -7
- data/spec/fixtures/meeting/update.json +0 -4
- data/spec/fixtures/metrics_crc.json +0 -105
- data/spec/fixtures/metrics_meetingdetail.json +0 -32
- data/spec/fixtures/recording_delete.json +0 -4
- data/spec/fixtures/recording_list.json +0 -51
- data/spec/fixtures/user/assistant/delete.json +0 -5
- data/spec/lib/zoom/actions/group/get_spec.rb +0 -3
- data/spec/lib/zoom/actions/group/member/list_spec.rb +0 -3
- data/spec/lib/zoom/actions/meeting/end_spec.rb +0 -55
- data/spec/lib/zoom/actions/meeting/live_spec.rb +0 -43
- data/spec/lib/zoom/actions/meeting/register_spec.rb +0 -45
- data/spec/lib/zoom/actions/metrics/crc_spec.rb +0 -48
- data/spec/lib/zoom/actions/metrics/im_spec.rb +0 -3
- data/spec/lib/zoom/actions/metrics/meetingdetail_spec.rb +0 -51
- data/spec/lib/zoom/actions/metrics/meetings_spec.rb +0 -61
- data/spec/lib/zoom/actions/metrics/qos_spec.rb +0 -3
- data/spec/lib/zoom/actions/metrics/webinardetail_spec.rb +0 -3
- data/spec/lib/zoom/actions/metrics/webinars_spec.rb +0 -3
- data/spec/lib/zoom/actions/metrics/zoomroomdetail_spec.rb +0 -3
- data/spec/lib/zoom/actions/metrics/zoomrooms_spec.rb +0 -3
- data/spec/lib/zoom/actions/recording/delete_spec.rb +0 -52
- data/spec/lib/zoom/actions/recording/mc_list_spec.rb +0 -51
- data/spec/lib/zoom/actions/report/webinar_details_report_spec.rb +0 -0
- data/spec/lib/zoom/actions/report/webinar_polls_report_spec.rb +0 -0
- data/spec/lib/zoom/actions/report/webinar_qa_report_spec.rb +0 -0
- data/spec/lib/zoom/actions/user/activate_spec.rb +0 -3
- data/spec/lib/zoom/actions/user/checkemail_spec.rb +0 -3
- data/spec/lib/zoom/actions/user/checkzpk_spec.rb +0 -3
- data/spec/lib/zoom/actions/user/deactivate_spec.rb +0 -3
- data/spec/lib/zoom/actions/user/revoketoken_spec.rb +0 -3
- data/spec/lib/zoom/actions/user/updatepassword_spec.rb +0 -3
- data/spec/lib/zoom/actions/webinar/panelists_spec.rb +0 -3
- data/spec/lib/zoom/actions/webinar/polls_spec.rb +0 -3
data/lib/zoom/actions/group.rb
DELETED
data/lib/zoom/actions/metrics.rb
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Zoom
|
4
|
-
module Actions
|
5
|
-
module Metrics
|
6
|
-
def metrics_crc(*args)
|
7
|
-
options = Utils.extract_options!(args)
|
8
|
-
Zoom::Params.new(options).require(:from, :to)
|
9
|
-
Utils.process_datetime_params!(%i[from to], options)
|
10
|
-
Utils.parse_response self.class.post('/metrics/crc', query: options)
|
11
|
-
end
|
12
|
-
|
13
|
-
def metrics_meetings(*args)
|
14
|
-
options = Utils.extract_options!(args)
|
15
|
-
Zoom::Params.new(options).require(:from, :to, :type)
|
16
|
-
Utils.process_datetime_params!(%i[from to], options)
|
17
|
-
Utils.parse_response self.class.post('/metrics/meetings', query: options)
|
18
|
-
end
|
19
|
-
|
20
|
-
def metrics_meetingdetail(*args)
|
21
|
-
options = Utils.extract_options!(args)
|
22
|
-
Zoom::Params.new(options).require(:meeting_id, :type)
|
23
|
-
Utils.parse_response self.class.post('/metrics/meetingdetail', query: options)
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
data/lib/zoom/constants.rb
DELETED
@@ -1,103 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Zoom
|
4
|
-
class Constants
|
5
|
-
ACCOUNT_OPTIONS_PAY_MODES = { 'Master account holder pays' => 'master', # default
|
6
|
-
'Sub account holder pays' => 'sub'
|
7
|
-
}.freeze
|
8
|
-
|
9
|
-
IM_GROUP_TYPES = { 'Only members can see the group automatically. Other people can search members in the group.' => 'normal', # default
|
10
|
-
'All people in the account can see the group and members automatically' => 'shared',
|
11
|
-
'Nobody can see the group or search members except the members in the group' => 'restricted'
|
12
|
-
}.freeze
|
13
|
-
|
14
|
-
RECURRENCE_TYPES = { 'Daily' => 1,
|
15
|
-
'Weekly' => 2,
|
16
|
-
'Monthly' => 3
|
17
|
-
}.freeze # no default
|
18
|
-
|
19
|
-
RECURRENCE_WEEKLY_DAYS = { 'Sunday' => 1,
|
20
|
-
'Monday' => 2,
|
21
|
-
'Tuesday' => 3,
|
22
|
-
'Wednesday' => 4,
|
23
|
-
'Thursday' => 5,
|
24
|
-
'Friday' => 6,
|
25
|
-
'Saturday' => 7
|
26
|
-
}.freeze # no default
|
27
|
-
|
28
|
-
RECURRENCE_MONTHLY_WEEKS = { 'Last week' => -1,
|
29
|
-
'First week' => 1,
|
30
|
-
'Second week' => 2,
|
31
|
-
'Third week' => 3,
|
32
|
-
'Fourth week' => 4
|
33
|
-
}.freeze # no default
|
34
|
-
|
35
|
-
MEETING_TYPES = { 'Instant Meeting' => 1,
|
36
|
-
'Scheduled Meeting' => 2, # default
|
37
|
-
'Recurring Meeting with no fixed time' => 3,
|
38
|
-
'Recurring Meeting with fixed time' => 8
|
39
|
-
}.freeze
|
40
|
-
|
41
|
-
MEETING_APPROVAL_TYPES = { 'Automatically Approve' => 0,
|
42
|
-
'Manually Approve' => 1,
|
43
|
-
'No Registration Required' => 2 # default
|
44
|
-
}.freeze
|
45
|
-
|
46
|
-
MEETING_REGISTRATION_TYPES = { 'Attendees register once and can attend any of the occurrences' => 1, # default
|
47
|
-
'Attendees need to register for each occurrence to attend' => 2,
|
48
|
-
'Attendees register once and can choose one or more occurrences to attend' => 3
|
49
|
-
}.freeze
|
50
|
-
|
51
|
-
MEETING_AUDIO_TYPE = { 'Both Telephony and VoIP' => 'both', # default
|
52
|
-
'Telephony only' => 'telephony',
|
53
|
-
'VoIP only' => 'voip'
|
54
|
-
}.freeze
|
55
|
-
|
56
|
-
MEETING_AUTO_RECORDING = { 'Record to local device' => 'local',
|
57
|
-
'Record to cloud' => 'cloud',
|
58
|
-
'No Recording' => 'none' # default
|
59
|
-
}.freeze
|
60
|
-
|
61
|
-
REGISTRANT_STATUS_ACTIONS = { 'Approve registrant' => 'approve',
|
62
|
-
'Cancel registrant' => 'cancel',
|
63
|
-
'Deny registrant' => 'deny'
|
64
|
-
}.freeze # no default
|
65
|
-
|
66
|
-
WEBINAR_TYPES = { 'Webinar' => 5, # default
|
67
|
-
'Recurring Webinar with no fixed time' => 6,
|
68
|
-
'Recurring Webinar with fixed time' => 9
|
69
|
-
}.freeze
|
70
|
-
|
71
|
-
WEBINAR_APPROVAL_TYPES = { 'Automatically Approve' => 0,
|
72
|
-
'Manually Approve' => 1,
|
73
|
-
'No Registration Required' => 2 # default
|
74
|
-
}.freeze
|
75
|
-
|
76
|
-
WEBINAR_REGISTRATION_TYPES = { 'Attendees register once and can attend any of the occurrences' => 1, # default
|
77
|
-
'Attendees need to register for each occurrence to attend' => 2,
|
78
|
-
'Attendees register once and can choose one or more occurrences to attend' => 3
|
79
|
-
}.freeze
|
80
|
-
|
81
|
-
WEBINAR_AUDIO_TYPE = { 'Both Telephony and VoIP' => 'both', # default
|
82
|
-
'Telephony only' => 'telephony',
|
83
|
-
'VoIP only' => 'voip'
|
84
|
-
}.freeze
|
85
|
-
|
86
|
-
WEBINAR_AUTO_RECORDING = { 'Record to local device' => 'local',
|
87
|
-
'Record to cloud' => 'cloud',
|
88
|
-
'No Recording' => 'none' # default
|
89
|
-
}.freeze
|
90
|
-
|
91
|
-
USER_TYPES = { 'basic' => 1,
|
92
|
-
'pro' => 2,
|
93
|
-
'corp' => 3
|
94
|
-
}.freeze # no default
|
95
|
-
|
96
|
-
USER_CREATE_TYPES = {
|
97
|
-
'create' => 'User will get an email sent from Zoom. There is a confirmation link in this email. User will then need to click this link to activate their account to the Zoom service. The user can set or change their password in Zoom.',
|
98
|
-
'autoCreate' => 'This action is provided for enterprise customer who has a managed domain. This feature is disabled by default because of the security risk involved in creating a user who does not belong to your domain without notifying the user.',
|
99
|
-
'custCreate' => 'This action is provided for API partner only. User created in this way has no password and is not able to log into the Zoom web site or client.',
|
100
|
-
'ssoCreate' => 'This action is provided for enabled “Pre-provisioning SSO User” option. User created in this way has no password. If it is not a basic user, will generate a Personal Vanity URL using user name (no domain) of the provisioning email. If user name or pmi is invalid or occupied, will use random number/random personal vanity URL.'
|
101
|
-
}.freeze # no default
|
102
|
-
end
|
103
|
-
end
|
@@ -1,32 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"page_count": 5,
|
3
|
-
"total_records": 235,
|
4
|
-
"page_number": 1,
|
5
|
-
"page_size": 50,
|
6
|
-
"meetings": [
|
7
|
-
{
|
8
|
-
"uuid": "unique_id",
|
9
|
-
"id": "123456789",
|
10
|
-
"start_url": "https://zoom.us/s/123456789?zak=xxxxxx",
|
11
|
-
"join_url": "https://zoom.us/j/123456789",
|
12
|
-
"created_at": "2012-11-25T12:00:00Z",
|
13
|
-
"host_id": "unique_id",
|
14
|
-
"topic": "Topic for this meeting",
|
15
|
-
"type": 2,
|
16
|
-
"status": 0,
|
17
|
-
"start_time": "2012-11-25T12:00:00Z",
|
18
|
-
"duration": 30,
|
19
|
-
"timezone": "America/Los_Angeles",
|
20
|
-
"password": "123",
|
21
|
-
"h323_password": "123456",
|
22
|
-
"option_jbh": false,
|
23
|
-
"option_start_type": "video",
|
24
|
-
"option_host_video": false,
|
25
|
-
"option_participants_video": false,
|
26
|
-
"option_audio": "both",
|
27
|
-
"option_enforce_login": false,
|
28
|
-
"option_enforce_login_domains ": "",
|
29
|
-
"option_alternative_hosts": ""
|
30
|
-
}
|
31
|
-
]
|
32
|
-
}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"registrant_id": "555",
|
3
|
-
"id": "123456789",
|
4
|
-
"topic": "meeting registration",
|
5
|
-
"start_time": "2016-02-21T04:00:00Z",
|
6
|
-
"join_url": "https://www.zoom.us/w/869275230?tk=2DsQiu6nZVsZVATrPLvXgqPvw8mmKyxgAGaDMizLv34.DQEAAAAAM9AWXhZ2Nm5vRjIyMlRoUzE3ZktWM3l4cHVRAA"
|
7
|
-
}
|
@@ -1,105 +0,0 @@
|
|
1
|
-
|
2
|
-
{
|
3
|
-
"from": "2016-09-21",
|
4
|
-
"to": "2016-09-21",
|
5
|
-
"crc_ports_usage": [{
|
6
|
-
"date_time": "2016-09-21",
|
7
|
-
"crc_ports_hour_usage": [{
|
8
|
-
"hour": "00",
|
9
|
-
"max_usage": 0,
|
10
|
-
"total_usage": 0
|
11
|
-
}, {
|
12
|
-
"hour": "01",
|
13
|
-
"max_usage": 0,
|
14
|
-
"total_usage": 0
|
15
|
-
}, {
|
16
|
-
"hour": "02",
|
17
|
-
"max_usage": 0,
|
18
|
-
"total_usage": 0
|
19
|
-
}, {
|
20
|
-
"hour": "03",
|
21
|
-
"max_usage": 0,
|
22
|
-
"total_usage": 0
|
23
|
-
}, {
|
24
|
-
"hour": "04",
|
25
|
-
"max_usage": 0,
|
26
|
-
"total_usage": 0
|
27
|
-
}, {
|
28
|
-
"hour": "05",
|
29
|
-
"max_usage": 0,
|
30
|
-
"total_usage": 0
|
31
|
-
}, {
|
32
|
-
"hour": "06",
|
33
|
-
"max_usage": 0,
|
34
|
-
"total_usage": 0
|
35
|
-
}, {
|
36
|
-
"hour": "07",
|
37
|
-
"max_usage": 1,
|
38
|
-
"total_usage": 1
|
39
|
-
}, {
|
40
|
-
"hour": "08",
|
41
|
-
"max_usage": 1,
|
42
|
-
"total_usage": 1
|
43
|
-
}, {
|
44
|
-
"hour": "09",
|
45
|
-
"max_usage": 3,
|
46
|
-
"total_usage": 5
|
47
|
-
}, {
|
48
|
-
"hour": "10",
|
49
|
-
"max_usage": 8,
|
50
|
-
"total_usage": 11
|
51
|
-
}, {
|
52
|
-
"hour": "11",
|
53
|
-
"max_usage": 9,
|
54
|
-
"total_usage": 12
|
55
|
-
}, {
|
56
|
-
"hour": "12",
|
57
|
-
"max_usage": 8,
|
58
|
-
"total_usage": 15
|
59
|
-
}, {
|
60
|
-
"hour": "13",
|
61
|
-
"max_usage": 7,
|
62
|
-
"total_usage": 12
|
63
|
-
}, {
|
64
|
-
"hour": "14",
|
65
|
-
"max_usage": 10,
|
66
|
-
"total_usage": 16
|
67
|
-
}, {
|
68
|
-
"hour": "15",
|
69
|
-
"max_usage": 12,
|
70
|
-
"total_usage": 14
|
71
|
-
}, {
|
72
|
-
"hour": "16",
|
73
|
-
"max_usage": 11,
|
74
|
-
"total_usage": 16
|
75
|
-
}, {
|
76
|
-
"hour": "17",
|
77
|
-
"max_usage": 11,
|
78
|
-
"total_usage": 11
|
79
|
-
}, {
|
80
|
-
"hour": "18",
|
81
|
-
"max_usage": 10,
|
82
|
-
"total_usage": 11
|
83
|
-
}, {
|
84
|
-
"hour": "19",
|
85
|
-
"max_usage": 5,
|
86
|
-
"total_usage": 5
|
87
|
-
}, {
|
88
|
-
"hour": "20",
|
89
|
-
"max_usage": 3,
|
90
|
-
"total_usage": 3
|
91
|
-
}, {
|
92
|
-
"hour": "21",
|
93
|
-
"max_usage": 3,
|
94
|
-
"total_usage": 3
|
95
|
-
}, {
|
96
|
-
"hour": "22",
|
97
|
-
"max_usage": 3,
|
98
|
-
"total_usage": 3
|
99
|
-
}, {
|
100
|
-
"hour": "23",
|
101
|
-
"max_usage": 2,
|
102
|
-
"total_usage": 3
|
103
|
-
}]
|
104
|
-
}]
|
105
|
-
}
|
@@ -1,32 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"uuid": "t13b6hjVQXybvGKyeHC96w==",
|
3
|
-
"id": 3035575664,
|
4
|
-
"type": "Live Meeting",
|
5
|
-
"host": "Some User",
|
6
|
-
"email": "some_user@some_domain.com",
|
7
|
-
"user_type": "Pro",
|
8
|
-
"start_time": "2016-09-27T12:02:26Z",
|
9
|
-
"end_time": "",
|
10
|
-
"duration": null,
|
11
|
-
"has_pstn": false,
|
12
|
-
"has_voip": true,
|
13
|
-
"has_3rd_party_audio": false,
|
14
|
-
"has_video": true,
|
15
|
-
"has_screen_share": false,
|
16
|
-
"recording": 0,
|
17
|
-
"participants_count": 7,
|
18
|
-
"page_count": 7,
|
19
|
-
"page_number": 1,
|
20
|
-
"page_size": 1,
|
21
|
-
"participants": [{
|
22
|
-
"user_id": "16778240",
|
23
|
-
"user_name": "SOMEUSER",
|
24
|
-
"device": "Windows",
|
25
|
-
"ip_address": "11.111.111.111",
|
26
|
-
"cn": "US",
|
27
|
-
"city": "",
|
28
|
-
"network_type": "Wifi",
|
29
|
-
"join_time": "2016-09-27T12:02:26Z",
|
30
|
-
"leave_time": "2016-09-27T12:39:10Z"
|
31
|
-
}]
|
32
|
-
}
|
@@ -1,51 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"page_count": 1,
|
3
|
-
"page_number": 1,
|
4
|
-
"page_size": 15,
|
5
|
-
"total_records": 1,
|
6
|
-
"meetings": [{
|
7
|
-
"uuid": "j0N0YDBYSQGB4fRv444444==",
|
8
|
-
"meeting_number": 7565121024,
|
9
|
-
"host_id": "kEFomHcIRgqxZT8D086O6A",
|
10
|
-
"account_id": "NyEqCEoYSNOr4jLMHoO2tA",
|
11
|
-
"topic": "Rocky test recording delete",
|
12
|
-
"start_time": "2014-11-06T04:10:10Z",
|
13
|
-
"timezone": "America/Los_Angeles",
|
14
|
-
"duration": 999,
|
15
|
-
"total_size": 4324324324,
|
16
|
-
"recording_count": 4,
|
17
|
-
"recording_files": [{
|
18
|
-
"id": "00401415-6783-0B14-608A-34C1DD9E3041",
|
19
|
-
"meeting_id": "j0N0YDBYSQGB4fRv444444==",
|
20
|
-
"recording_start": "2014-11-06T04:14:10Z",
|
21
|
-
"recording_end": "2014-11-06T04:24:10Z",
|
22
|
-
"file_type": "M4A",
|
23
|
-
"file_size": 432432,
|
24
|
-
"play_url": "https://brand.zoom.us/recording/play/00401415-6783-0B14-608A-34C1DD9E3041"
|
25
|
-
}, {
|
26
|
-
"id": "00401415-6783-0B14-608A-34C1DD9E3042",
|
27
|
-
"meeting_id": "j0N0YDBYSQGB4fRv444444==",
|
28
|
-
"recording_start": "2014-11-06T04:25:10Z",
|
29
|
-
"recording_end": "2014-11-06T04:26:10Z",
|
30
|
-
"file_type": "MP4",
|
31
|
-
"file_size": 432532465,
|
32
|
-
"play_url": "https://brand.zoom.us/recording/play/00401415-6783-0B14-608A-34C1DD9E3042"
|
33
|
-
}, {
|
34
|
-
"id": "00401415-6783-0B14-608A-34C1DD9E3043",
|
35
|
-
"meeting_id": "j0N0YDBYSQGB4fRv444444==",
|
36
|
-
"recording_start": "2014-11-06T04:36:10Z",
|
37
|
-
"recording_end": "2014-11-06T04:56:10Z",
|
38
|
-
"file_type": "M4A",
|
39
|
-
"file_size": 564,
|
40
|
-
"play_url": "https://brand.zoom.us/recording/play/00401415-6783-0B14-608A-34C1DD9E3043"
|
41
|
-
}, {
|
42
|
-
"id": "00401415-6783-0B14-608A-34C1DD9E3044",
|
43
|
-
"meeting_id": "j0N0YDBYSQGB4fRv444444==",
|
44
|
-
"recording_start": "2014-11-06T04:56:10Z",
|
45
|
-
"recording_end": "2014-11-06T04:56:12Z",
|
46
|
-
"file_type": "MP4",
|
47
|
-
"file_size": 643534,
|
48
|
-
"play_url": "https://brand.zoom.us/recording/play/00401415-6783-0B14-608A-34C1DD9E3044"
|
49
|
-
}]
|
50
|
-
}]
|
51
|
-
}
|
@@ -1,55 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'spec_helper'
|
4
|
-
|
5
|
-
xdescribe Zoom::Actions::Meeting do
|
6
|
-
let(:zc) { zoom_client }
|
7
|
-
let(:args) { { host_id: 'dh23hdu23gd', id: '123456789' } }
|
8
|
-
|
9
|
-
xdescribe '#meeting_end action' do
|
10
|
-
before :each do
|
11
|
-
stub_request(
|
12
|
-
:post,
|
13
|
-
zoom_url('/meeting/end')
|
14
|
-
).to_return(body: json_response('meeting', 'end'))
|
15
|
-
end
|
16
|
-
|
17
|
-
it "requires a 'host_id' argument" do
|
18
|
-
expect {
|
19
|
-
zc.meeting_end(filter_key(args, :host_id))
|
20
|
-
}.to raise_error(ArgumentError)
|
21
|
-
end
|
22
|
-
|
23
|
-
it "requires a 'id' argument" do
|
24
|
-
expect {
|
25
|
-
zc.meeting_end(filter_key(args, :id))
|
26
|
-
}.to raise_error(ArgumentError)
|
27
|
-
end
|
28
|
-
|
29
|
-
it 'returns a hash' do
|
30
|
-
expect(zc.meeting_end(args)).to be_kind_of(Hash)
|
31
|
-
end
|
32
|
-
|
33
|
-
it 'returns id and updated_at attributes' do
|
34
|
-
res = zc.meeting_end(args)
|
35
|
-
|
36
|
-
expect(res['id']).to eq(args[:id])
|
37
|
-
expect(res['ended_at']).to eq('2012-11-25T12:00:00Z')
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
xdescribe '#meeting_end! action' do
|
42
|
-
before :each do
|
43
|
-
stub_request(
|
44
|
-
:post,
|
45
|
-
zoom_url('/meeting/end')
|
46
|
-
).to_return(body: json_response('error'))
|
47
|
-
end
|
48
|
-
|
49
|
-
it 'raises Zoom::Error exception' do
|
50
|
-
expect {
|
51
|
-
zc.meeting_end!(args)
|
52
|
-
}.to raise_error(Zoom::Error)
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|