I want to get video call log details from twilio using node.js on the server side. I need details:
- what time call started/ended,
- duration of a call,
- A time duration for which each participant connected in a call.
- what time each participant joined/left a call.
All the above details for a completed call.
For the above requirements, I found something: Video Log Analyzer API (beta) on twilio.
But I am not able to understand how can I use this. There is no SDK provided here. If I try to send a request to the URL then
Curl for this is below *
curl "https://insights.twilio.com/v1/Video/Rooms"
-u {account_sid}:{auth_token}
But I don't know how to pass details after -u, i.e. where can I send accound_sid and auth_token in my request. I am trying to use axios to send a request to this URL but where can I pass values of accound_sid,auth_token in the request.
What is -u in curl ?
Can anyone provide me some solution for this or any other idea to achieve my rquirement?
I WAS TRYING SOMETHING LIKE THIS
const URL = "https://insights.twilio.com/v1/Video/Rooms/"+room_SID+"/Participants/"+partcipant_SID;
const config = {
headers: {
//'content-type': 'application/json',
//'Authorization': token,
//WHAT TO DO
}
}
axios.get(URL,config)
.then((response) => {
console.log(response);
})
.catch((error) => {
console.log(error);
});