zoom_rb 0.8.7 → 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/.gitignore +2 -1
- data/CHANGELOG.md +15 -0
- data/Gemfile.lock +85 -51
- data/Makefile +1 -1
- data/README.md +33 -1
- data/lib/zoom/actions/account.rb +35 -60
- 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 +18 -6
- data/lib/zoom/actions/meeting.rb +68 -49
- data/lib/zoom/actions/phone.rb +27 -0
- data/lib/zoom/actions/recording.rb +25 -16
- data/lib/zoom/actions/report.rb +10 -35
- 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 +58 -73
- data/lib/zoom/actions/webinar.rb +47 -48
- data/lib/zoom/client.rb +32 -13
- data/lib/zoom/clients/jwt.rb +22 -0
- data/lib/zoom/clients/oauth.rb +60 -0
- 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 +12 -31
- data/lib/zoom/version.rb +5 -0
- data/lib/{zoom.rb → zoom_rb.rb} +12 -5
- 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/list.json +18 -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 +120 -0
- 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/settings_get.json +74 -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/past_webinar_list.json +8 -0
- data/spec/fixtures/webinar/poll_get.json +13 -0
- data/spec/fixtures/webinar/polls_list.json +16 -0
- data/spec/fixtures/webinar/registrant/get.json +25 -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/list_spec.rb +58 -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 +50 -0
- 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/report/webinar_participants_report_spec.rb +2 -2
- 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 +2 -2
- data/spec/lib/zoom/actions/user/delete_spec.rb +2 -2
- data/spec/lib/zoom/actions/user/email_check_spec.rb +43 -0
- data/spec/lib/zoom/actions/user/get_spec.rb +12 -3
- data/spec/lib/zoom/actions/user/list_recordings_spec.rb +57 -0
- data/spec/lib/zoom/actions/user/list_spec.rb +34 -3
- 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_get_spec.rb +56 -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/update_spec.rb +2 -2
- data/spec/lib/zoom/actions/user/vanity_name_spec.rb +51 -0
- data/spec/lib/zoom/actions/webinar/create_spec.rb +49 -44
- data/spec/lib/zoom/actions/webinar/delete_spec.rb +3 -3
- data/spec/lib/zoom/actions/webinar/get_spec.rb +1 -1
- data/spec/lib/zoom/actions/webinar/list_spec.rb +2 -2
- data/spec/lib/zoom/actions/webinar/panelist_list_spec.rb +44 -0
- data/spec/lib/zoom/actions/webinar/past_webinar_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/webinar/registrants/add_spec.rb +2 -2
- data/spec/lib/zoom/actions/webinar/registrants/get_spec.rb +49 -0
- data/spec/lib/zoom/actions/webinar/registrants/list_spec.rb +2 -2
- data/spec/lib/zoom/actions/webinar/registrants/update_status_spec.rb +1 -1
- data/spec/lib/zoom/actions/webinar/update_spec.rb +2 -2
- data/spec/lib/zoom/client_spec.rb +85 -7
- data/spec/lib/zoom/params_spec.rb +23 -3
- data/spec/lib/zoom/utils_spec.rb +12 -17
- data/spec/spec_helper.rb +23 -2
- data/zoom_rb.gemspec +6 -2
- metadata +318 -110
- data/.ruby-version +0 -1
- 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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1cd08a56da2851062cd381b62c75bc0fe3b5c1c809699fd6fa19e268799009c
|
4
|
+
data.tar.gz: 0a3b24e1e9c460d226590fac97a1c9a7af199ac2db72f85e68ceab3e38527f61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95585d7404c4473f0822e208f4cf517752933331c2f3fbc55fdd3658b11ce8511a572dd5ae2aff83aca9c8f27482f79a461284fe6f053ab42e9477def1b40f56
|
7
|
+
data.tar.gz: 5c871ea816c82b7ce03111988317c2b47a4334381902827b376d8ecf84aa220e401bd6be1c82d6ffd5632006d2abd144a2286612f123209a91d4e1f225f7680b
|
data/.circleci/config.yml
CHANGED
@@ -9,7 +9,7 @@ jobs:
|
|
9
9
|
CC_TEST_REPORTER_ID: c6c77975186cfe10e41d9548e9b4a4648f87b56cdbb70bd3896a5a58abf08421
|
10
10
|
docker:
|
11
11
|
# specify the version you desire here
|
12
|
-
- image: circleci/ruby:2.
|
12
|
+
- image: circleci/ruby:2.7-node-browsers
|
13
13
|
|
14
14
|
# Specify service dependencies here if necessary
|
15
15
|
# CircleCI maintains a library of pre-built images
|
data/.gitignore
CHANGED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# 0.11.0
|
2
|
+
|
3
|
+
This is the first CHANGELOG entry.
|
4
|
+
|
5
|
+
### New features:
|
6
|
+
* A lot of new endpoints
|
7
|
+
|
8
|
+
### Fixes:
|
9
|
+
* Update README to say `require 'zoom'`
|
10
|
+
* Fix a typo in the README
|
11
|
+
|
12
|
+
### Misc:
|
13
|
+
* Update gems
|
14
|
+
* Update bundler to 2.2
|
15
|
+
* Update Ruby to 2.7
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
zoom_rb (0.
|
4
|
+
zoom_rb (0.11.0)
|
5
5
|
httparty (~> 0.13)
|
6
6
|
json (>= 1.8)
|
7
7
|
jwt
|
@@ -9,78 +9,112 @@ PATH
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
12
|
+
activesupport (6.1.4)
|
13
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
14
|
+
i18n (>= 1.6, < 2)
|
15
|
+
minitest (>= 5.1)
|
16
|
+
tzinfo (~> 2.0)
|
17
|
+
zeitwerk (~> 2.3)
|
18
|
+
addressable (2.8.0)
|
19
|
+
public_suffix (>= 2.0.2, < 5.0)
|
20
|
+
ast (2.4.2)
|
21
|
+
byebug (11.1.3)
|
22
|
+
coderay (1.1.3)
|
23
|
+
concurrent-ruby (1.1.9)
|
24
|
+
crack (0.4.5)
|
25
|
+
rexml
|
26
|
+
diff-lcs (1.4.4)
|
27
|
+
docile (1.4.0)
|
28
|
+
hashdiff (1.0.1)
|
29
|
+
hint-rubocop_style (0.3.6)
|
30
|
+
rubocop (>= 0.78.0)
|
31
|
+
rubocop-performance (>= 1.3.0)
|
32
|
+
rubocop-rails (>= 2.0.0)
|
33
|
+
rubocop-rspec (>= 1.33.0)
|
34
|
+
httparty (0.18.1)
|
35
|
+
mime-types (~> 3.0)
|
25
36
|
multi_xml (>= 0.5.2)
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
37
|
+
i18n (1.8.10)
|
38
|
+
concurrent-ruby (~> 1.0)
|
39
|
+
json (2.5.1)
|
40
|
+
jwt (2.2.3)
|
41
|
+
method_source (1.0.0)
|
42
|
+
mime-types (3.3.1)
|
43
|
+
mime-types-data (~> 3.2015)
|
44
|
+
mime-types-data (3.2021.0704)
|
45
|
+
minitest (5.14.4)
|
30
46
|
multi_xml (0.6.0)
|
31
|
-
parallel (1.
|
32
|
-
parser (
|
33
|
-
ast (~> 2.4.
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
47
|
+
parallel (1.20.1)
|
48
|
+
parser (3.0.2.0)
|
49
|
+
ast (~> 2.4.1)
|
50
|
+
pry (0.13.1)
|
51
|
+
coderay (~> 1.1)
|
52
|
+
method_source (~> 1.0)
|
53
|
+
pry-byebug (3.9.0)
|
54
|
+
byebug (~> 11.0)
|
55
|
+
pry (~> 0.13.0)
|
56
|
+
public_suffix (4.0.6)
|
57
|
+
rack (2.2.3)
|
39
58
|
rainbow (3.0.0)
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
rspec-
|
44
|
-
|
45
|
-
rspec-
|
46
|
-
rspec-
|
59
|
+
regexp_parser (2.1.1)
|
60
|
+
rexml (3.2.5)
|
61
|
+
rspec (3.10.0)
|
62
|
+
rspec-core (~> 3.10.0)
|
63
|
+
rspec-expectations (~> 3.10.0)
|
64
|
+
rspec-mocks (~> 3.10.0)
|
65
|
+
rspec-core (3.10.1)
|
66
|
+
rspec-support (~> 3.10.0)
|
67
|
+
rspec-expectations (3.10.1)
|
47
68
|
diff-lcs (>= 1.2.0, < 2.0)
|
48
|
-
rspec-support (~> 3.
|
49
|
-
rspec-mocks (3.
|
69
|
+
rspec-support (~> 3.10.0)
|
70
|
+
rspec-mocks (3.10.2)
|
50
71
|
diff-lcs (>= 1.2.0, < 2.0)
|
51
|
-
rspec-support (~> 3.
|
52
|
-
rspec-support (3.
|
72
|
+
rspec-support (~> 3.10.0)
|
73
|
+
rspec-support (3.10.2)
|
53
74
|
rspec_junit_formatter (0.4.1)
|
54
75
|
rspec-core (>= 2, < 4, != 2.12.0)
|
55
|
-
rubocop (
|
56
|
-
jaro_winkler (~> 1.5.1)
|
76
|
+
rubocop (1.18.3)
|
57
77
|
parallel (~> 1.10)
|
58
|
-
parser (>=
|
59
|
-
powerpack (~> 0.1)
|
78
|
+
parser (>= 3.0.0.0)
|
60
79
|
rainbow (>= 2.2.2, < 4.0)
|
80
|
+
regexp_parser (>= 1.8, < 3.0)
|
81
|
+
rexml
|
82
|
+
rubocop-ast (>= 1.7.0, < 2.0)
|
61
83
|
ruby-progressbar (~> 1.7)
|
62
|
-
unicode-display_width (
|
63
|
-
rubocop-
|
64
|
-
|
65
|
-
|
66
|
-
|
84
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
85
|
+
rubocop-ast (1.8.0)
|
86
|
+
parser (>= 3.0.1.1)
|
87
|
+
rubocop-performance (1.11.4)
|
88
|
+
rubocop (>= 1.7.0, < 2.0)
|
89
|
+
rubocop-ast (>= 0.4.0)
|
90
|
+
rubocop-rails (2.11.3)
|
91
|
+
activesupport (>= 4.2.0)
|
92
|
+
rack (>= 1.1)
|
93
|
+
rubocop (>= 1.7.0, < 2.0)
|
94
|
+
rubocop-rspec (2.4.0)
|
95
|
+
rubocop (~> 1.0)
|
96
|
+
rubocop-ast (>= 1.1.0)
|
97
|
+
ruby-progressbar (1.11.0)
|
67
98
|
simplecov (0.16.1)
|
68
99
|
docile (~> 1.1)
|
69
100
|
json (>= 1.8, < 3)
|
70
101
|
simplecov-html (~> 0.10.0)
|
71
102
|
simplecov-html (0.10.2)
|
72
|
-
|
73
|
-
|
103
|
+
tzinfo (2.0.4)
|
104
|
+
concurrent-ruby (~> 1.0)
|
105
|
+
unicode-display_width (2.0.0)
|
106
|
+
webmock (3.13.0)
|
74
107
|
addressable (>= 2.3.6)
|
75
108
|
crack (>= 0.3.2)
|
76
|
-
hashdiff
|
109
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
110
|
+
zeitwerk (2.4.2)
|
77
111
|
|
78
112
|
PLATFORMS
|
79
113
|
ruby
|
80
114
|
|
81
115
|
DEPENDENCIES
|
82
116
|
hint-rubocop_style (~> 0)
|
83
|
-
pry
|
117
|
+
pry-byebug
|
84
118
|
rspec (~> 3.8)
|
85
119
|
rspec_junit_formatter (~> 0.4.1)
|
86
120
|
simplecov (~> 0.16.1)
|
@@ -88,4 +122,4 @@ DEPENDENCIES
|
|
88
122
|
zoom_rb!
|
89
123
|
|
90
124
|
BUNDLED WITH
|
91
|
-
|
125
|
+
2.2.24
|
data/Makefile
CHANGED
data/README.md
CHANGED
@@ -18,6 +18,8 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
+
The Zoom API uses OAuth or JWT to [Authenticate](https://marketplace.zoom.us/docs/api-reference/Authentication) API request. By default, a JWT client will be used.
|
22
|
+
|
21
23
|
```ruby
|
22
24
|
require 'zoom'
|
23
25
|
|
@@ -27,11 +29,41 @@ Zoom.configure do |c|
|
|
27
29
|
end
|
28
30
|
|
29
31
|
zoom_client = Zoom.new
|
32
|
+
```
|
33
|
+
|
34
|
+
To create an OAuth flow you need to make a call to auth, then create the client directly from an access token.
|
35
|
+
|
36
|
+
First you need to get an auth_code externally from:
|
37
|
+
```
|
38
|
+
https://zoom.us/oauth/authorize?response_type=code&client_id=7lstjKqdwjett_kwjwDSEQ&redirect_uri=https://yourapp.com
|
39
|
+
```
|
40
|
+
|
41
|
+
Which will result in a redirect to your app with code in the url params
|
42
|
+
|
43
|
+
then use this code to get an access token and a refresh token.
|
44
|
+
|
45
|
+
```ruby
|
46
|
+
require 'zoom'
|
47
|
+
|
48
|
+
auth = Zoom::Client::OAuth.new(auth_code: auth_code, redirect_uri: redirect_uri, timeout: 15).auth
|
49
|
+
|
50
|
+
zoom_client = Zoom::Client::OAuth.new(access_token: auth['access_token'], timeout: 15)
|
51
|
+
```
|
52
|
+
|
53
|
+
You can also make a call to refresh with auth using an auth_token and a refresh_token
|
54
|
+
```ruby
|
55
|
+
client = Zoom::Client::OAuth.new(auth_token: auth_token, refresh_token: refresh_token).auth
|
56
|
+
|
57
|
+
zoom_client = Zoom::Client::OAuth.new(access_token: 'xxx', timeout: 15)
|
58
|
+
```
|
30
59
|
|
60
|
+
With the zoom client, access the API
|
61
|
+
|
62
|
+
```ruby
|
31
63
|
user_list = zoom_client.user_list
|
32
64
|
user_list['users'].each do |user|
|
33
65
|
user_id = user['id']
|
34
|
-
puts zoom_client.meeting_list(
|
66
|
+
puts zoom_client.meeting_list(user_id: user_id)
|
35
67
|
end
|
36
68
|
|
37
69
|
begin
|
data/lib/zoom/actions/account.rb
CHANGED
@@ -4,90 +4,65 @@ module Zoom
|
|
4
4
|
module Actions
|
5
5
|
module Account
|
6
6
|
def account_list(*args)
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
params = Zoom::Params.new(Utils.extract_options!(args))
|
8
|
+
params.permit(%i[page_size page_number])
|
9
|
+
Utils.parse_response self.class.get('/accounts', query: params, headers: request_headers)
|
10
10
|
end
|
11
11
|
|
12
12
|
def account_create(*args)
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
params = Zoom::Params.new(Utils.extract_options!(args))
|
14
|
+
params.require(%i[first_name last_name email password]).permit(options: %i[share_rc room_connectors share_mc meeting_connectors pay_mode])
|
15
|
+
Utils.parse_response self.class.post('/accounts', body: params.to_json, headers: request_headers)
|
16
16
|
end
|
17
17
|
|
18
18
|
def account_get(*args)
|
19
|
-
|
20
|
-
|
21
|
-
|
19
|
+
params = Zoom::Params.new(Utils.extract_options!(args))
|
20
|
+
params.require(:account_id)
|
21
|
+
Utils.parse_response self.class.get("/accounts/#{params[:account_id]}", headers: request_headers)
|
22
22
|
end
|
23
23
|
|
24
24
|
def account_delete(*args)
|
25
|
-
|
26
|
-
|
27
|
-
|
25
|
+
params = Zoom::Params.new(Utils.extract_options!(args))
|
26
|
+
params.require(:account_id)
|
27
|
+
Utils.parse_response self.class.delete("/accounts/#{params[:account_id]}", headers: request_headers)
|
28
28
|
end
|
29
29
|
|
30
30
|
def account_options_update(*args)
|
31
|
-
|
32
|
-
|
33
|
-
|
31
|
+
params = Zoom::Params.new(Utils.extract_options!(args))
|
32
|
+
params.require(:account_id).permit(%i[share_rc room_connectors share_mc meeting_connectors pay_mode])
|
33
|
+
Utils.parse_response self.class.patch("/accounts/#{params[:account_id]}/options", body: params.except(:account_id).to_json, headers: request_headers)
|
34
34
|
end
|
35
35
|
|
36
36
|
def account_settings_get(*args)
|
37
|
-
|
38
|
-
|
39
|
-
|
37
|
+
params = Zoom::Params.new(Utils.extract_options!(args))
|
38
|
+
params.require(:account_id).permit(:option)
|
39
|
+
Utils.parse_response self.class.get("/accounts/#{params[:account_id]}/settings", query: params.except(:account_id), headers: request_headers)
|
40
40
|
end
|
41
41
|
|
42
42
|
def account_settings_update(*args)
|
43
|
-
|
44
|
-
|
45
|
-
|
43
|
+
params = Zoom::Params.new(Utils.extract_options!(args))
|
44
|
+
params.require(:account_id).permit(:option, Zoom::Constants::Account::Settings::PERMITTED_KEYS)
|
45
|
+
params.permit_value(:option, Zoom::Constants::Account::Settings::PERMITTED_OPTIONS)
|
46
|
+
Utils.parse_response self.class.patch("/accounts/#{params[:account_id]}/settings", query: params.slice(:option), body: params.except(%i[account_id option]).to_json, headers: request_headers)
|
46
47
|
end
|
47
48
|
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
# options = Utils.extract_options!(args)
|
53
|
-
raise Zoom::NotImplemented, 'account_billing_get is not yet implemented'
|
54
|
-
end
|
55
|
-
|
56
|
-
def account_billing_update(*args)
|
57
|
-
# TODO: implement account_billing_update
|
58
|
-
# options = Utils.extract_options!(args)
|
59
|
-
raise Zoom::NotImplemented, 'account_billing_update is not yet implemented'
|
60
|
-
end
|
61
|
-
|
62
|
-
def account_plans_list(*args)
|
63
|
-
# TODO: implement account_plans_list
|
64
|
-
# options = Utils.extract_options!(args)
|
65
|
-
raise Zoom::NotImplemented, 'account_plans_list is not yet implemented'
|
66
|
-
end
|
67
|
-
|
68
|
-
def some_method(*args)
|
69
|
-
# TODO: implement some_method
|
70
|
-
# options = Utils.extract_options!(args)
|
71
|
-
raise Zoom::NotImplemented, 'some_method is not yet implemented'
|
72
|
-
end
|
73
|
-
|
74
|
-
def some_method(*args)
|
75
|
-
# TODO: implement some_method
|
76
|
-
# options = Utils.extract_options!(args)
|
77
|
-
raise Zoom::NotImplemented, 'some_method is not yet implemented'
|
49
|
+
def account_managed_domains(*args)
|
50
|
+
params = Zoom::Params.new(Utils.extract_options!(args))
|
51
|
+
params.require(:account_id)
|
52
|
+
Utils.parse_response self.class.get("/accounts/#{params[:account_id]}/managed_domains", headers: request_headers)
|
78
53
|
end
|
79
54
|
|
80
|
-
def
|
81
|
-
|
82
|
-
|
83
|
-
|
55
|
+
def account_get_locked_settings(*args)
|
56
|
+
params = Zoom::Params.new(Utils.extract_options!(args))
|
57
|
+
params.require(:account_id)
|
58
|
+
Utils.parse_response self.class.get("/accounts/#{params[:account_id]}/lock_settings", headers: request_headers)
|
84
59
|
end
|
85
60
|
|
86
|
-
def
|
87
|
-
|
88
|
-
|
89
|
-
|
61
|
+
def account_trusted_domains(*args)
|
62
|
+
params = Zoom::Params.new(Utils.extract_options!(args))
|
63
|
+
params.require(:account_id)
|
64
|
+
Utils.parse_response self.class.get("/accounts/#{params[:account_id]}/trusted_domains", headers: request_headers)
|
90
65
|
end
|
91
66
|
end
|
92
67
|
end
|
93
|
-
end
|
68
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Zoom
|
4
|
+
module Actions
|
5
|
+
module Billing
|
6
|
+
def billing_get(*args)
|
7
|
+
params = Zoom::Params.new(Utils.extract_options!(args))
|
8
|
+
params.require(:account_id)
|
9
|
+
Utils.parse_response self.class.get("/accounts/#{params[:account_id]}/billing", headers: request_headers)
|
10
|
+
end
|
11
|
+
|
12
|
+
def billing_update(*args)
|
13
|
+
params = Zoom::Params.new(Utils.extract_options!(args))
|
14
|
+
params.require(:account_id).permit(%i[first_name last_name email phone_number address apt city state zip country])
|
15
|
+
Utils.parse_response self.class.patch("/accounts/#{params[:account_id]}/billing", body: params.except(:account_id).to_json, headers: request_headers)
|
16
|
+
end
|
17
|
+
|
18
|
+
def billing_plans_list(*args)
|
19
|
+
params = Zoom::Params.new(Utils.extract_options!(args))
|
20
|
+
params.require(:account_id)
|
21
|
+
Utils.parse_response self.class.get("/accounts/#{params[:account_id]}/plans", headers: request_headers)
|
22
|
+
end
|
23
|
+
|
24
|
+
def billing_plans_usage(*args)
|
25
|
+
params = Zoom::Params.new(Utils.extract_options!(args))
|
26
|
+
params.require(:account_id)
|
27
|
+
Utils.parse_response self.class.get("/accounts/#{params[:account_id]}/plans/usage", headers: request_headers)
|
28
|
+
end
|
29
|
+
|
30
|
+
def billing_plans_subscribe(*args)
|
31
|
+
params = Zoom::Params.new(Utils.extract_options!(args))
|
32
|
+
# TODO: Move to constants and do some data validation
|
33
|
+
params.require(:account_id, contact: %i[first_name last_name email phone_number address city state zip country], plan_base: %i[type hosts]).permit(:plan_recording, contact: [:apt], plan_zoom_rooms: %i[type hosts], plan_room_connector: %i[type hosts], plan_large_meeting: [], plan_webinar: [], plan_audio: %i[type tollfree_countries premium_countries callout_countries ddi_numbers], plan_phone: { plan_base: %i[type hosts], plan_calling: [], plan_number: [] })
|
34
|
+
Utils.parse_response self.class.post("/accounts/#{params[:account_id]}/plans", body: params.except(:account_id).to_json, headers: request_headers)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|