Returns the complete transcript of a currently active chat.
Parameters:
Name | Mandatory | Type | Description |
---|---|---|---|
chatId | YES | STRING | Unique chat identifier |
Returns:
Type | Description |
---|---|
JS Promise | A Javascript Promise that return an object containing the chat transcript. See Transcript Object |
Example:
LIVECHAT.getChatHistory("CHAT_97656d2c-28b4-41fc-af38-111066cefcaf") .then(function(data){ console.log("Chat trasncript", data); });