zoom_rb 1.1.9 → 1.1.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a720d6f32016994f2e4c5246bfd2b460dd9ae6e8c5580682bce9a33c7f758fd
4
- data.tar.gz: 5d63cee99f19064e6a2887ab691d9c611aa460aefdd3b6db6dd1c2bed071ae78
3
+ metadata.gz: 28e09abd658f1d110aab34f63837934aa36bb682f71b322ece8b97e879206a38
4
+ data.tar.gz: 04e0a7efb5725a42d23b374e271a6d1b8bda24eebc00332ac0cdaec4eab90b92
5
5
  SHA512:
6
- metadata.gz: a4b6ebc0a0a1f7cc247392ea64a1765db4d6c311470a23d28b839c7f2a78b49413188f485f1f7653412cac153add76f230161a1b12e8026bed915f03a2463030
7
- data.tar.gz: 828410a4b13b845ca46de5d44d4d28b4600abeafaf9c94c6d6bc83bfd9c40362c8b14e582ebda2638a74222c27d806c3649a42abc0988dbd636f1ab16a4f4cc4
6
+ metadata.gz: 86f435e1a45e951ea6144cec9afeefafb8d637ada10d491239c7a3e6d1d132b50a9fc8175c5a606ba43a22aa05dd2bf6aba53959c0907f5ac76d5f850357f502
7
+ data.tar.gz: 24175b5a35abb2eee6ff13974e9e404f8ecb99a05ce0f903cd17af2d7cdaf80345ebca85ca28ff7638f387ec39365a2f3eee5506831e83f380a7fa34877208bd
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zoom_rb (1.1.9)
4
+ zoom_rb (1.1.11)
5
5
  httparty (>= 0.13)
6
6
  json (>= 1.8)
7
7
  jwt
@@ -13,7 +13,7 @@ module Zoom
13
13
  post 'meeting_create', '/users/:user_id/meetings',
14
14
  permit: %i[
15
15
  topic type start_time duration schedule_for timezone password default_password agenda tracking_fields
16
- recurrence settings template_id pre_schedule
16
+ recurrence settings template_id pre_schedule waiting_room
17
17
  ]
18
18
 
19
19
  # Get a meeting on Zoom via meeting ID, return the meeting info.
@@ -49,6 +49,9 @@ module Zoom
49
49
  language occurrence_ids auto_approve
50
50
  ]
51
51
 
52
+ # Delete a meeting registrant.
53
+ delete 'meeting_delete_registrant', '/meetings/:meeting_id/registrants/:registrant_id'
54
+
52
55
  # Register up to 30 registrants at once for a meeting that requires registration.
53
56
  post 'batch_registrants', '/meetings/:meeting_id/batch_registrants',
54
57
  permit: %i[registrants auto_approve registrants_confirmation_email]
@@ -69,6 +69,8 @@ module Zoom
69
69
 
70
70
  patch 'user_status_update', '/users/:id/status',
71
71
  permit: :status
72
+
73
+ get 'user_zak', '/users/me/zak'
72
74
  end
73
75
  end
74
76
  end
data/lib/zoom/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Zoom
4
- VERSION = '1.1.9'
4
+ VERSION = '1.1.11'
5
5
  end
@@ -0,0 +1,3 @@
1
+ {
2
+ "token": "eyJ0eXAiOiJKV1QiLCJzdiI6IjAwMDAwMSIsInptX3NrbSI6InptX28ybSIsImFsZyI6IkhTMjU2In0.eyJhdWQiOiJjb"
3
+ }
@@ -4,7 +4,7 @@ require 'spec_helper'
4
4
 
5
5
  describe Zoom::Actions::Meeting do
6
6
  let(:zc) { zoom_client }
7
- let(:args) { { topic: 'Zoom Meeting Topic', start_time: '2020-05-05T21:00:00Z', timezone: 'America/New_York', duration: 30, type: 2, user_id: 'r55v2FgSTVmDmVot18DX3A', template_id: 'template_id' } }
7
+ let(:args) { { topic: 'Zoom Meeting Topic', start_time: '2020-05-05T21:00:00Z', timezone: 'America/New_York', duration: 30, type: 2, user_id: 'r55v2FgSTVmDmVot18DX3A', template_id: 'template_id', waiting_room: false } }
8
8
  let(:response) { zc.meeting_create(args) }
9
9
 
