getSurveyResultsByDateCalldata

Returns the survey results of the chats based on the date and/or calldata variables specified.

HTTP POST /livechat/:domain/getSurveyResultsByDateCalldata

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

lt

no

number

Epoch Unix Timestamp before (read <) which chats are searched for (based on the beginTime field)

gt

no

number

Epoch Unix Timestamp after (read >) which chats are searched for (based on the beginTime field)

calldata

no

object

calldata variable with which chats are searched for

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 requested

Example:

Request

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

Request body

  • search by date

{ "lt": 1714119031667 }
{ "gt": 1709039127067 }
{ "lt": 1714119031667, "gt": 1709039127067 }
  • search by calldata

  • search by date and calldata

Response

Aggiungi etichetta