var url = "http://api.sunteltelecom.nl/api/v1/product/list";
var xhr = new XMLHttpRequest();
xhr.open("GET", url);
xhr.setRequestHeader("Authorization", "Bearer RQuYgC5NVEzkxS3ZuGmmjwtm5RGVn9a4Aw");
xhr.onreadystatechange = function () {
if (xhr.readyState === 4) {
console.log(xhr.status);
console.log(xhr.responseText);
}else {
console.log('Not found....')
}};
xhr.send();
top of page
bottom of page