in JavaScriptEx.js [10:31]
$(function() {
var params = {
// Request parameters
};
$.ajax({
url: "https://api.msrc.microsoft.com/report/v2.0/abuse",
beforeSend: function(xhrObj){
// Request headers
xhrObj.setRequestHeader("Content-Type","application/json");
},
type: "POST",
// Data model documentation at https://msrc.microsoft.com/report/developer
data: "{body}",
})
.done(function(data) {
alert("success");
})
.fail(function() {
alert("error");
});
});