I want to be able to record the call that's being initialized through the PlivoWebSDK. How can I accomplish that without having to change my whole setup to API or XML. Both seems to be much more complicated to me.
function RecordTheCall(CallUUID)
{
console.log(callUuid);
var auth_id = "MAM2M4ZGE3NJIWMGRIM2";
var url = "https://api.plivo.com/v1/Account/"+auth_id+"/Call/"+CallUUID+"/Record/";
$.ajax({
url: url,
type: "POST",
data: { 'auth_id': auth_id, 'call_uuid': CallUUID },
dataType: "json",
success: function (res) {
alert(res);
},
error: function(err) {
alert(err);
}
});
}