Developer Docs

Web SDK Reference | Get available products

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

JavaScript
getAvailableProducts()

Returns

Type

Description

PluginScriptProduct[]

An array of objects with the following structure:

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

Example

JavaScript

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