Dummy API JSON
var xhr = new XMLHttpRequest();
xhr.open("GET", "https://reqres.in/api/products/3", true);
xhr.onload = function(){
console.log(xhr.responseText);
};
xhr.send();
var xhr = new XMLHttpRequest();
xhr.open("GET", "https://reqres.in/api/products/3", true);
xhr.onload = function(){
console.log(xhr.responseText);
};
xhr.send();
run the api
let url = 'https://api.sheety.co/5f379c8292c16fcc323cfab50592b0e0/licences/feuille1';
fetch(url)
.then((response) => response.json())
.then(json => {
// Do something with the data
console.log(json.feuille1S);
});
run the api