xxxxxxxxxx
31
// Examples use USGS Earthquake API:
// https://earthquake.usgs.gov/fdsnws/event/1/#methods
// displays an animation of all USGS earthquakes
let climate;
let cmFeatureIndex = 0;
function preload() {
let url = 'https://www.carboninterface.com/api/v1/auth';
httpDo(
url,
{
method: 'GET',
// Other Request options, like special headers for apis
headers: { Authorization: 'Bearer Qbc8S17cDkVxYT2gdGwwg' }
},
function(res) {
climate = res;
}
);
}
function draw() {
if(!climate || !climate.features[cmFeatureIndex]){
return;
}
//clear();
}