Returns chat transcript before the specified timestamp
HTTP GET livechat/getChatTranscriptByDate/:ts
Path Variables:
Name | Mandatory | Type | Description |
---|---|---|---|
ts | YES | STRING | timestamp before which to retrieve chat transcripts |
Response:
Type: JSON
Name | Type | Description |
---|---|---|
result | BOOLEAN | If true, the service response was performed correctly |
chatTranscripts | OBJECT | An object that contains the chat transcripts retrieved |
error | NULL / STRING | Contains the error description if an error has occurred in the request |
Example:
Request
http://<hostname>:<port>/livechat/getChatTranscriptByDate/1568388221068
Response
{ "result":true, "chatTranscripts":[ { "result":true, "transcript":{ "messages":[ { "data":{ "id":"cb34571c-ce74-4b21-a297-28311cf50c2e", "messageType":"IMAGE", "ts":1568970399937.0 }, "room":"CHAT_686ffd84-74fd-4f18-a5d1-9537ffd04acf" } ], "_id":"5d7bb2353bcb9e40e0330a72", "room":"CHAT_686ffd84-74fd-4f18-a5d1-9537ffd04acf", "__v":0 } }, { "result":true, "transcript":{ "messages":[ { "data":{ "id":"15f8fe7c-c7c6-4136-8a9a-5bbaadd167b0", "messageType":"IMAGE", "ts":1568388313721 }, "_id":"5d7bb4e43bcb9e40e0330a75", "room":"CHAT_a2901b37-66bb-49d0-a041-b84bb8f421c4" } ], "_id":"5d7bb4e43bcb9e40e0330a74", "room":"CHAT_a2901b37-66bb-49d0-a041-b84bb8f421c4", "__v":0 } } ], "error":null }