dyte 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 64703f6903a37f31962ed9d4f644ff54f644bf5069657711255c6d83041a2b94
4
- data.tar.gz: 8a249ad8367272ea0a7f680262a1278ce62ff06cfefc70afadfbe570f5c03787
3
+ metadata.gz: c52eb75aa2c387f5d6ba0a020774e39a0bc0fc4145e6d0479f517c4274c9ce03
4
+ data.tar.gz: 17a4c2efd7d7f5d0f66d82f3b23dda5de6fabba3a57688647f17503e3338010f
5
5
  SHA512:
6
- metadata.gz: d524ae6d023e3e755a8d35c4b1de8b94bd68b3cfef9e21249a7dca36c4c44c355959bac96a282f4139610a09f1fbd64b928e9e1090b4c37b8de73c5928ae14f0
7
- data.tar.gz: 2c125c049aa6ec9055e080004aa2945e6e74e5e5d50f2da1445f6d4cee2095a58cf1747efcad6b1075d8536d594680fe30b4a818f057a8342139e786277eb73e
6
+ metadata.gz: 5424e1e0f338d08616eb5611f399d5260b0e20049df51c9b6c45c46d15c9bfa4cdb6be14a2fafab310e3ca3f601fc98b515b1c16329e0a06425e54886521cae0
7
+ data.tar.gz: bb4b863e2fdf39fce16854ad861e4849db76294f5dd03fd90e2fefe1ec4d2b864f5a5181e167a78f237c8c56b5a7b11be0fa2d4e2d4a9d160d214a0f7c85fa6a
data/README.md CHANGED
@@ -46,6 +46,12 @@ client.meetings.regenerate_token(meeting_id: "id", participant_id: "id")
46
46
 
47
47
  # Returns all participants for the given meeting ID.
48
48
  client.meetings.fetch_participants(meeting_id: "id")
49
+
50
+ # Returns a participant for the given meeting and participant ID.
51
+ client.meetings.fetch_participant_details(meeting_id: "id", participant_id: "id")
52
+
53
+ # Edits a participant for the given meeting and participant ID.
54
+ client.meetings.edit_participant_details(meeting_id: "id", participant_id: "id")
49
55
  ```
50
56
  ### Presets
51
57
 
@@ -33,5 +33,15 @@ module Dyte
33
33
  def delete_participant(meeting_id:, participant_id:)
34
34
  delete_request("meetings/#{meeting_id}/participants/#{participant_id}")
35
35
  end
36
+
37
+ def fetch_participant_details(meeting_id:, participant_id:)
38
+ response = get_request("meetings/#{meeting_id}/participants/#{participant_id}")
39
+ Participant.new response.body.dig("data")
40
+ end
41
+
42
+ def edit_participant_details(meeting_id:, participant_id:, attributes:)
43
+ response = patch_request("meetings/#{meeting_id}/participants/#{participant_id}", body: attributes)
44
+ Participant.new response.body.dig("data")
45
+ end
36
46
  end
37
47
  end
data/lib/dyte/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dyte
4
- VERSION = "0.5.0"
4
+ VERSION = "0.6.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dyte
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Warwick
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-08-19 00:00:00.000000000 Z
11
+ date: 2023-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday