Changes
Page history
Update API Call Flow (Web)
authored
Jul 23, 2024
by
Nuwan
Show whitespace changes
Inline
Side-by-side
common/API-Call-Flow-(Web).md
View page @
17071d6d
...
@@ -5,8 +5,8 @@ graph TB
...
@@ -5,8 +5,8 @@ graph TB
Livechat2Api --Custom Login --> api:setUserAuth
Livechat2Api --Custom Login --> api:setUserAuth
api:setUserAuth-->api:start
api:setUserAuth-->api:start
api:start-->evt:onStartSuceess
api:start-->evt:onStartSuceess
evt:onStartSuceess-->api:findUser
evt:onStartSuceess-->api:findUser
*
api:findUser
(optional)
-->evt:onRequestQueued
api:findUser
*
-->evt:onRequestQueued
evt:onRequestQueued -->evt:onUserFound
evt:onRequestQueued -->evt:onUserFound
evt:onRequestQueued -->evt:onUserNotFound
evt:onRequestQueued -->evt:onUserNotFound
...
@@ -20,5 +20,5 @@ api:start-->evt:onStartFailed
...
@@ -20,5 +20,5 @@ api:start-->evt:onStartFailed
evt:onStartFailed --> End
evt:onStartFailed --> End
```
```
*
api.findUser is optional and not required for most cases.
*
Livechat2Api object exposes documented events and application must set handlers for those accordingly.
*
Livechat2Api object exposes documented events for application to set handlers accordingly.
\ No newline at end of file
\ No newline at end of file