Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Returns the last transcript of a chat in whose contact object the service id is serviceid specified and user id is userid specified.

Status
colourYellow
titleHTTP POST
/livechat/:domain?/getLastTranscript

Path Variables:

Name

Mandatory

Type

Description

domain

Status
colourRed
titleYES

Status
titleSTRING

Unique domain identifier

Authorization: see Authentication mechanisms

Request Body:

Name

Mandatory

Type

Description

userid

Status
colourRed
titleyes

Status
titlestring

Unique user identifier

serviceid

Status
colourRed
titleyes

Status
titlestring

Unique service identifier

Response:

Type:
Status
titleJSON

Name

Type

Description

result

Status
titleboolean

If true, the service response was performed correctly

error

Status
titlenull
/
Status
titlestring

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

chatTranscript

Status
titleobject

Transcript Object /

Example:

Request

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

Request Body:

Code Block
languagejson
{ 
  "userid":"393401234567",
  "serviceid":"447491163530"
}

...