echo3D
🌐 Back to website💻 Go to console📺 Watch workshop💬 Discuss on Slack
  • Introduction
  • Quickstart
    • 🔑Register
    • 💻Access the Console
    • 🎲Add a 3D Asset
    • 📤Share it with Others
    • ❔Troubleshooting
  • Web Console
    • 📦Load a Collection
    • 💼Manage Pages
      • Content Page
        • Assets and Targets
        • Add Content
        • Edit Content
        • Share Content
        • Access Permissions
        • Version Control
        • Asset Hierarchy
        • Bulk Actions on Assets
        • Asset Commenting
        • Activity Sidebar
      • Metadata & Tags Page
        • Collection Taxonomy and Asset Specific Metadata
        • How to Add and Edit Metadata
        • How to Add Associated Files and Text
      • Collections and Sharing Page
        • Users Tab
        • Groups Tab
        • Collections
        • Collection Sharing Tab
        • Asset Sharing Tab
        • Security Tab
      • Customizer Page
      • Model Editor Page
      • Scene Editor Page
    • 🚚Deliver Pages
      • Locations Page
      • Users Page
      • Insights Page
    • 🕛Optimize Pages
      • Convert & Compress Page
    • 🎓Learn Pages
      • Tutorials Page
    • 👤Account Page
      • Profile Tab
      • Email & Password
      • Plans Tab
      • Credit Usage Tab
      • Notifications Tab
      • Delete Account Tab
    • ❓Help Menu
    • ⏬Downloads
    • 🎨Themes
    • 🔎Search
  • API
    • 🧩Objects
    • 🗨️Queries
    • 📊Data
      • 📑What Metadata is Stored
    • 🔼Upload
    • 🔽Download
    • ❌Delete
    • 🌳Entry Hierarchy
    • 🔄Convert
    • 🔃Compress
    • 📁Organize
    • ⏪Version
    • ⏬Locate
    • 🔎Search
    • 🖼️Search by Image or Model
    • Share Content
  • Unity
    • 🔨Installation
    • 🧰Using the SDK
    • 🔧Script Settings
    • 📐Transforming Content
    • 👩‍💻Edit Code
    • 🤳Adding AR Capabilities
    • ❔Troubleshooting
  • Unreal 4
    • 🔨Installation
    • 🧰Using the SDK
    • 🔧Demo Project
  • Web
    • 🔨Installation
    • 🧰Using the Package
  • Scene Viewer
    • 📲Deploy Experience
    • 📐Transforming Content
    • 🔢Embed into Website or App
    • 👩‍💻Add Code
    • ❔Troubleshooting
  • AR.js
    • 📲Deploy Experience
    • 📐Transforming Content
    • 🔢Embed into Website or App
    • ❔Troubleshooting
  • FaceAR
    • 📲Deploy Experience
    • 📐Transforming Content
    • 🔢Embed into Website or App
    • ❔Troubleshooting
  • React Native
    • 📩Fetching Data
    • 👩‍💻Edit Code
    • 🤳Adding AR/VR Capabilities
    • 📐Transforming Content
  • Swift
    • 🔨Installation
    • 🔢Displaying a Model Asset
    • 🤳Adding AR Capabilities
    • 🧰Using the SDK
  • Flutter
    • 🔨Installation
    • 👩‍💻Edit Code
    • 🤳Adding AR Capabilities
  • JavaScript
    • 🔨Installation
    • 🧰Using the SDK
    • 📩Fetching Data
    • 👩‍💻Edit Code
  • Python
    • 🔨Installation
    • 🧰Using the SDK
    • 🔧Demo Project
  • NVIDIA Omniverse
    • 🔨Installation
  • Adobe Substance 3D Painter
    • 🔨Installation
  • 🧰Using the Plugin
  • Blender
    • 🔨Installation
    • 🧰Using the Add-on
  • eCommerce Sites
    • 🛒Shopify
    • 🌐Wix
  • 3D Content
    • 🎨Content Creation
    • 💎Google Poly
    • 📦Objaverse
    • 💫3D Capture Apps
      • MagiScan
      • Qlone
      • ARitize360
      • SCANN3D
      • 3D Scanner
      • Didimo Xperience
      • Scaniverse
      • Metascan3D
      • Polycam3D
      • RealityScan
