How to use API
First of all, you need to read this guide to known how to embed the Control Panel into your web system, and then you can call the following APIs according to your requirements.
APIs
Actions
-
goto: change Comm100 Control Panel Page path.-
Params
Name type Description pagePath string The path of the page to redirect to. You can find the all page path from here. -
Response
No Response
-
Example
// When control completes the initialization, redirect to the live chat chat source reporting page after five seconds controlPanel.init().then((cp) => { setTimeout(function() { cp.do("goto", "/reporting/livechat/chatsource/chatsourcebytime/"); }, 5000); });Click here to get more information about setTimeout.
-