zoom_rb 0.10.0 → 1.0.2
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 +63 -0
- data/Gemfile.lock +83 -53
- data/Makefile +1 -1
- data/README.md +21 -7
- data/lib/zoom/actions/account.rb +18 -76
- data/lib/zoom/actions/billing.rb +41 -0
- data/lib/zoom/actions/dashboard.rb +22 -0
- data/lib/zoom/actions/groups.rb +19 -0
- data/lib/zoom/actions/im/chat.rb +13 -14
- data/lib/zoom/actions/meeting.rb +38 -63
- data/lib/zoom/actions/phone.rb +15 -0
- data/lib/zoom/actions/recording.rb +13 -22
- data/lib/zoom/actions/report.rb +8 -43
- data/lib/zoom/actions/roles.rb +24 -0
- data/lib/zoom/actions/sip_audio.rb +34 -0
- data/lib/zoom/actions/token.rb +26 -0
- data/lib/zoom/actions/user.rb +66 -138
- data/lib/zoom/actions/webinar.rb +43 -90
- data/lib/zoom/actions.rb +59 -0
- 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 +23 -15
- data/lib/zoom/version.rb +2 -2
- data/lib/{zoom.rb → zoom_rb.rb} +9 -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/admin_cannot_activated.json +4 -0
- 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/group_not_exist.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/not_found_administrator.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/create.json +5 -0
- data/spec/fixtures/groups/get.json +5 -0
- data/spec/fixtures/groups/list.json +15 -0
- data/spec/{lib/zoom/actions/report/telephone_report_spec.rb → fixtures/groups/update.json} +0 -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/participants.json +17 -0
- data/spec/fixtures/report/meeting.json +19 -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/webinar_details_report_spec.rb → fixtures/user/update_email.json} +0 -0
- data/spec/{lib/zoom/actions/report/webinar_polls_report_spec.rb → fixtures/user/update_password.json} +0 -0
- data/spec/{lib/zoom/actions/report/webinar_qa_report_spec.rb → fixtures/user/update_status.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/groups/create_spec.rb +98 -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/groups/update_spec.rb +59 -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/create_spec.rb +18 -46
- 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_email_spec.rb +59 -0
- data/spec/lib/zoom/actions/user/update_password_spec.rb +29 -0
- data/spec/lib/zoom/actions/user/update_status_spec.rb +59 -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/actions_spec.rb +105 -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 +13 -8
- data/spec/spec_helper.rb +15 -2
- data/zoom_rb.gemspec +1 -1
- metadata +321 -111
- 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/create_spec.rb +0 -3
- 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/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/spec/fixtures/user/get.json
CHANGED
@@ -1,23 +1,37 @@
|
|
1
1
|
{
|
2
|
-
"
|
3
|
-
"
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
"
|
11
|
-
"
|
12
|
-
"
|
13
|
-
"
|
14
|
-
"
|
15
|
-
"
|
16
|
-
"
|
17
|
-
"
|
18
|
-
"
|
19
|
-
"
|
20
|
-
"
|
21
|
-
"
|
22
|
-
"
|
2
|
+
"created_at":"2018-11-15T01:10:08Z",
|
3
|
+
"custom_attributes": [
|
4
|
+
{
|
5
|
+
"key": "cb3674544gexq",
|
6
|
+
"name": "Country of Citizenship",
|
7
|
+
"value": "Nepal"
|
8
|
+
}
|
9
|
+
],
|
10
|
+
"id": "z8dsdsdsdsdCfp8uQ",
|
11
|
+
"first_name": "Harry",
|
12
|
+
"last_name": "Grande",
|
13
|
+
"email": "harryg@dfkjdslfjkdsfjkdsf.fsdfdfd",
|
14
|
+
"type": 2,
|
15
|
+
"role_name": "Owner",
|
16
|
+
"pmi": 100000000,
|
17
|
+
"use_pmi": false,
|
18
|
+
"personal_meeting_url": "https://zoom.us/j/6352635623323434343443",
|
19
|
+
"timezone": "America/Los_Angeles",
|
20
|
+
"verified": 1,
|
21
|
+
"dept": "",
|
22
|
+
"created_at": "2018-11-15T01:10:08Z",
|
23
|
+
"last_login_time": "2019-09-13T21:08:52Z",
|
24
|
+
"last_client_version": "4.4.55383.0716(android)",
|
25
|
+
"pic_url": "https://lh4.googleusercontent.com/-hsgfhdgsfghdsfghfd-photo.jpg",
|
26
|
+
"host_key": "0000",
|
27
|
+
"jid": "hghghfghdfghdfhgh@xmpp.zoom.us",
|
28
|
+
"group_ids": [],
|
29
|
+
"im_group_ids": [
|
30
|
+
"CcSAAAAAAABBBVoQ"
|
31
|
+
],
|
32
|
+
"account_id": "EAAAAAbbbbbCCCCHMA",
|
33
|
+
"language": "en-US",
|
34
|
+
"phone_country": "USA",
|
35
|
+
"phone_number": "00000000",
|
36
|
+
"status": "active"
|
23
37
|
}
|
@@ -5,19 +5,23 @@
|
|
5
5
|
"total_records": 1,
|
6
6
|
"users": [
|
7
7
|
{
|
8
|
-
"id": "
|
9
|
-
"first_name": "
|
10
|
-
"last_name": "
|
11
|
-
"email": "
|
12
|
-
"type":
|
13
|
-
"pmi":
|
14
|
-
"timezone": "
|
15
|
-
"
|
16
|
-
"
|
17
|
-
"
|
18
|
-
"
|
19
|
-
"
|
20
|
-
"
|
8
|
+
"id": "z8yAAAAA8bbbQ",
|
9
|
+
"first_name": "Melina",
|
10
|
+
"last_name": "Ghimire",
|
11
|
+
"email": "mel@jfggdhfhdfj.djfhdsfh",
|
12
|
+
"type": 2,
|
13
|
+
"pmi": 581111112,
|
14
|
+
"timezone": "America/Los_Angeles",
|
15
|
+
"verified": 1,
|
16
|
+
"dept": "",
|
17
|
+
"created_at": "2018-11-15T01:10:08Z",
|
18
|
+
"last_login_time": "2019-09-13T21:08:52Z",
|
19
|
+
"last_client_version": "4.4.55383.0716(android)",
|
20
|
+
"pic_url": "https://lh4.googleusercontent.com/-someurl/photo.jpg",
|
21
|
+
"im_group_ids": [
|
22
|
+
"Abdsjkfhdhfj"
|
23
|
+
],
|
24
|
+
"status": "active"
|
21
25
|
}
|
22
26
|
]
|
23
27
|
}
|
@@ -0,0 +1,65 @@
|
|
1
|
+
{
|
2
|
+
"permissions": [
|
3
|
+
"IMGroups:Edit",
|
4
|
+
"Security:Edit",
|
5
|
+
"IMGroups:Read",
|
6
|
+
"BillingSubscription:Edit",
|
7
|
+
"SingleSignOn:Edit",
|
8
|
+
"WebinarSetting:Edit",
|
9
|
+
"Branding:Read",
|
10
|
+
"UsageReport:Read",
|
11
|
+
"BillingSubscription:Read",
|
12
|
+
"CrossHybrid:Read",
|
13
|
+
"UserActivitiesReport:Read",
|
14
|
+
"Branding:Edit",
|
15
|
+
"SingleSignOn:Read",
|
16
|
+
"Security:Read",
|
17
|
+
"Dashboard:Read",
|
18
|
+
"AccountProfile:Read",
|
19
|
+
"MarketPlace:Edit",
|
20
|
+
"ZoomRooms:Edit",
|
21
|
+
"PbxAdmin:Read",
|
22
|
+
"Meeting:Edit",
|
23
|
+
"IMChatHistory:Read",
|
24
|
+
"RoomConnector:Read",
|
25
|
+
"IMChatBot:Edit",
|
26
|
+
"CrossHybrid:Edit",
|
27
|
+
"AccountProfile:Edit",
|
28
|
+
"RoomConnector:Edit",
|
29
|
+
"Group:Edit",
|
30
|
+
"BillingInformation:Edit",
|
31
|
+
"LyncConnector:Edit",
|
32
|
+
"LyncConnector:Read",
|
33
|
+
"Integration:Read",
|
34
|
+
"User:Edit",
|
35
|
+
"BillingInformation:Read",
|
36
|
+
"AccountSetting:Edit",
|
37
|
+
"SubAccount:Read",
|
38
|
+
"IMSetting:Read",
|
39
|
+
"MeetingConnector:Read",
|
40
|
+
"ThirdPartyConference:Read",
|
41
|
+
"Meeting:Join",
|
42
|
+
"CallInContacts:Read",
|
43
|
+
"ZoomDevelopers:Read",
|
44
|
+
"Recording:Read",
|
45
|
+
"Role:Edit",
|
46
|
+
"Recording:Edit",
|
47
|
+
"DigitalSignage:Read",
|
48
|
+
"ScheduleTrackingFields:Read",
|
49
|
+
"ThirdPartyConference:Edit",
|
50
|
+
"Group:Read",
|
51
|
+
"AccountSetting:Read",
|
52
|
+
"MeetingConnector:Edit",
|
53
|
+
"Integration:Edit",
|
54
|
+
"CallInContacts:Edit",
|
55
|
+
"DigitalSignage:Edit",
|
56
|
+
"MarketPlace:Read",
|
57
|
+
"PbxAdmin:Edit",
|
58
|
+
"ZoomRooms:Read",
|
59
|
+
"MobileDeviceManagement:Read",
|
60
|
+
"RecordingContent:Read",
|
61
|
+
"User:Read",
|
62
|
+
"ScheduleTrackingFields:Edit",
|
63
|
+
"WebinarSetting:Read"
|
64
|
+
]
|
65
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
{
|
2
|
+
"from": "2015-04-01",
|
3
|
+
"to": "2015-05-01",
|
4
|
+
"page_count": 1,
|
5
|
+
"page_size": 30,
|
6
|
+
"total_records": 1,
|
7
|
+
"next_page_token": "",
|
8
|
+
"meetings": [
|
9
|
+
{
|
10
|
+
"uuid": "ucc69C82Q5mTNyCRWE29Aw==",
|
11
|
+
"meeting_number": 933560800,
|
12
|
+
"host_id": "kEFomHcIRgqxZT8D086O6A",
|
13
|
+
"account_id": "NyEqCEoYSNOr4jLMHoO2tA",
|
14
|
+
"topic": "vgfdsffdfdsf s3423432",
|
15
|
+
"start_time": "2015-04-13T01:06:04Z",
|
16
|
+
"timezone": "UTC",
|
17
|
+
"duration": 1,
|
18
|
+
"total_size": 686496,
|
19
|
+
"recording_count": 3,
|
20
|
+
"recording_files": [
|
21
|
+
{
|
22
|
+
"id": "654234c0-ca6e-4dfd-a09d-54f85951658f",
|
23
|
+
"meeting_id": "ucc69C82Q5mTNyCRWE29Aw==",
|
24
|
+
"recording_start": "2015-04-13T01:06:36Z",
|
25
|
+
"recording_end": "2015-04-13T01:06:47Z",
|
26
|
+
"file_type": "MP4",
|
27
|
+
"file_size": 438482,
|
28
|
+
"play_url": "https://rocky.zoom.us/recording/play/654234c0-ca6e-4dfd-a09d-54f85951658f",
|
29
|
+
"download_url": "https://rocky.zoom.us/rec/download/654234c0-ca6e-4dfd-a09d-54f85951658f"
|
30
|
+
}, {
|
31
|
+
"id": "51ff09f7-e8d8-4b29-9e61-fb8e0cbc7246",
|
32
|
+
"meeting_id": "ucc69C82Q5mTNyCRWE29Aw==",
|
33
|
+
"recording_start": "2015-04-13T01:06:55Z",
|
34
|
+
"recording_end": "2015-04-13T01:07:02Z",
|
35
|
+
"file_type": "MP4",
|
36
|
+
"file_size": 244958,
|
37
|
+
"play_url": "https://rocky.zoom.us/recording/play/51ff09f7-e8d8-4b29-9e61-fb8e0cbc7246",
|
38
|
+
"download_url": "https://rocky.zoom.us/rec/download/51ff09f7-e8d8-4b29-9e61-fb8e0cbc7246"
|
39
|
+
}, {
|
40
|
+
"id": "b601d00e-497a-450f-bb05-9896ce20c03e",
|
41
|
+
"meeting_id": "ucc69C82Q5mTNyCRWE29Aw==",
|
42
|
+
"recording_start": "2015-04-13T01:06:55Z",
|
43
|
+
"recording_end": "2015-04-13T01:07:02Z",
|
44
|
+
"file_type": "M4A",
|
45
|
+
"file_size": 3056,
|
46
|
+
"play_url": "https://rocky.zoom.us/recording/play/b601d00e-497a-450f-bb05-9896ce20c03e",
|
47
|
+
"download_url": "https://rocky.zoom.us/rec/download/b601d00e-497a-450f-bb05-9896ce20c03e"
|
48
|
+
}]
|
49
|
+
}]
|
50
|
+
}
|
data/spec/{lib/zoom/actions/report/webinar_details_report_spec.rb → fixtures/user/update_email.json}
RENAMED
File without changes
|
File without changes
|
data/spec/{lib/zoom/actions/report/webinar_qa_report_spec.rb → fixtures/user/update_status.json}
RENAMED
File without changes
|
@@ -0,0 +1,68 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe Zoom::Actions::Account do
|
6
|
+
let(:zc) { zoom_client }
|
7
|
+
let(:args) {
|
8
|
+
{
|
9
|
+
first_name: 'Foo',
|
10
|
+
last_name: 'Barton',
|
11
|
+
email: 'foo@bar.com',
|
12
|
+
password: 'password1'
|
13
|
+
}
|
14
|
+
}
|
15
|
+
let(:options) {
|
16
|
+
{
|
17
|
+
options: {
|
18
|
+
share_rc: true,
|
19
|
+
room_connectors: '127.0.0.1',
|
20
|
+
share_mc: true,
|
21
|
+
meeting_connectors: '127.0.0.1',
|
22
|
+
pay_mode: 'master'
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
describe '#account_create action' do
|
27
|
+
context 'with a valid response' do
|
28
|
+
before :each do
|
29
|
+
stub_request(
|
30
|
+
:post,
|
31
|
+
zoom_url('/accounts')
|
32
|
+
).to_return(body: json_response('account', 'create'),
|
33
|
+
headers: { 'Content-Type' => 'application/json' })
|
34
|
+
end
|
35
|
+
|
36
|
+
it 'returns a hash' do
|
37
|
+
expect(zc.account_create(args)).to be_kind_of(Hash)
|
38
|
+
end
|
39
|
+
|
40
|
+
it 'allows options' do
|
41
|
+
expect(zc.account_create(args.merge(options))).to be_kind_of(Hash)
|
42
|
+
end
|
43
|
+
|
44
|
+
it 'raises an error when additional params are supplied' do
|
45
|
+
expect { zc.account_create(args.merge(options.merge(foo: 'bar'))) }.to raise_error(Zoom::ParameterNotPermitted, [:foo].to_s)
|
46
|
+
end
|
47
|
+
|
48
|
+
it 'raises an error when missing a required param' do
|
49
|
+
expect { zc.account_create(args.slice(*%i[first_name last_name email])) }.to raise_error(Zoom::ParameterMissing, [:password].to_s)
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
context 'with a 4xx response' do
|
54
|
+
before :each do
|
55
|
+
stub_request(
|
56
|
+
:post,
|
57
|
+
zoom_url('/accounts')
|
58
|
+
).to_return(status: 400,
|
59
|
+
body: json_response('error', 'not_found'),
|
60
|
+
headers: { 'Content-Type' => 'application/json' })
|
61
|
+
end
|
62
|
+
|
63
|
+
it 'raises Zoom::Error exception' do
|
64
|
+
expect { zc.account_create(args) }.to raise_error(Zoom::Error)
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe Zoom::Actions::Account do
|
6
|
+
let(:zc) { zoom_client }
|
7
|
+
let(:args) { { account_id: 1 } }
|
8
|
+
|
9
|
+
describe '#account_delete action' do
|
10
|
+
context 'with a valid response' do
|
11
|
+
before :each do
|
12
|
+
stub_request(
|
13
|
+
:delete,
|
14
|
+
zoom_url("/accounts/#{args[:account_id]}")
|
15
|
+
).to_return(status: 204,
|
16
|
+
body: json_response('account', 'delete'),
|
17
|
+
headers: { 'Content-Type' => 'application/json' })
|
18
|
+
end
|
19
|
+
|
20
|
+
it 'requires the account_id params' do
|
21
|
+
expect { zc.account_delete }.to raise_error(Zoom::ParameterMissing, [:account_id].to_s)
|
22
|
+
end
|
23
|
+
|
24
|
+
it 'returns the http status code as a number' do
|
25
|
+
expect(zc.account_delete(args)).to eql(204)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
context 'with a 4xx response' do
|
30
|
+
before :each do
|
31
|
+
stub_request(
|
32
|
+
:delete,
|
33
|
+
zoom_url("/accounts/#{args[:account_id]}")
|
34
|
+
).to_return(status: 400,
|
35
|
+
body: json_response('error', 'not_found'),
|
36
|
+
headers: { 'Content-Type' => 'application/json' })
|
37
|
+
end
|
38
|
+
|
39
|
+
it 'raises Zoom::Error exception' do
|
40
|
+
expect { zc.account_delete(args) }.to raise_error(Zoom::Error)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe Zoom::Actions::Account do
|
6
|
+
let(:zc) { zoom_client }
|
7
|
+
let(:args) { { account_id: 1 } }
|
8
|
+
|
9
|
+
describe '#account_get_locked_settings action' do
|
10
|
+
context 'with a valid response' do
|
11
|
+
before :each do
|
12
|
+
stub_request(
|
13
|
+
:get,
|
14
|
+
zoom_url("/accounts/#{args[:account_id]}/lock_settings")
|
15
|
+
).to_return(body: json_response('account', 'settings_get'),
|
16
|
+
headers: { 'Content-Type' => 'application/json' })
|
17
|
+
end
|
18
|
+
|
19
|
+
it 'returns a hash' do
|
20
|
+
expect(zc.account_get_locked_settings(args)).to be_kind_of(Hash)
|
21
|
+
end
|
22
|
+
|
23
|
+
it 'raises an error when missing a required param' do
|
24
|
+
expect { zc.account_get_locked_settings }.to raise_error(Zoom::ParameterMissing, [:account_id].to_s)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
context 'with a 4xx response' do
|
29
|
+
before :each do
|
30
|
+
stub_request(
|
31
|
+
:get,
|
32
|
+
zoom_url("/accounts/#{args[:account_id]}/lock_settings")
|
33
|
+
).to_return(status: 400,
|
34
|
+
body: json_response('error', 'not_found'),
|
35
|
+
headers: { 'Content-Type' => 'application/json' })
|
36
|
+
end
|
37
|
+
|
38
|
+
it 'raises Zoom::Error exception' do
|
39
|
+
expect { zc.account_get_locked_settings(args) }.to raise_error(Zoom::Error)
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe Zoom::Actions::Account do
|
6
|
+
let(:zc) { zoom_client }
|
7
|
+
let(:args) { { account_id: 1 } }
|
8
|
+
|
9
|
+
describe '#account_get action' do
|
10
|
+
context 'with a valid response' do
|
11
|
+
before :each do
|
12
|
+
stub_request(
|
13
|
+
:get,
|
14
|
+
zoom_url("/accounts/#{args[:account_id]}")
|
15
|
+
).to_return(body: json_response('account', 'get'),
|
16
|
+
headers: { 'Content-Type' => 'application/json' })
|
17
|
+
end
|
18
|
+
|
19
|
+
it 'returns a hash' do
|
20
|
+
expect(zc.account_get(args)).to be_kind_of(Hash)
|
21
|
+
end
|
22
|
+
|
23
|
+
it 'raises an error when missing a required param' do
|
24
|
+
expect { zc.account_get }.to raise_error(Zoom::ParameterMissing, [:account_id].to_s)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
context 'with a 4xx response' do
|
29
|
+
before :each do
|
30
|
+
stub_request(
|
31
|
+
:get,
|
32
|
+
zoom_url("/accounts/#{args[:account_id]}")
|
33
|
+
).to_return(status: 400,
|
34
|
+
body: json_response('error', 'not_found'),
|
35
|
+
headers: { 'Content-Type' => 'application/json' })
|
36
|
+
end
|
37
|
+
|
38
|
+
it 'raises Zoom::Error exception' do
|
39
|
+
expect { zc.account_get(args) }.to raise_error(Zoom::Error)
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
RSpec.describe Zoom::Actions::Account do
|
6
|
+
let(:zc) { zoom_client }
|
7
|
+
let(:args) { { account_id: 1 } }
|
8
|
+
|
9
|
+
describe '#account_managed_domains action' do
|
10
|
+
context 'with a valid response' do
|
11
|
+
before :each do
|
12
|
+
stub_request(
|
13
|
+
:get,
|
14
|
+
zoom_url("/accounts/#{args[:account_id]}/managed_domains")
|
15
|
+
).to_return(body: json_response('account', 'managed_domains'),
|
16
|
+
headers: { 'Content-Type' => 'application/json' })
|
17
|
+
end
|
18
|
+
|
19
|
+
it 'returns a hash' do
|
20
|
+
expect(zc.account_managed_domains(args)).to be_kind_of(Hash)
|
21
|
+
end
|
22
|
+
|
23
|
+
it 'raises an error when missing a required param' do
|
24
|
+
expect { zc.account_managed_domains }.to raise_error(Zoom::ParameterMissing, [:account_id].to_s)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
context 'with a 4xx response' do
|
29
|
+
before :each do
|
30
|
+
stub_request(
|
31
|
+
:get,
|
32
|
+
zoom_url("/accounts/#{args[:account_id]}/managed_domains")
|
33
|
+
).to_return(status: 400,
|
34
|
+
body: json_response('error', 'not_found'),
|
35
|
+
headers: { 'Content-Type' => 'application/json' })
|
36
|
+
end
|
37
|
+
|
38
|
+
it 'raises Zoom::Error exception' do
|
39
|
+
expect { zc.account_managed_domains(args) }.to raise_error(Zoom::Error)
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe Zoom::Actions::Account do
|
6
|
+
let(:zc) { zoom_client }
|
7
|
+
let(:args) {
|
8
|
+
{
|
9
|
+
account_id: '1',
|
10
|
+
share_rc: true,
|
11
|
+
room_connectors: '127.0.0.1',
|
12
|
+
share_mc: true,
|
13
|
+
meeting_connectors: '127.0.0.1',
|
14
|
+
pay_mode: 'master'
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
describe '#options_update action' do
|
19
|
+
context 'with a valid response' do
|
20
|
+
before :each do
|
21
|
+
stub_request(
|
22
|
+
:patch,
|
23
|
+
zoom_url("/accounts/#{args[:account_id]}/options")
|
24
|
+
).to_return(body: json_response('account', 'options_update'),
|
25
|
+
headers: { 'Content-Type' => 'application/json' })
|
26
|
+
end
|
27
|
+
|
28
|
+
it 'requires id param' do
|
29
|
+
expect { zc.account_options_update }.to raise_error(Zoom::ParameterMissing, [:account_id].to_s)
|
30
|
+
end
|
31
|
+
|
32
|
+
it 'returns a hash' do
|
33
|
+
expect(zc.account_options_update(args)).to be_kind_of(Hash)
|
34
|
+
end
|
35
|
+
|
36
|
+
it 'returns same params' do
|
37
|
+
res = zc.account_options_update(args)
|
38
|
+
|
39
|
+
expect(res.keys).to match_array(%w[share_rc room_connectors share_mc meeting_connectors pay_mode])
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
context 'with a 4xx response' do
|
44
|
+
before :each do
|
45
|
+
stub_request(
|
46
|
+
:patch,
|
47
|
+
zoom_url("/accounts/#{args[:account_id]}/options")
|
48
|
+
).to_return(status: 404,
|
49
|
+
body: json_response('error', 'validation'),
|
50
|
+
headers: { 'Content-Type' => 'application/json' })
|
51
|
+
end
|
52
|
+
|
53
|
+
it 'raises Zoom::Error exception' do
|
54
|
+
expect { zc.account_options_update(args) }.to raise_error(Zoom::Error)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -4,21 +4,21 @@ require 'spec_helper'
|
|
4
4
|
|
5
5
|
describe Zoom::Actions::Account do
|
6
6
|
let(:zc) { zoom_client }
|
7
|
-
let(:args) { {
|
7
|
+
let(:args) { { account_id: '1' } }
|
8
8
|
|
9
9
|
describe '#settings_get action' do
|
10
10
|
context 'with a valid response' do
|
11
11
|
before :each do
|
12
12
|
stub_request(
|
13
13
|
:get,
|
14
|
-
zoom_url("/accounts/#{args[:
|
14
|
+
zoom_url("/accounts/#{args[:account_id]}/settings")
|
15
15
|
).to_return(status: 200,
|
16
16
|
body: json_response('account', 'settings_get'),
|
17
17
|
headers: { 'Content-Type' => 'application/json' })
|
18
18
|
end
|
19
19
|
|
20
20
|
it 'requires id param' do
|
21
|
-
expect { zc.account_settings_get
|
21
|
+
expect { zc.account_settings_get }.to raise_error(Zoom::ParameterMissing, [:account_id].to_s)
|
22
22
|
end
|
23
23
|
|
24
24
|
it 'returns a hash' do
|
@@ -28,7 +28,7 @@ describe Zoom::Actions::Account do
|
|
28
28
|
it 'returns same params' do
|
29
29
|
res = zc.account_settings_get(args)
|
30
30
|
|
31
|
-
expect(res.keys).to match_array([
|
31
|
+
expect(res.keys).to match_array(%w[email_notification feature in_meeting integration recording schedule_meeting security telephony tsp zoom_rooms])
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
@@ -36,7 +36,7 @@ describe Zoom::Actions::Account do
|
|
36
36
|
before :each do
|
37
37
|
stub_request(
|
38
38
|
:get,
|
39
|
-
zoom_url("/accounts/#{args[:
|
39
|
+
zoom_url("/accounts/#{args[:account_id]}/settings")
|
40
40
|
).to_return(status: 404,
|
41
41
|
body: json_response('error', 'validation'),
|
42
42
|
headers: { 'Content-Type' => 'application/json' })
|