Edit Code
Learn how to edit code and parse data in your JavaScript project.
Last updated
Was this helpful?
Learn how to edit code and parse data in your JavaScript project.
Last updated
Was this helpful?
Now that you are able to use our JavaScript SDK, it's time to build a web app.
You can find a robust open-source code example on our .
This example project utilizes the echo3D JavaScript SDK to allow users to interact with the echo3D API via JavaScript code.
for an account.
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 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.
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 detailed in our API. For example: