1.2.4 • Published 6 years ago
agentapp-widget-sdk v1.2.4
LiveChat AgentApp Widget SDK
Instalation
npm install --save agentapp-widget-sdk
Usage
Initialization
import LiveChat from 'agentapp-widget-sdk';
LiveChat.init();
Listen for events
import LiveChat from 'agentapp-widget-sdk';
LiveChat.on("customer_profile", (data) => {
console.log(data);
});
Example output
{
"id": "S126126161.O136OJPO1",
"name": "Mary Brown",
"email": "mary.brown@email.com",
"chat": {
"id": "NY0U96PIT4"
}
}