GET : API to Get all the recordings
GET
https://<appname>.metered.live/api/v1/recordings
<appname>
- replace it the name of your app.
Description
This endpoint allows you to GET all the recordings
Parameters
Parameters | Description | Required | Options | |
---|---|---|---|---|
Query | ||||
secretKey | string | your secret key | yes | - |
Request Samples
- cURL
- NodeJs
- Ruby
- Python
- Go
cURL
curl --request GET \
--url 'https://appname.metered.live/api/v1/recordings?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/recordings',
{
params: {
secretKey: 'your_secret_key'
}
})
console.log(response.data)
} catch(error){
console.log(error)
}
}
Ruby
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://appname.metered.live/api/v1/recordings")
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://appname.metered.live/api/v1/recordings"
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/recordings?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
{
"currEndId": "61d4c3a12a864c81ed7feab9",
"total": 139,
"limit": 50,
"data": [{
"_id": "619051518ce4fa3ba72d8646",
"app": "615c56b84eb9fab97ea18c75",
"room": "619048e51e9a8c3a99ab0231",
"participantSession": "61905130b3a78a3b1a4e5f97",
"meetingSession": "619050fdb3a78a3b1a4e5f95",
"participantUsername": "asdfas",
"fileName": "daf1a815-7c80-4423-b7b0-3c757a23302a.webm",
"sizeInBytes": 4526446,
"type": "video",
"startTime": 1636847920,
"endTime": 1636847953
}, {
"_id": "61905153b3a78a3b1a4e5f98",
"app": "615c56b84eb9fab97ea18c75",
"room": "619048e51e9a8c3a99ab0231",
"participantSession": "619051198ce4fa3ba72d8645",
"meetingSession": "619050fdb3a78a3b1a4e5f95",
"participantUsername": "asdfas",
"fileName": "2fbc0af1-4fae-48d8-8c74-3abbbd850cd0.webm",
"sizeInBytes": 11268752,
"type": "video",
"startTime": 1636847898,
"endTime": 1636847955
}]
}
400
{
"success": false,
"message": "Invalid request"
}