👩💻Edit Code
Learn how to edit code and parse data in your JavaScript project.
Now that you are able to use our JavaScript SDK, it's time to build a web app.
SDK Code Example
You can find a robust open-source code example on our GitHub page.
This example project utilizes the echo3D JavaScript SDK to allow users to interact with the echo3D API via JavaScript code.
Setup and Run
Register for an account.
Add 3D models, videos, and images to the console.
Open a new terminal.
Run the following in the terminal:
git clone https://github.com/echo3Dco/echo3D-JavaScriptSDK-Example-Project.git
cd echo3D-JavaScriptSDK-Example-Project
start echo3D-JavaScriptSDK-Example.html
Copy your API key from the top of the console and paste it into the application.
Optionally do the same for the secret key on the Security page of the console, if your project has it enabled.
Click
Load Key
. This will allow you to keep making API calls from the same API key.Copy an entry ID by clicking the icon next to the name of any model you have uploaded to the console and paste it into the application.
Outputs of API calls will display as JSON in the center textbox.
Video Tutorial
Simple Code Example
Now that you are able to successfully fetch data into JavaScript, it's time to parse the data in your code.
You can iterate over all entries in the fetched database and parse them based on the data structures detailed in our API. For example:
Last updated