getSurveyResultsByServiceID

Returns the survey results of the services specified.

HTTP POST /livechat/:domain/getSurveyResultsByServiceID

Path Variables:

Name

Mandatory

Type

Description

Name

Mandatory

Type

Description

domain

NO

STRING

Unique domain identifier

Authorization: see Authentication mechanisms

Request Body:

Type: JSON

Name

Mandatory

Type

Description

Name

Mandatory

Type

Description

serviceIdList

YES

ARRAY

Array of service IDs

lt

NO

NUMBER

Epoch Unix Timestamp before (read <) which chats are searched for (based on the beginTime field). At least one between lt an gt must be present in order to limit the research.

gt

NO

NUMBER

Epoch Unix Timestamp after (read >) which chats are searched for (based on the beginTime field). At least one between lt an gt must be present in order to limit the research.

Response:

Type: JSON

Name

Type

Description

Name

Type

Description

result

BOOLEAN

If true, the service response was performed correctly

error

NULL / STRING

Contains the error description if an error has occurred in the request

surveyResults

ARRAY

Array of objects containing the survey results of the services requested

Example:

Request

http://<hostname>:<port>/livechat/default/getSurveyResultsByServiceID

Request body

{ "lt": 1714119031667, "gt": 1709039127067, "serviceIdList" : ["LiveChat_Popup", "5550633690"] }
{ "lt": 1714119031667, "serviceIdList" : ["LiveChat_Popup", "5550633690"] }
{ "gt": 1709039127067, "serviceIdList" : ["LiveChat_Popup", "5550633690"] }

Response