Method
This web SDK provides methods for web's system to call
Init
TapTalkLive.init(secretKey, isLoggedInWithAccessToken<boolean>, showLoadingScreen<boolean>, isOpenLauncherByDefault<boolean>, withoutRoomList<boolean>);Set Language
TapTalkLive.setTapliveLanguage("en or id");Set Brand Color
TapTalkLive.setBrandColor(r, g, b);Hide/Show "Powered By TapTalk.io" wording
TapTalkLive.setHideTaplivePower();Set Base API URL
setTapliveApiBaseURL(baseAPIUrl);Get Case List
tapliveGetCaseList({
onSuccess: (data) => {
// action here
},
onError: (errorMessage) => {
// action here
}
})Get Topic List
tapliveGetTopicList({
onSuccess: (data) => {
// action here
},
onError: (message) => {
// action here
}
})Create Case
tapliveCreateCaseWithCallback(int_topicid, string_message, {
onSuccess: (data) => {
// action here
},
onError: (message) => {
// action here
}
})Open/Close Launcher
TapTalkLive.toggleLauncher((boolean) => {
// action here
});Last updated
Was this helpful?