Comment on page
📩
Fetching Data
Learn how to integrate our system with JavaScript without the SDK.
You can easily use echo3D with your JavaScript project by using our RESTful API instead of using our SDK.
app.js
...
var echoDB;
// Query echo3D
fetch('https://api.echo3D.com/query?key=' + API_KEY)
.then((response) => response.json())
.then((json) => {
// Store database
echoDB = json; // The JSON response
})
.catch((error) => {
console.error(error);
});
...
var apiKey = echoDB.apiKey;
var db = Object.values(echoDB.db);
Last modified 1mo ago