音视频通讯记录

请求URL
  • http://xx.com/communication/audioList
Headers
  • token
请求方式
  • GET
参数
参数名 必选 类型 说明
initiator string 发起者昵称或手机搜索
recipient string 接收者昵称或手机搜索
type int 1.语音 2.视频
status int 1.发起未接通 2.已接通
返回示例
{
    "error_code": 0,
    "msg": "success",
    "data": [
        {
            "id": 1,
            "type": 1, //1.语音 2.视频
            "status": 1, //1.发起未接通 2.已接通
            "initiator": {
                "id": 51,
                "nickname": "快洽51", //发起者昵称
                "phone": "13040882613", //发起者手机
                "headimg": ""
            },
            "recipient": {
                "id": 62,
                "nickname": "im62", //接收者昵称
                "phone": "13040882627", //接收者手机
                "headimg": ""
            },
            "channel": "asdasd", //通道ID
            "duration": 5, //时长,秒
            "created_at": "2021-11-23 00:00:00", //发起时间
            "updated_at": "2021-11-23 00:00:00" //结束时间
        }
        {
            "id": 4,
            "type": 2,
            "status": 2,
            "initiator": {
                "id": 51,
                "nickname": "快洽51",
                "phone": "13040882613",
                "headimg": ""
            },
            "recipient": {
                "id": 62,
                "nickname": "im62",
                "phone": "13040882627",
                "headimg": ""
            },
            "channel": "wqqrt",
            "duration": 3600,
            "created_at": "2021-11-23 00:00:00",
            "updated_at": "2021-11-23 00:00:00"
        }
    ],
    "total": 4
}
返回参数说明
参数名 类型 说明
error_code int 0成功
msg string ok
备注
  • 更多返回错误代码请看首页的错误代码描述