π§Installation & Initialization
Usage Capability
Meaning
Installing Lamba
<script type="text/javascript" src="https://sdk.lambahq.com/v1.js"></script><link rel="stylesheet" href="https://sdk.lambahq.com/v1.min.css">Initializing Lamba
function openBuilder(){
// calling with `new window.Lamba({});` OR
const lamba = new Lamba({
title: "Lamba",
icon: 'https://ik.imagekit.io/lambahq/lamba-dark.png',
theme: "light", // or "dark"
appId: "65aabeba6182d6903a2ea355", // (REQUIRED) the id of your app in your Lamba account
customerId: "cus_x1847", // (REQUIRED) the customerId of the customer/user added to your app
enabledServices: [], // (OPTIONAL) can be omitted if you need to display all available services
usageCapabilities: ['connect','use'], // (REQUIRED) atleast one of "connect" and "use" must be provided
});
// call the `open` method on the lamba instance to open up the Lamba interface
lamba.open();
}Last updated