zoom_rb 1.1.9 → 1.1.10

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: eba66b57716707ef68c2b32a14fe9befae24025bbf9f86a19e6af4595200eb4a
4
+ data.tar.gz: c467da5f5513c6af4ab2eabdaada0ad1284ce3991fd10a69b0b0e556d07e1b29
5
5
  SHA512:
6
- metadata.gz: a4b6ebc0a0a1f7cc247392ea64a1765db4d6c311470a23d28b839c7f2a78b49413188f485f1f7653412cac153add76f230161a1b12e8026bed915f03a2463030
7
- data.tar.gz: 828410a4b13b845ca46de5d44d4d28b4600abeafaf9c94c6d6bc83bfd9c40362c8b14e582ebda2638a74222c27d806c3649a42abc0988dbd636f1ab16a4f4cc4
6
+ metadata.gz: b8097a2372ec570dc70515fb835077becd1ef1531180b790765c53b994fcad883203da966643f41072ce36cba632d4bac40ce12fc65286ad0cf90e00be033d79
7
+ data.tar.gz: 67c49dc2a4b6575064991cbaa499b36d94c9ce403db4fc0c866a1c668b247cb64708c4b81e959e1d8e6ddf95e23b37804a336aa4641275ef698e7f4181b8b007
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.10)
5
5
  httparty (>= 0.13)
6
6
  json (>= 1.8)
7
7
  jwt
@@ -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.10'
5
5
  end
@@ -0,0 +1,3 @@
1
+ {
2
+ "token": "eyJ0eXAiOiJKV1QiLCJzdiI6IjAwMDAwMSIsInptX3NrbSI6InptX28ybSIsImFsZyI6IkhTMjU2In0.eyJhdWQiOiJjb"
3
+ }
@@ -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.10
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-01-27 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