Skip to main content
Skip table of contents

Web SDK Reference | Get available products

The getAvailableProducts() method returns an array with available products that can be loaded in the configurator.

JS
getAvailableProducts()

Returns

Type

Description

PluginScriptProduct[]

An array of objects with the following structure:

JS
interface PluginScriptProduct {
  id: string;
  title: string;
  twikbotVersion: string;
  viewerDescriptorUrl: string;
  exportDescriptorUrl: string;
}

Example

JavaScript

JS
let availableProducts = window.twikit.getAvailableProducts();
let availableProductKeys = availableProducts.map(product => product.id);
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.