/
getLiterals

getLiterals

Returns the domain/service level literals for the country code specified.

HTTP GET /livechat/:domain/getLiterals

Path Variables:

Name

Mandatory

Type

Description

Name

Mandatory

Type

Description

domain

yes

string

Unique domain identifier

Query String Parameters:

Name

Mandatory

Type

Description

Name

Mandatory

Type

Description

country

YES

STRING

Language code

level

yes

string

Can assume one of the following values:

  • tenant

  • service

serviceId

no

string

If level is set to “service“, specifies the service literals to retrieve

Response:

Type: JSONp

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

serviceId

string

service id associated to the literals retrieved

literals

object

Object containing the localized labels

Example:

Request

http://<hostname>:<port>/livechat/default/getLiterals?country=it&level=service&serviceId=LiveChat_Sidebar

Response

{ "result": true, "serviceId": "LiveChat_Sidebar", "error": null, "literals": { "Country": "it-it", "Separator": ",", "AppName": "CTLive", "engagement_sidebar_title": "Sidebar", "datacollection_cbl_first_slot_label": "Richiamami subito" } }

 

 

Related content

getGlobalLiteralsFromFile
getGlobalLiteralsFromFile
More like this
getDataCollection
getDataCollection
More like this
getActiveContactsID
getActiveContactsID
More like this
getChatTranscriptByCalldata
getChatTranscriptByCalldata
More like this
getDataCollectionByChatID
getDataCollectionByChatID
More like this
getChatHistory
getChatHistory
More like this