dyte 0.2.0 → 0.3.0

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: 108a06c01faef2d204cdfdaa2be0ce8045609c52fc3ae89fc370407835694850
4
- data.tar.gz: ee9e9cdb8c857d3ca1b9edefe0ac2ca0877cf5bf64d72ec90db9dfade99c2c03
3
+ metadata.gz: bb0e6b7dd2bbfbe01192bf25c4172c482cab0214fc93071f83c3a9b2ddcbe0ba
4
+ data.tar.gz: 79bae7af5887bb11aebe10e6c6a227cf977546014498c3a25fe7cff93e2b411b
5
5
  SHA512:
6
- metadata.gz: b162a401d2e17eb4d58db5676f2020dff27bfcdd6d5466ea2899ef916499976f0a8ce0be5134f0c8dc271e75a9611bdc6fa9738a80a689bb44c9984df5183107
7
- data.tar.gz: 11ec136c4387c79689ae47bde64d724f2bb5afadaf5f6a3b22d7cc4f4e63fe83538d832d021a346e8aaffc952f0a297a397b4f3383edb79e339ba3da1415fd79
6
+ metadata.gz: 00bcc5e262e6d8d52203e64de30e85f40e4166d29cdf409342d645fe06472332b829324ae51b5f33b15cb083cc7dcd31dccd6cfbfe644ca6d1952aeccdc1a50e
7
+ data.tar.gz: aabdec40c608104026629c8ed432f351d680afdef9186483230bcdb1ba640c5b92cf4eeece0fe7d64c20fe9a59e1b72aef82b2d542c4197568ff10008b7d3710
data/README.md CHANGED
@@ -41,6 +41,13 @@ client.presets.create({})
41
41
  client.presets.update(preset_id: "id", {})
42
42
  ```
43
43
  ### Sessions
44
+ ```ruby
45
+ client.sessions.list
46
+ client.sessions.fetch(session_id: "id")
47
+ client.sessions.fetch_participants(session_id: "id")
48
+ client.sessions.participant_details(session_id: "id", participant_id: "id")
49
+ client.sessions.chat_messages(session_id: "id")
50
+ ```
44
51
  ### Participants
45
52
 
46
53
  ## Development
@@ -15,12 +15,12 @@ module Dyte
15
15
  Session.new get_request("sessions/#{session_id}/participants").body.dig("data")
16
16
  end
17
17
 
18
- def update(meeting_id:, **attributes)
19
- Session.new put_request("sessions/#{meeting_id}", body: attributes).body.dig("data", "session")
18
+ def participant_details(session_id:, participant_id:)
19
+ Session.new get_request("sessions/#{session_id}/participants/#{participant_id}").body.dig("data")
20
20
  end
21
21
 
22
- def update_old(meeting_id:, body: {})
23
- Session.new put_request("sessions/#{meeting_id}", body: body).body.dig("data", "session")
22
+ def chat_messages(session_id:)
23
+ Session.new get_request("sessions/#{session_id}/chat").body.dig("data")
24
24
  end
25
25
  end
26
26
  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.2.0"
4
+ VERSION = "0.3.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.2.0
4
+ version: 0.3.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-05 00:00:00.000000000 Z
11
+ date: 2023-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday