zoom_rb 0.9.1 → 1.0.1
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 +58 -0
- data/Gemfile.lock +85 -51
- data/Makefile +1 -1
- data/README.md +31 -3
- 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 -139
- data/lib/zoom/actions/webinar.rb +43 -84
- data/lib/zoom/actions.rb +59 -0
- data/lib/zoom/client.rb +27 -16
- 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 +22 -38
- data/lib/zoom/version.rb +2 -2
- 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/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/settings_get.json +74 -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/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/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_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_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/create_spec.rb +49 -44
- 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/webinar/registrants/get_spec.rb +49 -0
- data/spec/lib/zoom/actions_spec.rb +105 -0
- 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 +13 -18
- data/spec/spec_helper.rb +23 -2
- data/zoom_rb.gemspec +1 -1
- metadata +339 -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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86cae4930b3b9fa7fc6405797518820e066501d3254c9e569423ad6cb676f2ae
|
4
|
+
data.tar.gz: 8cebc1bb556b9127ecfc25e91bc0017bd516a4ef80d5a621ae52bfa2ddc2e31d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4967db82bd2f5db456a697abae4d0ad772d30047cbecab7c691b2176abdec53f25fdb13350057f838711c7866440540fd63620299bd7a21433176b18621278f1
|
7
|
+
data.tar.gz: 77bc79ea0f536403abab58be9ed0e25d76e59f2f3d21d9714b22170722302ed0f4ad0531fb65f6853df1ef4323d94dbb527f6bf7591a0e8d14be68fc1fe8bfa0
|
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/CHANGELOG.md
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
# 1.0.1
|
2
|
+
|
3
|
+
### Fixes:
|
4
|
+
* Fix OAuth requests in Zoom::Actions::Token.
|
5
|
+
|
6
|
+
# 1.0.0
|
7
|
+
|
8
|
+
The 1.0 release and a major refactor of all endpoint definitions.
|
9
|
+
|
10
|
+
### Breaking Change
|
11
|
+
* The `user_create` endpoint now requires its arguments to match the actual Zoom API.
|
12
|
+
This is done to simplify the code and encourage consistency.
|
13
|
+
This means that instead of passing:
|
14
|
+
```
|
15
|
+
{
|
16
|
+
action: 'create',
|
17
|
+
email: 'foo@bar.com',
|
18
|
+
type: 1,
|
19
|
+
first_name: 'Zoomie',
|
20
|
+
last_name: 'Userton',
|
21
|
+
password: 'testerino'
|
22
|
+
}
|
23
|
+
```
|
24
|
+
You will instead have to pass:
|
25
|
+
```
|
26
|
+
{
|
27
|
+
action: 'create',
|
28
|
+
user_info: {
|
29
|
+
email: 'foo@bar.com',
|
30
|
+
type: 1,
|
31
|
+
first_name: 'Zoomie',
|
32
|
+
last_name: 'Userton',
|
33
|
+
password: 'testerino'
|
34
|
+
}
|
35
|
+
}
|
36
|
+
```
|
37
|
+
Zoom API reference for user creation: https://marketplace.zoom.us/docs/api-reference/zoom-api/users/usercreate
|
38
|
+
|
39
|
+
### New features
|
40
|
+
* Greatly simplified new syntax when adding endpoints. This reduces repetition and makes it easier.
|
41
|
+
* On `user_settings_get`, permit `option` and `custom_query_fields`.
|
42
|
+
* Add `group_create` and `group_update`.
|
43
|
+
|
44
|
+
# 0.11.0
|
45
|
+
|
46
|
+
This is the first CHANGELOG entry.
|
47
|
+
|
48
|
+
### New features:
|
49
|
+
* A lot of new endpoints
|
50
|
+
|
51
|
+
### Fixes:
|
52
|
+
* Update README to say `require 'zoom'`
|
53
|
+
* Fix a typo in the README
|
54
|
+
|
55
|
+
### Misc:
|
56
|
+
* Update gems
|
57
|
+
* Update bundler to 2.2
|
58
|
+
* 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 (1.0.1)
|
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.20.0)
|
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.3.0)
|
41
|
+
method_source (1.0.0)
|
42
|
+
mime-types (3.4.1)
|
43
|
+
mime-types-data (~> 3.2015)
|
44
|
+
mime-types-data (3.2022.0105)
|
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.32
|
data/Makefile
CHANGED
data/README.md
CHANGED
@@ -18,20 +18,48 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
|
22
|
-
require 'zoom'
|
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.
|
23
22
|
|
23
|
+
```ruby
|
24
24
|
Zoom.configure do |c|
|
25
25
|
c.api_key = 'xxx'
|
26
26
|
c.api_secret = 'xxx'
|
27
27
|
end
|
28
28
|
|
29
29
|
zoom_client = Zoom.new
|
30
|
+
```
|
31
|
+
|
32
|
+
To create an OAuth flow you need to make a call to auth, then create the client directly from an access token.
|
33
|
+
|
34
|
+
First you need to get an auth_code externally from:
|
35
|
+
```
|
36
|
+
https://zoom.us/oauth/authorize?response_type=code&client_id=7lstjKqdwjett_kwjwDSEQ&redirect_uri=https://yourapp.com
|
37
|
+
```
|
38
|
+
|
39
|
+
Which will result in a redirect to your app with code in the url params
|
30
40
|
|
41
|
+
then use this code to get an access token and a refresh token.
|
42
|
+
|
43
|
+
```ruby
|
44
|
+
auth = Zoom::Client::OAuth.new(auth_code: auth_code, redirect_uri: redirect_uri, timeout: 15).auth
|
45
|
+
|
46
|
+
zoom_client = Zoom::Client::OAuth.new(access_token: auth['access_token'], timeout: 15)
|
47
|
+
```
|
48
|
+
|
49
|
+
You can also make a call to refresh with auth using an auth_token and a refresh_token
|
50
|
+
```ruby
|
51
|
+
client = Zoom::Client::OAuth.new(auth_token: auth_token, refresh_token: refresh_token).auth
|
52
|
+
|
53
|
+
zoom_client = Zoom::Client::OAuth.new(access_token: 'xxx', timeout: 15)
|
54
|
+
```
|
55
|
+
|
56
|
+
With the zoom client, access the API
|
57
|
+
|
58
|
+
```ruby
|
31
59
|
user_list = zoom_client.user_list
|
32
60
|
user_list['users'].each do |user|
|
33
61
|
user_id = user['id']
|
34
|
-
puts zoom_client.meeting_list(
|
62
|
+
puts zoom_client.meeting_list(user_id: user_id)
|
35
63
|
end
|
36
64
|
|
37
65
|
begin
|
data/lib/zoom/actions/account.rb
CHANGED
@@ -3,91 +3,33 @@
|
|
3
3
|
module Zoom
|
4
4
|
module Actions
|
5
5
|
module Account
|
6
|
-
|
7
|
-
# TODO: implement accounts_list
|
8
|
-
# options = Utils.extract_options!(args)
|
9
|
-
raise Zoom::NotImplemented, 'accounts_list is not yet implemented'
|
10
|
-
end
|
6
|
+
extend Zoom::Actions
|
11
7
|
|
12
|
-
|
13
|
-
|
14
|
-
# options = Utils.extract_options!(args)
|
15
|
-
raise Zoom::NotImplemented, 'accounts_create is not yet implemented'
|
16
|
-
end
|
8
|
+
get 'account_list', '/accounts',
|
9
|
+
permit: %i[page_size page_number]
|
17
10
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
raise Zoom::NotImplemented, 'account_get is not yet implemented'
|
22
|
-
end
|
11
|
+
post 'account_create', '/accounts',
|
12
|
+
require: %i[first_name last_name email password],
|
13
|
+
permit: { options: %i[share_rc room_connectors share_mc meeting_connectors pay_mode] }
|
23
14
|
|
24
|
-
|
25
|
-
# TODO: implement account_delete
|
26
|
-
# options = Utils.extract_options!(args)
|
27
|
-
raise Zoom::NotImplemented, 'account_delete is not yet implemented'
|
28
|
-
end
|
15
|
+
get 'account_get', '/accounts/:account_id'
|
29
16
|
|
30
|
-
|
31
|
-
# TODO: implement account_options_update
|
32
|
-
# options = Utils.extract_options!(args)
|
33
|
-
raise Zoom::NotImplemented, 'account_options_update is not yet implemented'
|
34
|
-
end
|
17
|
+
delete 'account_delete', '/accounts/:account_id'
|
35
18
|
|
36
|
-
|
37
|
-
|
38
|
-
# options = Utils.extract_options!(args)
|
39
|
-
raise Zoom::NotImplemented, 'account_settings_get is not yet implemented'
|
40
|
-
end
|
19
|
+
patch 'account_options_update', '/accounts/:account_id/options',
|
20
|
+
permit: %i[share_rc room_connectors share_mc meeting_connectors pay_mode]
|
41
21
|
|
42
|
-
|
43
|
-
|
44
|
-
# options = Utils.extract_options!(args)
|
45
|
-
raise Zoom::NotImplemented, 'account_settings_update is not yet implemented'
|
46
|
-
end
|
22
|
+
get 'account_settings_get', '/accounts/:account_id/settings',
|
23
|
+
permit: :option
|
47
24
|
|
48
|
-
|
25
|
+
patch 'account_settings_update', '/accounts/:account_id/settings',
|
26
|
+
permit: [:option, Zoom::Constants::Account::Settings::PERMITTED_KEYS]
|
49
27
|
|
50
|
-
|
51
|
-
# TODO: implement account_billing_get
|
52
|
-
# options = Utils.extract_options!(args)
|
53
|
-
raise Zoom::NotImplemented, 'account_billing_get is not yet implemented'
|
54
|
-
end
|
28
|
+
get 'account_managed_domains', '/accounts/:account_id/managed_domains'
|
55
29
|
|
56
|
-
|
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
|
30
|
+
get 'account_get_locked_settings', '/accounts/:account_id/lock_settings'
|
61
31
|
|
62
|
-
|
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'
|
78
|
-
end
|
79
|
-
|
80
|
-
def some_method(*args)
|
81
|
-
# TODO: implement some_method
|
82
|
-
# options = Utils.extract_options!(args)
|
83
|
-
raise Zoom::NotImplemented, 'some_method is not yet implemented'
|
84
|
-
end
|
85
|
-
|
86
|
-
def some_method(*args)
|
87
|
-
# TODO: implement some_method
|
88
|
-
# options = Utils.extract_options!(args)
|
89
|
-
raise Zoom::NotImplemented, 'some_method is not yet implemented'
|
90
|
-
end
|
32
|
+
get 'account_trusted_domains', '/accounts/:account_id/trusted_domains'
|
91
33
|
end
|
92
34
|
end
|
93
|
-
end
|
35
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Zoom
|
4
|
+
module Actions
|
5
|
+
module Billing
|
6
|
+
extend Zoom::Actions
|
7
|
+
|
8
|
+
get 'billing_get', '/accounts/:account_id/billing'
|
9
|
+
|
10
|
+
patch 'billing_update', '/accounts/:account_id/billing',
|
11
|
+
permit: %i[first_name last_name email phone_number address apt city state zip country]
|
12
|
+
|
13
|
+
get 'billing_plans_list', '/accounts/:account_id/plans'
|
14
|
+
|
15
|
+
get 'billing_plans_usage', '/accounts/:account_id/plans/usage'
|
16
|
+
|
17
|
+
post 'billing_plans_subscribe', '/accounts/:account_id/plans',
|
18
|
+
require: {
|
19
|
+
contact: %i[first_name last_name email phone_number address city state zip country],
|
20
|
+
plan_base: %i[type hosts]
|
21
|
+
},
|
22
|
+
permit: [
|
23
|
+
:plan_recording,
|
24
|
+
{
|
25
|
+
contact: %i[apt],
|
26
|
+
plan_zoom_rooms: %i[type hosts],
|
27
|
+
plan_room_connector: %i[type hosts],
|
28
|
+
plan_large_meeting: %i[type hosts],
|
29
|
+
plan_zoom_events: %i[type hosts],
|
30
|
+
plan_webinar: %i[type hosts],
|
31
|
+
plan_audio: %i[type tollfree_countries premium_countries callout_countries ddi_numbers],
|
32
|
+
plan_phone: {
|
33
|
+
plan_base: %i[type callout_countries],
|
34
|
+
plan_calling: %i[type hosts],
|
35
|
+
plan_number: %i[type hosts]
|
36
|
+
}
|
37
|
+
}
|
38
|
+
]
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Zoom
|
4
|
+
module Actions
|
5
|
+
module Dashboard
|
6
|
+
extend Zoom::Actions
|
7
|
+
|
8
|
+
get 'dashboard_crc', '/metrics/crc',
|
9
|
+
require: %i[from to]
|
10
|
+
|
11
|
+
get 'dashboard_meetings', '/metrics/meetings',
|
12
|
+
require: %i[from to],
|
13
|
+
permit: %i[next_page_token page_size type]
|
14
|
+
|
15
|
+
get 'dashboard_meeting_details', '/metrics/meetings/:meeting_id',
|
16
|
+
permit: :type
|
17
|
+
|
18
|
+
get 'dashboard_meeting_participants', '/metrics/meetings/:meeting_id/participants',
|
19
|
+
permit: %i[next_page_token page_size type]
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Zoom
|
4
|
+
module Actions
|
5
|
+
module Groups
|
6
|
+
extend Zoom::Actions
|
7
|
+
|
8
|
+
get 'groups_list', '/groups'
|
9
|
+
|
10
|
+
get 'groups_get', '/groups/:group_id'
|
11
|
+
|
12
|
+
post 'group_create', '/groups',
|
13
|
+
permit: :name
|
14
|
+
|
15
|
+
patch 'group_update', '/groups/:group_id',
|
16
|
+
permit: :name
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/lib/zoom/actions/im/chat.rb
CHANGED
@@ -4,23 +4,22 @@ module Zoom
|
|
4
4
|
module Actions
|
5
5
|
module IM
|
6
6
|
module Chat
|
7
|
+
extend Zoom::Actions
|
8
|
+
|
9
|
+
get 'get_chat_channels', '/chat/channels/:channel_id'
|
10
|
+
|
11
|
+
get 'get_chat_user_channels', '/chat/users/:user_id/channels',
|
12
|
+
permit: %i[next_page_token page_size]
|
13
|
+
|
7
14
|
# Get chat messages for a specified period.
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
# TODO handle date format for `from` and `to` params
|
12
|
-
# TODO implement `next_page_token`, will be returned whenever the set of available chat history list exceeds 100. The expiration period is 30 minutes.
|
13
|
-
Utils.parse_response self.class.post('/chat/get', query: options)
|
14
|
-
end
|
15
|
+
# TODO: implement `next_page_token`, will be returned whenever the set of available chat history list exceeds 100. The expiration period is 30 minutes.
|
16
|
+
get 'chat_get', '/chat/get',
|
17
|
+
require: [ :access_token, :session_id, :from, :to ]
|
15
18
|
|
16
19
|
# Get chat history list for a specified time period.
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
# TODO handle date format for `from` and `to` params
|
21
|
-
# TODO implement `next_page_token`, will be returned whenever the set of available chat history list exceeds 100. The expiration period is 30 minutes.
|
22
|
-
Utils.parse_response self.class.post('/chat/list', query: options)
|
23
|
-
end
|
20
|
+
# TODO: implement `next_page_token`, will be returned whenever the set of available chat history list exceeds 100. The expiration period is 30 minutes.
|
21
|
+
get 'chat_list', '/chat/list',
|
22
|
+
require: [ :access_token, :from, :to ]
|
24
23
|
end
|
25
24
|
end
|
26
25
|
end
|