Live Chat Widget Callback Function
This documentation provides a flexible set of methods that can be used in your web projects. To invoke one of the methods below, please be sure to call a method after the embed code on your page.
Use this callback functions to manipulate the chat widget displayed on your website.

OnCreateCase

This callback functions triggered every time the user create a new case
1
<script>
2
tapliveCallback.tapliveOnCreateCase = (caseModel, fullname, email, url) => {
3
// your action here
4
}
5
</script>
Copied!

Returned Parameters

CaseModel: (caseModel) data related to case. fullname: (String) full name of the user. email: (String) email of the user. url: (String) the page url when user access the live chat widget.

OnSendMessage

This callback functions triggered every time the user send a message
1
<script>
2
tapliveCallback.tapliveOnSendMessage = (message, fullname, email, url) => {
3
// your action here
4
}
5
</script>
Copied!

Returned Parameters

message: (messageModel) data related to message. fullname: (String) full name of the user. email: (String) email of the user. url: (String) the page url when user access the live chat widget.
This documentation provides a flexible set of methods that can be used in your web projects. To invoke one of the methods below, please be sure to call a method after the embed code on your page.
Use this callback functions to manipulate the chat widget displayed on your website.

TapliveIsAuthenticated

This functions returnn boolean if session is available or not
1
<script>
2
TapTalkLive.tapliveIsAuthenticated();
3
</script>
Copied!

SetVisible

This functions is use to set visibility of the launcher widget
1
<script>
2
TapTalkLive.setVisible(boolean);
3
</script>
Copied!

TapliveRequestAccessToken

This functions is use to request taplive access token
1
<script>
2
TapTalkLive.tapliveRequestAccessToken(key, () => {
3
//do action here
4
});
5
</script>
Copied!

SetHideTaplivePower

This functions is use to hide taplive watermark
1
<script>
2
TapTalkLive.setHideTaplivePower();
3
</script>
Copied!

LauncherLogout

This functions is use to logging out launcher widget
1
<script>
2
TapTalkLive.launcherLogout(() => {
3
//do action here
4
});
5
</script>
Copied!