Powered by GitBook
On this page
  • Constructor
  • queryAll
  • queryEntry
  • queryEntries
  • queryTags
  • queryFilename
  • queryData
  • queryType
  • queryLocation
  • queryGlobalData
  • postGlobalData
  • queryEntryData
  • postEntryData
  • downloadFileByFileStorageID
  • downloadFileByEntryID
  • downloadFileByEntryIDAndFormat

Was this helpful?

  1. JavaScript

Using the SDK

A description of the files and methods of our JavaScript SDK.

PreviousInstallationNextFetching Data

Last updated 1 year ago

Was this helpful?

The SDK implements our and and includes some useful functions to access data stored on our platform.

Constructor

This function expects the and as input to initialize the SDK.

queryAll

Get all entries associated with an API key. Returns a JSON of all entries.

You can set optional success and error callback functions as input.

queryEntry

Get a specific entry associated with an API key. Returns a JSON of a specific entry.

This function expects an Entry ID as an input.

You can set optional success and error callback functions as input.

queryEntries

Get specific entries associated with an API key. Returns a JSON of specific entries.

This function expects an array of Entry IDs as an input.

You can set optional success and error callback functions as input.

queryTags

Get all entries associated with an API key and specific tags. Returns a JSON of matching entries.

This function expects an array of tags (strings) as an input.

You can set optional success and error callback functions as input.

queryFilename

Get entries associated with an API key that matches a given filename. Returns a JSON of all matching entries.

This function expects a filename as input.

You can set optional success and error callback functions as input.

queryData

Get entries associated with an API key that matches a given metadata key and value. Returns a JSON of all matching entries.

This function expects a key and a value as input.

You can set optional success and error callback functions as input.

queryType

Get entries associated with an API key that matches a given asset type. Returns a JSON of all matching entries.

This function expects a type as input. Options are MODEL_HOLOGRAM, VIDEO_HOLOGRAM, IMAGE_HOLOGRAM, BRICK_TARGET, GEOLOCATION_TARGET, or IMAGE_TARGET.

You can set optional success and error callback functions as input.

queryLocation

Get all entries associated with an API key around a specific location. Returns a JSON of matching entries.

This function expects a location Location expressed as <"lat", "long"> and a radius (default is 1) as an input.

You can set optional success and error callback functions as input.

queryGlobalData

Get the value of a global database entry associated with an API key and a key. Returns a string.

This function expects a key as input.

You can set optional success and error callback functions as input.

postGlobalData

Set the value of a global database entry associated with an API key and a key. Returns a status message.

This function expects a key and value as input.

You can set optional success and error callback functions as input.

queryEntryData

Get the metadata value of a specific entry associated with an API key and a key. Returns a string.

This function expects an Entry ID and a key as input.

You can set optional success and error callback functions as input.

postEntryData

Set the metadata key and value of a specific entry associated with an API key. Returns a status message.

This function expects an Entry ID, key, and value as input.

You can set optional success and error callback functions as input.

downloadFileByFileStorageID

Downloads a file based on a given file Storage ID. Returns the file contents if the query is valid. Otherwise, return a text message.

This function expects a Storage ID as input.

You can set optional success and error callback functions as input.

downloadFileByEntryID

Downloads a file based on a given Entry ID. Returns the originally uploaded file contents if the query is valid. Otherwise, return a text message.

This function expects an Entry ID as input.

You can set optional success and error callback functions as input.

downloadFileByEntryIDAndFormat

Downloads a file in a specific format based on a given Entry ID. Returns the file contents if the query is valid. Otherwise, return a text message.

This function expects an Entry ID and format as input. Valid formats are FBX, OBJ, GLTF, GLB, or USDZ.

You can set optional success and error callback functions as input.

🧰
API
Objects
API Key
Security Key