Skip to main content

Get Products

Usage

Get product data by product id's

Example

window.FastSimonSDK.getProducts({
productIds: ["123","456","234235"],
callback: (result) => {
// handle here
}
});

or

window.FastSimonSDK.getAllCategories({productIds: ["123","456","234235"]}).then(r => {
// handle here
});

Options

OptionTypeDescription
productIdsstring[] (required)A list of product id's to fetch
callback(Response) => void (required when promised is not used)Callback to handle the results

Response

TypeScript Typing
type Response = Product[]