Using the SDK
A description of the files and methods of our JavaScript SDK.
Last updated
Was this helpful?
A description of the files and methods of our JavaScript SDK.
Last updated
Was this helpful?
The SDK implements our and and includes some useful functions to access data stored on our platform.
This function expects the and as input to initialize the SDK.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.