Public
Edited
Apr 18, 2023
1 fork
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
async function generateKey() {
let username = form.username
let password = form.password
let auth = window.btoa(username + ':' + password);
const key = await fetch('https://api.thegreenwebfoundation.org/api/v3/carbontxt_shared_secret', {
method: "POST",
headers: {
"Authorization": "Basic " + auth,
}
}).then(r => r.json())
return key
}
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more