Fetching Data
Learn how to integrate our system with React Native.
...
render: function() {
var echoDB;
// Query echo3D
fetch('https://api.echo3D.com/query?key=' + API_KEY + '&secKey=' + SEC_KEY)
.then((response) => response.json())
.then((json) => {
// Store database
global.echoDB = json; // Save JSON response as a global variable
})
.catch((error) => {
console.error(error);
});
...
}
...Last updated