getDataCollection API

Get the data collection for the specified service.

Parameters:

Name

Mandatory

Type

Description

Name

Mandatory

Type

Description

service_id

yes

String

Unique service identifier

Rerurns:

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

  • datacollections: an object that contains all the Data Collection Object configured for the service

Example:

LIVECHAT.getDataCollection(self.service_id) .then(function(data){ console.log("[CTLIVE WIDGET] Data Collection", data); });