Get Live Meetings
This method retrieves the list of live meetings from a given API_KEY
.
Live meetings are meetings where we have more than and equal to 1 participant.
Example
import { API } from '@huddle01/server-sdk/api';
const liveMeetings = async () => {
const api = new API({
apiKey: process.env.API_KEY!,
});
const liveMeetings = await api.getLiveMeetings();
return liveMeetings.data;
};
Returns
getLiveMeetings()
function will return an array of rooms with the following fields:
Name | Type | Description |
---|---|---|
title | string | The title of the meeting |
hostWalletAddress | string[] | Array of wallet addresses who are assigned as hosts |
roomId | string | roomId of the room |
{
"data": {
"liveMeetings": [
{
"title": "first meeting",
"hostWalletAddress": [],
"roomId": "wpd-hjnj-cyf"
},
{
"title": "second meeting",
"hostWalletAddress": [],
"roomId": "gvh-pmpn-nbe"
}
]
}
}