window.twikbot.getAvailableProducts returns an object with available products that can be loaded in the configurator.

window.twikbot.getAvailableProducts()
CODE

Example usage


JavaScript

let availableProducts = window.twikbot.getAvailableProducts();
let availableProductKeys = Object.keys(availableProducts);
CODE

Returns

Type

Required

Description

Object{}

yes

A object with product key as key and Object{} as a value. The value object has the following structure:

{
    image: String,  // URI of product preview image.
    name: String,  // Name of the product as it appears in Twikit Create.
    url: String  // URI of the product JSON with info about released versions, translations, pricing etc..
} 
CODE