GetTicketReply【获取指定工单的所有回复信息】

获取指定工单的所有回复信息:可根据工单ID来获得指定工单的所有回复信息。 如果不指定工单ID,则会返回错误信息。

Request Parameters

Parameter name Type Description Required
action String API 标识符 Yes
ticket_id String 工单ID Yes

Response Elements

Name Type Description
message String 执行结果信息
code Integer HTTP Resonpe响应状态码
data Array JSON 格式的指定工单信息,每项参数可见下面 Data Item

Data Item

Name Type Description
description String 回复的内容
num Integer 所有回复数
ticket_id String 工单ID
user_name String 回复人
id String 该回复ID
opened String 回复时间

Example

Example Request:

Request Headers:

POST /api/ HTTP/1.1
Origin: https://console.plcloud.com
X-CSRFToken: 6An6xEuOJqW6dVDtlgzZr6FqgkSbJmqp
Content-Type: application/json

JSON Data:

{
    "action": "TicketReply",
    "ticket_id": "tkr-ah5znu11"
}

Example Response:

{
    "message": "成功",
    "code": 200,
    "data": [
        {
            "description": "hello",
            "num": 3,
            "ticket_id": "tkr-ah5znu11",
            "user_name": "joe@lei.com",
            "id": "tkr-31a11wic",
            "opened": "2015-02-11 16:36:50"
        },
        {
            "description": "hi",
            "num": 3,
            "ticket_id": "tkr-ah5znu11",
            "user_name": "joe@lei.com",
            "id": "tkr-6kx8z0ac",
            "opened": "2015-02-11 16:40:18"
        },
        {
            "description": "test",
            "num": 3,
            "ticket_id": "tkr-ah5znu11",
            "user_name": "joe@lei.com",
            "id": "tkr-f4160dns",
            "opened": "2015-02-11 16:55:42"
        }
    ]
}