控制台-频道-聊天-获取消息

接口URL

{youke-url}/console/Index.php?c=live&a=getComment&timestamp=1607677497&access_key=abc&sign=97d791101db8600e162935d43cc63f0e3510cb98

请求方式

POST

Content-Type

form-data

请求Query参数

参数 示例值 是否必填 参数描述
c live 必填 -
a getComment 必填 -
timestamp 1607677497 必填 -
access_key abc 必填 -
sign 97d791101db8600e162935d43cc63f0e3510cb98 必填 -

请求Body参数

参数 示例值 是否必填 参数描述
id Kfhs830lis0HbSmQmSUn0hAq9kZS75bI 必填 频道ID
page 1 选填 页码

成功响应示例

{
    "code": 200,
    "msg": "success",
    "data": {
        "page": 1,
        "count": 35,
        "comments": [
            {
                "id": 12617,
                "live_id": "Kfhs830lis0HbSmQmSUn0hAq9kZS75bI",
                "sender_id": 297,
                "sender_type": 1,
                "sender_name": "weilin",
                "message": "去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了",
                "reply_to": null,
                "checked": 1,
                "top": 0,
                "created_at": "2020-05-29 10:17:19",
                "deleted_at": null
            },
            {
                "id": 12619,
                "live_id": "Kfhs830lis0HbSmQmSUn0hAq9kZS75bI",
                "sender_id": 401685,
                "sender_type": 2,
                "sender_name": "weilin1111",
                "message": "去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了",
                "reply_to": null,
                "checked": 1,
                "top": 0,
                "created_at": "2020-05-29 10:18:02",
                "deleted_at": null
            },
            {
                "id": 12620,
                "live_id": "Kfhs830lis0HbSmQmSUn0hAq9kZS75bI",
                "sender_id": 401684,
                "sender_type": 2,
                "sender_name": "手机观看",
                "message": "3",
                "reply_to": null,
                "checked": 1,
                "top": 0,
                "created_at": "2020-05-29 10:18:49",
                "deleted_at": null
            },
            {
                "id": 12621,
                "live_id": "Kfhs830lis0HbSmQmSUn0hAq9kZS75bI",
                "sender_id": 401685,
                "sender_type": 2,
                "sender_name": "weilin1111",
                "message": "4444444",
                "reply_to": null,
                "checked": 1,
                "top": 0,
                "created_at": "2020-05-29 10:19:02",
                "deleted_at": null
            },
            {
                "id": 12622,
                "live_id": "Kfhs830lis0HbSmQmSUn0hAq9kZS75bI",
                "sender_id": 401685,
                "sender_type": 2,
                "sender_name": "weilin1111",
                "message": "555555555555",
                "reply_to": null,
                "checked": 1,
                "top": 0,
                "created_at": "2020-05-29 10:19:04",
                "deleted_at": null
            },
            {
                "id": 12623,
                "live_id": "Kfhs830lis0HbSmQmSUn0hAq9kZS75bI",
                "sender_id": 401685,
                "sender_type": 2,
                "sender_name": "weilin1111",
                "message": "6666666666666",
                "reply_to": null,
                "checked": 1,
                "top": 0,
                "created_at": "2020-05-29 10:19:06",
                "deleted_at": null
            },
            {
                "id": 12624,
                "live_id": "Kfhs830lis0HbSmQmSUn0hAq9kZS75bI",
                "sender_id": 401685,
                "sender_type": 2,
                "sender_name": "weilin1111",
                "message": "7777777777",
                "reply_to": null,
                "checked": 1,
                "top": 0,
                "created_at": "2020-05-29 10:19:08",
                "deleted_at": null
            },
            {
                "id": 12625,
                "live_id": "Kfhs830lis0HbSmQmSUn0hAq9kZS75bI",
                "sender_id": 401685,
                "sender_type": 2,
                "sender_name": "weilin1111",
                "message": "88888888888",
                "reply_to": null,
                "checked": 1,
                "top": 0,
                "created_at": "2020-05-29 10:19:09",
                "deleted_at": null
            },
            {
                "id": 12626,
                "live_id": "Kfhs830lis0HbSmQmSUn0hAq9kZS75bI",
                "sender_id": 401685,
                "sender_type": 2,
                "sender_name": "weilin1111",
                "message": "999999999",
                "reply_to": null,
                "checked": 1,
                "top": 0,
                "created_at": "2020-05-29 10:19:11",
                "deleted_at": null
            },
            {
                "id": 12627,
                "live_id": "Kfhs830lis0HbSmQmSUn0hAq9kZS75bI",
                "sender_id": 401685,
                "sender_type": 2,
                "sender_name": "weilin1111",
                "message": "1010101",
                "reply_to": null,
                "checked": 1,
                "top": 0,
                "created_at": "2020-05-29 10:19:14",
                "deleted_at": null
            },
            {
                "id": 12628,
                "live_id": "Kfhs830lis0HbSmQmSUn0hAq9kZS75bI",
                "sender_id": 401685,
                "sender_type": 2,
                "sender_name": "weilin1111",
                "message": "11111111",
                "reply_to": null,
                "checked": 1,
                "top": 0,
                "created_at": "2020-05-29 10:19:16",
                "deleted_at": null
            },
            {
                "id": 12629,
                "live_id": "Kfhs830lis0HbSmQmSUn0hAq9kZS75bI",
                "sender_id": 401685,
                "sender_type": 2,
                "sender_name": "weilin1111",
                "message": "12121212",
                "reply_to": null,
                "checked": 1,
                "top": 0,
                "created_at": "2020-05-29 10:19:20",
                "deleted_at": null
            },
            {
                "id": 12630,
                "live_id": "Kfhs830lis0HbSmQmSUn0hAq9kZS75bI",
                "sender_id": 401685,
                "sender_type": 2,
                "sender_name": "weilin1111",
                "message": "13",
                "reply_to": null,
                "checked": 1,
                "top": 0,
                "created_at": "2020-05-29 10:19:21",
                "deleted_at": null
            },
            {
                "id": 12631,
                "live_id": "Kfhs830lis0HbSmQmSUn0hAq9kZS75bI",
                "sender_id": 401685,
                "sender_type": 2,
                "sender_name": "weilin1111",
                "message": "14",
                "reply_to": null,
                "checked": 1,
                "top": 0,
                "created_at": "2020-05-29 10:19:24",
                "deleted_at": null
            },
            {
                "id": 12632,
                "live_id": "Kfhs830lis0HbSmQmSUn0hAq9kZS75bI",
                "sender_id": 401685,
                "sender_type": 2,
                "sender_name": "weilin1111",
                "message": "15",
                "reply_to": null,
                "checked": 1,
                "top": 0,
                "created_at": "2020-05-29 10:19:26",
                "deleted_at": null
            },
            {
                "id": 12633,
                "live_id": "Kfhs830lis0HbSmQmSUn0hAq9kZS75bI",
                "sender_id": 401685,
                "sender_type": 2,
                "sender_name": "weilin1111",
                "message": "16",
                "reply_to": null,
                "checked": 1,
                "top": 0,
                "created_at": "2020-05-29 10:19:28",
                "deleted_at": null
            },
            {
                "id": 12634,
                "live_id": "Kfhs830lis0HbSmQmSUn0hAq9kZS75bI",
                "sender_id": 401685,
                "sender_type": 2,
                "sender_name": "weilin1111",
                "message": "17",
                "reply_to": null,
                "checked": 1,
                "top": 0,
                "created_at": "2020-05-29 10:19:30",
                "deleted_at": null
            },
            {
                "id": 12635,
                "live_id": "Kfhs830lis0HbSmQmSUn0hAq9kZS75bI",
                "sender_id": 401685,
                "sender_type": 2,
                "sender_name": "weilin1111",
                "message": "18",
                "reply_to": null,
                "checked": 1,
                "top": 0,
                "created_at": "2020-05-29 10:19:32",
                "deleted_at": null
            },
            {
                "id": 12636,
                "live_id": "Kfhs830lis0HbSmQmSUn0hAq9kZS75bI",
                "sender_id": 401685,
                "sender_type": 2,
                "sender_name": "weilin1111",
                "message": "19",
                "reply_to": null,
                "checked": 1,
                "top": 0,
                "created_at": "2020-05-29 10:19:33",
                "deleted_at": null
            },
            {
                "id": 12638,
                "live_id": "Kfhs830lis0HbSmQmSUn0hAq9kZS75bI",
                "sender_id": 401685,
                "sender_type": 2,
                "sender_name": "weilin1111",
                "message": "20",
                "reply_to": null,
                "checked": 1,
                "top": 0,
                "created_at": "2020-05-29 10:19:46",
                "deleted_at": null
            }
        ]
    }
}
参数 示例值 参数描述
code 200 响应状态码
msg success 提示信息
data null json array
page 1 当前页码
count 35 总数
comments - 消息集合
id 12617 消息ID
live_id Kfhs830lis0HbSmQmSUn0hAq9kZS75bI 频道ID
sender_id 297 发送者ID
sender_type 发送者类型 1=account;2=audience;3=external_account;4=sub_manager;5=instructor
sender_name weilin 发送者名称
message 去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了去我饿人我饿的是看了 消息内容
reply_to - 回复的消息ID
checked 1 是否检查过 默认通过,直播开启评论过滤则设为0
top 0 是否置顶
created_at 2020-05-29 10:17:19 创建时间
deleted_at - -

results matching ""

    No results matching ""