10
10
  describe '#meeting_create action' do
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'spec_helper'
4
+
5
+ describe Zoom::Actions::Meeting do
6
+ let(:zc) { zoom_client }
7
+ let(:args) { { meeting_id: 1, registrant_id: 'abcdef' } }
8
+
9
+ describe '#meeting_delete_registrant action' do
10
+ before :each do
11
+ stub_request(
12
+ :delete,
13
+ zoom_url("/meetings/#{args[:meeting_id]}/registrants/#{args[:registrant_id]}")
14
+ ).to_return(status: 204, headers: { 'Content-Type' => 'application/json' })
15
+ end
16
+
17
+ it "requires a 'meeting_id' and 'registrant_id' argument" do
18
+ expect {
19
+ zc.meeting_delete_registrant(filter_key(args, :meeting_id))
20
+ }.to raise_error(Zoom::ParameterMissing)
21
+ expect {
22
+ zc.meeting_delete_registrant(filter_key(args, :registrant_id))
23
+ }.to raise_error(Zoom::ParameterMissing)
24
+ end
25
+
26
+ it 'returns a status code of 204' do
27
+ expect(zc.meeting_delete_registrant(args)).to eq(204)
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'spec_helper'
4
+
5
+ describe Zoom::Actions::User do
6
+ let(:zc) { zoom_client }
7
+
8
+ describe '#user_zak action' do
9
+ context 'with a valid response' do
10
+ before :each do
11
+ stub_request(
12
+ :get,
13
+ zoom_url("/users/me/zak")
14
+ ).to_return(status: 200,
15
+ body: json_response('user', 'zak'),
16
+ headers: { 'Content-Type' => 'application/json' })
17
+ end
18
+
19
+ it 'returns a users zak token' do
20
+ res = zc.user_zak
21
+ expected_response = JSON.parse(json_response('user', 'zak'))
22
+ expect(res['token']).to eq(expected_response['token'])
23
+ end
24
+ end
25
+ end
26
+ 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.9
4
+ version: 1.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Boe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-07 00:00:00.000000000 Z
11
+ date: 2024-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -311,6 +311,7 @@ files:
311
311
  - spec/fixtures/user/update_password.json
312
312
  - spec/fixtures/user/update_status.json
313
313
  - spec/fixtures/user/vanity_name.json
314
+ - spec/fixtures/user/zak.json
314
315
  - spec/fixtures/webinar/create.json
315
316
  - spec/fixtures/webinar/delete.json
316
317
  - spec/fixtures/webinar/list.json
@@ -385,6 +386,7 @@ files:
385
386
  - spec/lib/zoom/actions/ma/account/plan/update_spec.rb
386
387
  - spec/lib/zoom/actions/meeting/add_registrant_spec.rb
387
388
  - spec/lib/zoom/actions/meeting/create_spec.rb
389
+ - spec/lib/zoom/actions/meeting/delete_registrant_spec.rb
388
390
  - spec/lib/zoom/actions/meeting/delete_spec.rb
389
391
  - spec/lib/zoom/actions/meeting/get_spec.rb
390
392
  - spec/lib/zoom/actions/meeting/get_survey_spec.rb
@@ -452,6 +454,7 @@ files:
452
454
  - spec/lib/zoom/actions/user/update_spec.rb
453
455
  - spec/lib/zoom/actions/user/update_status_spec.rb
454
456
  - spec/lib/zoom/actions/user/vanity_name_spec.rb
457
+ - spec/lib/zoom/actions/user/zak_spec.rb
455
458
  - spec/lib/zoom/actions/webinar/attendees_list_spec.rb
456
459
  - spec/lib/zoom/actions/webinar/create_spec.rb
457
460
  - spec/lib/zoom/actions/webinar/delete_spec.rb
@@ -608,6 +611,7 @@ test_files:
608
611
  - spec/fixtures/user/update_password.json
609
612
  - spec/fixtures/user/update_status.json
610
613
  - spec/fixtures/user/vanity_name.json
614
+ - spec/fixtures/user/zak.json
611
615
  - spec/fixtures/webinar/create.json
612
616
  - spec/fixtures/webinar/delete.json
613
617
  - spec/fixtures/webinar/list.json
@@ -682,6 +686,7 @@ test_files:
682
686
  - spec/lib/zoom/actions/ma/account/plan/update_spec.rb
683
687
  - spec/lib/zoom/actions/meeting/add_registrant_spec.rb
684
688
  - spec/lib/zoom/actions/meeting/create_spec.rb
689
+ - spec/lib/zoom/actions/meeting/delete_registrant_spec.rb
685
690
  - spec/lib/zoom/actions/meeting/delete_spec.rb
686
691
  - spec/lib/zoom/actions/meeting/get_spec.rb
687
692
  - spec/lib/zoom/actions/meeting/get_survey_spec.rb
@@ -749,6 +754,7 @@ test_files:
749
754
  - spec/lib/zoom/actions/user/update_spec.rb
750
755
  - spec/lib/zoom/actions/user/update_status_spec.rb
751
756
  - spec/lib/zoom/actions/user/vanity_name_spec.rb
757
+ - spec/lib/zoom/actions/user/zak_spec.rb
752
758
  - spec/lib/zoom/actions/webinar/attendees_list_spec.rb
753
759
  - spec/lib/zoom/actions/webinar/create_spec.rb
754
760
  - spec/lib/zoom/actions/webinar/delete_spec.rb