Returns the contact object of a currently active chat based on the ChatID.
Parameters:
Name | Mandatory | Type | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
chatId |
|
| Unique chat identifier |
...
Type | Description |
---|---|
JS Promise | A Javascript Promise that return an object containing the chat transcriptobject. See Contact Object |
Example:
Code Block | ||
---|---|---|
| ||
LIVECHAT.getContactByChatID("CHAT_DEFAULT_97656d2ccdccec91-28b47b95-41fc47f4-af389b14-111066cefcafb6f8cf944b73") .then(function(data){ console.log("Chat contact", data); }); |
...