云客服-查询历史消息 (queryHistoryChatMessage):报文样例

时间:2024-05-17 09:12:59

报文样例

  • 场景描述:查询历史消息

    URL:https://域名/apiaccess/ccmessaging/queryHistoryChatMessage

    请求头:

    {
    	"ccmessaging-token": "eyJjcmVhdGVUaW1lI********************************IiwiY2hhbm5lbElkIjoiMjAyMTAyMTkzMTk2ODY5NzA4In0%3D",
    	"x-app-key": "ea5c29a3-ea45-4b79-a449-2a3dbeb4c32c",
    	"Authorization": "Bearer 57042f85****************8c4e0",
    	"Content-Type": "application/json"
    }
    请求参数:
    {
            "channelId":"202207292843442389",
            "userId":"1659490221026188522",
            "limit":"1",
            "offset":"0",
            "startTime":"1659910093000",
            "endTime":"1659938956000",
            "channel":"WEB"
    }

    响应参数:

    {
            "messageList": [
                {
                    "id": "10113293212986888",
                    "channel": "WEB",
                    "senderNickname": "wangming77",
                    "senderAvatar": "../../image/user1.png",
                    "sendTime": 1659938956000,
                    "receiveTime": 1659938956000,
                    "controlType": "CHAT",
                    "sourceType": "USER",
                    "mediaType": "FILE",
                    "content": "diaoyu.aac,26964,fee53aad-94a0-4dc2-b7ff-fd8c2e2496f2,aac",
                    "callId": "1659938875-16806492",
                    "messageCode": "67A257B0DB5EFBC08C9F2BD612443F09BBF858570A62CCAAB8D3CE45B7C0EFD0",
                    "associationContentId": null,
                    "sendStatus": null,
                    "errorMsg": null,
                    "isForwarded": false,
                    "forwardTime": null,
                    "contentDealType": null
                 }
            ],
            "resultCode": "0",
            "resultDesc": "success"
    }
support.huaweicloud.com/api-ccfs-cec/cec_07_2215.html