Find out how to use our Javascript SDK in your web development projects.
Go to documentationA powerful Javascript SDK for your web development needs.
Start using the SDK with our CDN: https://sdk.ciemetric.com/sdk/cieblink-sdk.js
<head>
<title>SDK Demo</title>
</head>
<body>
<script src="https://sdk.ciemetric.com/sdk/cieblink-sdk.js"></script>
<script>
var cabinet = {
"sku": "B2T",
"quantity": 1,
"width": "24",
"height": "34.75",
"depth": "23.75",
"unitSystem": "inch",
"options": [
{
"question": "fournisseur-porte",
"answer": "Tafisa"
},
{
"question": "modele-porte",
"answer": "Shaker 7051"
}
],
"optionsExtended": ""
};
cieblinkSDK.OpenProductConfiguration({
key: 'cieblinkTest',
env : 'lab',
cabinet: cabinet,
ref_type : "order",
ref_id : "12345",
onSave: (optionsExtended) => {
//Cieblink returns the updated cabinet onSave.
console.log("Result", optionsExtended);
cabinet.optionsExtended = optionsExtended;
}
}).render(document.body);
</script>
</body>