tencent cloud

Cloud Contact Center

Get a Language List

Modo Foco
Tamanho da Fonte
Última atualização: 2025-04-03 18:07:19

API Call Description

App admin proactively calls RESTful APIs to add a language list.

Sample Request URL

https://xxxxxx/v4/openim_console_http_svc/robot_get_language_list?sdkappid=88888888&identifier=admin&usersig=xxx&random=99999999&contenttype=json

Request Parameters

The following table only lists the parameters involved in modification when calling this API and their descriptions. For more details about the parameters, please see REST API Introduction.
Parameter
Description
v4/openim_console_http_svc/robot_get_language_list
Request API.
sdkappid
Assigned SDKAppID in the Chat console when creating an application.
identifier
Must be an App administrator account. For more details, see App Administrator.
usersig
Generated signature of the App administrator account. For specific operations, see Generate UserSig.
random
Enter a random 32-bit unsigned integer in the range of [0,4294967295].
contenttype
The request format has a fixed value of json.

Maximum Calling Frequency

5 times/second.

Sample Request Packet

{
"ActionStatus": "OK",
"ErrorInfo": "",
"ErrorCode": 0,
"Languages": [
{
"LanguageTag": "",
"IsDefault": 1
}
]
}
Notes:
Just fill in the blank of the request package body with the JSON structure.

Response Package Example

{
"ActionStatus": "OK",
"ErrorInfo": "",
"ErrorCode": 0,
"Languages": [
{
"LanguageTag": "",
"IsDefault": 1
}
]
}

Response Packet Fields

Field
Type
Description
ActionStatus
String
Request processing result. OK: processing successful; FAIL: processing failed.
ErrorCode
Integer
Error code: 0 indicates success, non-zero indicates failure.
ErrorInfo
String
Error message.
Languages
Array
Language list.
LanguageTag
String
Language tag.
IsDefault
Integer
Whether it is the default language.

Error Code Description

Unless a network error (for example, 502 error) occurs, the HTTP return code of this API is 200. The actual error code and error information are represented by ErrorCode and ErrorInfo in the response packet body.
For common error codes (60000 to 79999), see the Error Code document.
The private error codes of this API are as follows:
Error Code
Description
-7
Parameter parsing failed. Check whether the request package complies with the JSON Specification or the request parameters meet requirements.
-14
Exceeds the maximum rate limit allowed by this API.
-20
Request requires App administrator permissions.
-50003
Desk resource is invalid.
-50040
Desk is not enabled.

API Debugging Tool

Debug this interface using the REST API Online Debugging Tool.

References

Query one-to-one chat messages (v4/openim/admin_getroammsg)

Ajuda e Suporte

Esta página foi útil?

comentários