From Bright Pattern Documentation
Jump to: navigation, search
 
(Redirected page to Api)
 
Line 1: Line 1:
<translate>= Get New Chat Events =
+
#REDIRECT [[Api]]
''Get New Chat Events'' returns new chat events for the current session. If there are no new events, the server can keep the request active during for about 5–15 seconds. If the client sends another request to get new events while the previous request is kept active, the server will respond with error 400 (Bad request).
 
 
 
== URL ==
 
http[s]://&lt;host&gt;:&lt;port&gt;/clientweb/api/v1/chats/{chatId}/events?tenantUrl=&lt;tenantUrl&gt;
 
 
 
== Method ==
 
GET
 
 
 
== Returns ==
 
200 – Array of chat events (content type: application/json)
 
 
 
=== Example ===
 
{|border="1" style="border-collapse:collapse" cellpadding="5"
 
|''{''
 
 
 
''&quot;events&quot;:[&lt;array of chat events&gt;]''
 
 
 
''}''
 
|}
 
 
 
== Errors ==
 
400 – Bad request
 
 
 
401 – Unauthorized
 
 
 
404 – Not found
 
 
 
 
 
 
 
<center>[[mobile-web-api-specification/GetChatHistory|< Previous]]  |  [[mobile-web-api-specification/UploadFile|Next >]]</center>
 
</translate>
 

Latest revision as of 22:56, 6 August 2020

Redirect to:

• 5.19 • 5.2 • 5.3 • 5.8

/prevnext/