> For the complete documentation index, see [llms.txt](https://docs.taptalk.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.taptalk.io/onetalk-omnichannel-documentation/onetalk-channel-integration/live-chat/onetalk-web/method.md).

# Method

### 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
});
```
