...
Type | Description |
---|---|
JS Promise | A Javascript Promise that returns an object with the result of the login request. |
Example:
Code Block | ||
---|---|---|
| ||
LIVECAHT.login()
.then(function (data) {
console.log("[CTLIVE WIDGET] Login", data);
// {result: true, sessionToken: <UUID>, error: null}
})
.catch(function () {
console.log("[CTLIVE WIDGET] [ERROR] Login");
}); |