$.ajax({
url:url1 ,//https://api.zoom.us/v2/users/example@gmail.com/meetings"
type: “POST”,
data:JSON.stringify(datainfo),
username: "example@gmail.com",
dataType: “json”,
beforeSend: function (xhr) { xhr.setRequestHeader(‘Authorization’, “Bearer token”);
xhr.setRequestHeader(“Content-Type”,“application/json”)
},
success: function (reponse) {
//save data into a variable
console.log(reponse)
}
});
});
Here is my post call