getVersion API

Returns the application version.

Returns:

Type

Description

Type

Description

JS Promise

A Javascript Promise that return an object containing the following properties:

  • result: if true, the service response was performed correctly

  • error: contains the error description if an error has occurred in the request

  • version: a string containing the application version

Example:

LIVECHAT.getVersion() .then(function(data){ console.log("[CTLIVE VERSION] [" + data.version +"]"); });