请求URL
http://xx.com/communication/audioList
Headers
请求方式
参数
参数名 |
必选 |
类型 |
说明 |
initiator |
否 |
string |
发起者昵称或手机搜索 |
recipient |
否 |
string |
接收者昵称或手机搜索 |
type |
否 |
int |
1.语音 2.视频 |
status |
否 |
string |
1、.startComm 发起通话 2、.handleOnOtherDevice 已在其他端处理 3、.busy 对方忙4、.refuse 拒绝通话 5、.cancel 您已取消呼叫 6、.remoteCancel 通话已取消 7、.noResponse 对方超时未响应 8、.remoteNoResponse 未接听 9、.hangup 通话已结束 |
返回示例
{
"error_code": 0,
"msg": "success",
"data": [
{
"id": 1,
"from":"2",//1个人通话 2群通话
"type": 1, //1.语音 2.视频
"status": ".hangup", //1、.startComm 发起通话 2、.handleOnOtherDevice 已在其他端处理 3、.busy 对方忙4、.refuse 拒绝通话 5、.cancel 您已取消呼叫 6、.remoteCancel 通话已取消 7、.noResponse 对方超时未响应 8、.remoteNoResponse 未接听 9、.hangup 通话已结束
"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" //结束时间
}
],
"total": 4
}
返回参数说明
参数名 |
类型 |
说明 |
error_code |
int |
0成功 |
msg |
string |
ok |
备注