GET : API to Get all Meeting Sessions
GET
https://<appname>.metered.live/api/v1/room/{roomName}/meetingsessions
<appname>
- replace it the name of your app.
<roomName>
- The name of the room that you want to Get all the meeting sessions from
Description
This endpoint allows you to GET all meeting sessions
Parameters
Parameters | Description | Required | Options | |
---|---|---|---|---|
Query | ||||
secretKey | string | your secret key | yes | - |
roomName | string | name of the room you want to fetch | yes | - |
Request Samples
- cURL
- NodeJs
- Ruby
- Python
- Go
cURL
curl --request GET \
--url 'https://appname.metered.live/api/v1/room/roomName/meetingsessions?secretKey={replace_this_with_your_secretKey}' \
--header 'Accept: application/json'
NodeJs (Axios)
//We are using axios to send requests in our example
const axios = require('axios');
async function (){
try{
const response = await axios.get('https://appname.metered.live/api/v1/room/roomName/meetingsessions',
{
params: {
secretKey: 'your_secret_key'
}
})
console.log(response)
} catch(error){
console.log(error)
}
}
Ruby
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://yourapp.metered.live/api/v1/room/roomName/meetingsessions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Accept"] = 'application/json'
response = http.request(request)
puts response.read_body
Python
import requests
url = "https://yourapp.metered.live/api/v1/room/roomName/meetingsessions"
headers = {"Accept": "application/json"}
response = requests.request("GET", url, headers=headers)
print(response.text)
Go
package main
import (
"fmt"
"io/ioutil"
"log"
"net/http"
)
func main() {
client := &http.Client{}
req, err := http.NewRequest("GET", "https://appname.metered.live/api/v1/room/roomName/meetingsessions?secretKey={replace_this_with_your_secretKey}", nil)
if err != nil {
log.Fatal(err)
}
req.Header.Set("Accept", "application/json")
resp, err := client.Do(req)
if err != nil {
log.Fatal(err)
}
defer resp.Body.Close()
bodyText, err := ioutil.ReadAll(resp.Body)
if err != nil {
log.Fatal(err)
}
fmt.Printf("%s\n", bodyText)
}
Responses
200
value: {
"pages": 4,
"limit": 10,
"skip": 0,
"data": [{
"_id": "61032daed4fc2c6cd0ccff63",
"app": "6071e1de0a0218674134a24e",
"room": "60eef8020e3b10094cf4c9de",
"startTime": 1627598254,
"state": "ended",
"endTime": 1627598896,
"participantSessions": [{
"_id": "610330567f51a46d7c72a010",
"authenticatedUsingToken": true,
"isAdmin": false,
"lang": "en",
"joinVideoOn": true,
"joinAudioOn": true,
"disableVideo": false,
"disableAudio": false,
"disableScreenSharing": false,
"app": "6071e1de0a0218674134a24e",
"joinTime": 1627598934,
"state": "exited",
"browser": "Chrome",
"browserVersion": "92.0.4515.107",
"os": "Windows",
"meetingSession": "61032daed4fc2c6cd0ccff63",
"room": "60eef8020e3b10094cf4c9de",
"name": "tom",
"externalUserId": "100",
"email": "test@example.com",
"leftTime": 1627599054
}, {
"_id": "6103301d7f51a46d7c72a00f",
"authenticatedUsingToken": true,
"isAdmin": false,
"lang": "en",
"joinVideoOn": true,
"joinAudioOn": true,
"disableVideo": false,
"disableAudio": false,
"disableScreenSharing": false,
"app": "6071e1de0a0218674134a24e",
"joinTime": 1627598877,
"state": "exited",
"browser": "Chrome",
"browserVersion": "92.0.4515.107",
"os": "Windows",
"meetingSession": "61032daed4fc2c6cd0ccff63",
"room": "60eef8020e3b10094cf4c9de",
"name": "tom",
"externalUserId": "100",
"email": "test@example.com",
"leftTime": 1627599057
}]
}, {
"_id": "61032d430396b56c68895374",
"app": "6071e1de0a0218674134a24e",
"room": "60eef8020e3b10094cf4c9de",
"startTime": 1627598147,
"state": "ended",
"endTime": 1627598147,
"participantSessions": []
}, {
"_id": "61032c3281a1866ba94b31f7",
"app": "6071e1de0a0218674134a24e",
"room": "60eef8020e3b10094cf4c9de",
"startTime": 1627597874,
"state": "ended",
"endTime": 1627597934,
"participantSessions": [{
"_id": "61032c3281a1866ba94b31f8",
"authenticatedUsingToken": false,
"isAdmin": false,
"lang": "en",
"joinVideoOn": true,
"joinAudioOn": true,
"disableVideo": false,
"disableAudio": false,
"disableScreenSharing": false,
"app": "6071e1de0a0218674134a24e",
"joinTime": 1627597874,
"state": "exited",
"browser": "Chrome",
"browserVersion": "92.0.4515.107",
"os": "Windows",
"meetingSession": "61032c3281a1866ba94b31f7",
"room": "60eef8020e3b10094cf4c9de",
"leftTime": 1627597912
}]
},
{
"_id": "6102ce963d73a30be6372dd1",
"authenticatedUsingToken": false,
"isAdmin": false,
"lang": "en",
"joinVideoOn": true,
"joinAudioOn": true,
"disableVideo": false,
"disableAudio": false,
"disableScreenSharing": false,
"app": "6071e1de0a0218674134a24e",
"joinTime": 1627573910,
"state": "exited",
"browser": "Chrome",
"browserVersion": "92.0.4515.107",
"os": "Windows",
"meetingSession": "6102ce963d73a30be6372dd0",
"room": "60eef8020e3b10094cf4c9de",
"name": "mr-1627573909994",
"leftTime": 1627573939
}
]
}, {
"_id": "6102cb06519f0409cc340528",
"authenticatedUsingToken": false,
"isAdmin": false,
"lang": "en",
"joinVideoOn": true,
"joinAudioOn": true,
"disableVideo": false,
"disableAudio": false,
"disableScreenSharing": false,
"app": "6071e1de0a0218674134a24e",
"joinTime": 1627572998,
"state": "exited",
"browser": "Chrome",
"browserVersion": "92.0.4515.107",
"os": "Windows",
"meetingSession": "6102cb06519f0409cc340527",
"room": "60eef8020e3b10094cf4c9de",
"name": "mr-1627572998120",
"leftTime": 1627573209
}]
}
400
{
"message": "Invalid request"
}