A Pen by Tim Brown

Thumbnail
This awesome code was written by timbrown81, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright timbrown81 ©
  • HTML
  • JavaScript
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>A Pen by  Tim Brown</title>
  
  
  
  
  
</head>

<body>

  
  
  

    <script  src="js/index.js"></script>




</body>

</html>

/*Downloaded from https://www.codeseek.co/timbrown81/a-pen-by-tim-brown-BZgBGW */
var request = new XMLHttpRequest();

request.open('GET', 'https://api.indix.com/v2/summary/products?countryCode=US&upc=88846276325&app_key=Zz4blyKj5V2GA5fEVvJI4iJqPTOPA6fi');

request.onreadystatechange = function () {
  if (this.readyState === 4) {
    console.log('Status:', this.status);
    console.log('Headers:', this.getAllResponseHeaders());
    console.log('Body:', this.responseText);
  }
};

request.send();

Comments