zoom_rb 1.1.5 → 1.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/zoom/actions/meeting.rb +10 -1
- data/lib/zoom/actions/webinar.rb +4 -1
- data/lib/zoom/actions.rb +1 -1
- data/lib/zoom/version.rb +1 -1
- data/spec/lib/zoom/actions/meeting/registrants/update_status_spec.rb +42 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 638751c68daca6754e413aaee89dcf23cce0fd28a122ee8b6085c647c0bbdf99
|
4
|
+
data.tar.gz: 9876fc84829617ddb3533b750adc8cf118beac8d89cd32e5c3827ef038e241e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 705e71d377af9eb031894c1af759fb2b48d20f101340492dacb543404d44a60ff573ebe50d3f5d01f2c3cfc63e41fad9ee0812457ba72a60a40f5ccfa1fe6a74
|
7
|
+
data.tar.gz: 86ff753ea1351749e1d760f67d41b2c3a8f15c6ec7565fff37fdc583b529b29876c9769cd9a1dbd26029eb6f81d5031b5a5b3d9c99f684e8f39ff0b6d167b4b2
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
zoom_rb (1.1.
|
4
|
+
zoom_rb (1.1.7)
|
5
5
|
httparty (>= 0.13)
|
6
6
|
json (>= 1.8)
|
7
7
|
jwt
|
@@ -35,7 +35,7 @@ GEM
|
|
35
35
|
multi_xml (>= 0.5.2)
|
36
36
|
i18n (1.10.0)
|
37
37
|
concurrent-ruby (~> 1.0)
|
38
|
-
json (2.6.
|
38
|
+
json (2.6.3)
|
39
39
|
jwt (2.5.0)
|
40
40
|
method_source (1.0.0)
|
41
41
|
mime-types (3.4.1)
|
data/lib/zoom/actions/meeting.rb
CHANGED
@@ -35,15 +35,24 @@ module Zoom
|
|
35
35
|
put 'meeting_update_status', '/meetings/:meeting_id/status',
|
36
36
|
permit: :action
|
37
37
|
|
38
|
+
# Update registrant's status
|
39
|
+
put 'meeting_registrants_status_update', '/meetings/:meeting_id/registrants/status',
|
40
|
+
require: :action,
|
41
|
+
permit: [ :occurrence_id, registrants: [] ]
|
42
|
+
|
38
43
|
# Register for a meeting.
|
39
44
|
post 'meeting_add_registrant', '/meetings/:meeting_id/registrants',
|
40
45
|
require: %i[email first_name],
|
41
46
|
permit: %i[
|
42
47
|
last_name address city country zip state phone industry org job_title
|
43
48
|
purchasing_time_frame role_in_purchase_process no_of_employees comments custom_questions
|
44
|
-
language occurrence_ids
|
49
|
+
language occurrence_ids auto_approve
|
45
50
|
]
|
46
51
|
|
52
|
+
# Register up to 30 registrants at once for a meeting that requires registration.
|
53
|
+
post 'batch_registrants', '/meetings/:meeting_id/batch_registrants',
|
54
|
+
permit: %i[registrants auto_approve registrants_confirmation_email]
|
55
|
+
|
47
56
|
# Register for a meeting.
|
48
57
|
patch 'meeting_registrant_questions', '/meeting/:meeting_id/registrants/questions'
|
49
58
|
|
data/lib/zoom/actions/webinar.rb
CHANGED
@@ -27,7 +27,10 @@ module Zoom
|
|
27
27
|
question_and_answer: %i[
|
28
28
|
allow_anonymous_questions answer_questions attendees_can_comment
|
29
29
|
attendees_can_upvote enable
|
30
|
-
]
|
30
|
+
],
|
31
|
+
attendees_and_panelists_reminder_email_notification: %i[enable type],
|
32
|
+
follow_up_absentees_email_notification: %i[enable type],
|
33
|
+
follow_up_attendees_email_notification: %i[enable type]
|
31
34
|
}
|
32
35
|
].freeze
|
33
36
|
|
data/lib/zoom/actions.rb
CHANGED
data/lib/zoom/version.rb
CHANGED
@@ -0,0 +1,42 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
RSpec.describe Zoom::Actions::Webinar do
|
6
|
+
let(:zc) { zoom_client }
|
7
|
+
let(:args) { { meeting_id: 1, action: 'approve' } }
|
8
|
+
|
9
|
+
describe '#webinar_registrants_status_update' do
|
10
|
+
context 'with a valid response' do
|
11
|
+
before :each do
|
12
|
+
stub_request(
|
13
|
+
:put,
|
14
|
+
zoom_url("/meetingss/#{args[:meeting_id]}/registrants/status")
|
15
|
+
).to_return(status: 204)
|
16
|
+
end
|
17
|
+
|
18
|
+
it "requires a 'meeting_id' argument" do
|
19
|
+
expect { zc.meeting_registrants_status_update(filter_key(args, :meeting_id)) }.to raise_error(Zoom::ParameterMissing, [:meeting_id].to_s)
|
20
|
+
end
|
21
|
+
|
22
|
+
it "requires a 'action' argument" do
|
23
|
+
expect { zc.meeting_registrants_status_update(filter_key(args, :action)) }.to raise_error(Zoom::ParameterMissing, [:action].to_s)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
context 'with a 4xx response' do
|
28
|
+
before :each do
|
29
|
+
stub_request(
|
30
|
+
:put,
|
31
|
+
zoom_url("/meetings/#{args[:meeting_id]}/registrants/status")
|
32
|
+
).to_return(status: 404,
|
33
|
+
body: json_response('error', 'validation'),
|
34
|
+
headers: { 'Content-Type' => 'application/json' })
|
35
|
+
end
|
36
|
+
|
37
|
+
it 'raises Zoom::Error exception' do
|
38
|
+
expect { zc.meeting_registrants_status_update(args) }.to raise_error(Zoom::Error)
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zoom_rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kyle Boe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -373,6 +373,7 @@ files:
|
|
373
373
|
- spec/lib/zoom/actions/meeting/invitation_spec.rb
|
374
374
|
- spec/lib/zoom/actions/meeting/list_spec.rb
|
375
375
|
- spec/lib/zoom/actions/meeting/livestream_spec.rb
|
376
|
+
- spec/lib/zoom/actions/meeting/registrants/update_status_spec.rb
|
376
377
|
- spec/lib/zoom/actions/meeting/update_spec.rb
|
377
378
|
- spec/lib/zoom/actions/recording/file_delete_spec.rb
|
378
379
|
- spec/lib/zoom/actions/recording/get_spec.rb
|
@@ -663,6 +664,7 @@ test_files:
|
|
663
664
|
- spec/lib/zoom/actions/meeting/invitation_spec.rb
|
664
665
|
- spec/lib/zoom/actions/meeting/list_spec.rb
|
665
666
|
- spec/lib/zoom/actions/meeting/livestream_spec.rb
|
667
|
+
- spec/lib/zoom/actions/meeting/registrants/update_status_spec.rb
|
666
668
|
- spec/lib/zoom/actions/meeting/update_spec.rb
|
667
669
|
- spec/lib/zoom/actions/recording/file_delete_spec.rb
|
668
670
|
- spec/lib/zoom/actions/recording/get_spec.rb
|