async function doRequest() {
let url = 'http://[Log in to view URL]';
let res = await fetch(url);
if (res.ok) {
let text = await res.text();
return text;
} else {
return `HTTP error: ${res.status}`;
}
}
doRequest().then(data => {
console.log(data);
});
To embed this project on your website, copy the following code and paste it into your website's HTML: