Consume external API using XmlHttp Request - Javascript

Ankaprasad
Posted by Ankaprasad under JavaScript category on | Points: 40 | Views : 1568
       var request = new XMLHttpRequest();
var url = 'https://<domain>/api/Emp?extQuoteId=' + quoteId + '&RecId=' + recordId + '&customerId=' + customerId;

request.open('GET', url, true);
request.onload = function () {

//var data = JSON.parse(this.response);
}
request.send();

Comments or Responses

Login to post response