Dyte
A gem that wraps v2 of the Dyte API to make it easy to use in Ruby applications.
Please note that some resources are not yet implemented. This is due to the fact that v2 of the Dyte API is incomplete. Once the Dyte team has finalized the response structure the remaining resources will be implemented. In order to obtain access to v2 of the Dyte API please contact the Dyte team.
Issues and pull requests are welcome! ❤️
Installation
Add this line to your application's Gemfile:
gem 'dyte'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install dyte
Usage
TODO: Write usage instructions here
Resources
Meetings
client.meetings.list
client.meetings.fetch(meeting_id: "id")
client.meetings.create({})
client.meetings.update(meeting_id: "id", {})
client.meetings.regenerate_token(meeting_id: "id", participant_id: "id")
client.meetings.fetch_participants(meeting_id: "id")
client.meetings.fetch_participant_details(meeting_id: "id", participant_id: "id")
client.meetings.edit_participant_details(meeting_id: "id", participant_id: "id")
client.meetings.add_participant(meeting_id: "id", participant_id: "id")
client.meetings.replace( meeting_id: "id", {})
Presets
client.presets.list
client.presets.fetch(preset_id: "id")
client.presets.create({})
client.presets.update(preset_id: "id", {})
Sessions
client.sessions.list
client.sessions.fetch(session_id: "id")
client.sessions.fetch_participants(session_id: "id")
client.sessions.participant_details(session_id: "id", participant_id: "id")
client.sessions.chat_messages(session_id: "id")
Organizations
client.organizations.create(
{
"name": "Cool Org",
"contact": "778-330-2389",
"website": "https://www.dyte.io",
"feature_flags": [
"string"
],
"preferred_region": "ap-south-1"
}
)
client.organizations.update(organization_id: "id",
{
"name": "A much better name",
"contact": "string",
"website": "https://www.dyte.io",
"feature_flags": [
"string"
],
"preferred_region": "ap-south-1"
}
)
Webhooks
client.webhooks.fetch(webhook_id: "id")
client.webhooks.list
Participants
Development
Setup
After checking out the repo run bin/setup
to install dependencies. Then, run rake test
to run the tests.
Running Locally
It can be convenient to run the gem locally while developing, to test changes. To do so, follow these steps:
- Run
bin/console
from the root directory - Instantiate the client (enter your Dyte credentials)
client = Client.new(organization_id: '1234', api_key: '1234')
- Run a test command, for example:
client.participants.list(session_id: 1)
Contributing
Contribution guidelines TBD. For now just open a PR and we'll figure it out.
License
The gem is available as open source under the terms of the MIT License.