From Bright Pattern Documentation
|
|
Line 1: |
Line 1: |
− | <translate>= Get Chat History =
| + | #REDIRECT [[Api]] |
− | ''Get Chat History'' returns all [[mobile-web-api-specification/ClientEvents|client events]] and all [[mobile-web-api-specification/ServerEvents|server events]] for the current session. Event parameter ''timestamp'' can be used to restore the correct message order.
| |
− | | |
− | == URL ==
| |
− | http[s]://<host>:<port>/clientweb/api/v1/chats/{chatId}/history?tenantUrl=<tenantUrl>
| |
− | | |
− | == Method ==
| |
− | GET
| |
− | | |
− | == Returns ==
| |
− | 200 – Array of chat events (content type: application/json)
| |
− | | |
− | === Example ===
| |
− | {|border="1" style="border-collapse:collapse" cellpadding="5"
| |
− | |''{''
| |
− | | |
− | ''"events":[<array of chat events>]''
| |
− | | |
− | ''}''
| |
− | |}
| |
− | | |
− | == Errors ==
| |
− | 401 – Unauthorized
| |
− | | |
− | 404 – Not found
| |
− | | |
− | | |
− | | |
− | <center>[[mobile-web-api-specification/SendEvents|< Previous]] | [[mobile-web-api-specification/GetNewChatEvents|Next >]]</center>
| |
− | </translate>
| |
Latest revision as of 22:56, 6 August 2020