获取房间用户录制件列表
请求示例
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 | <?php
use TalkCloud\Api\RecordSdk;
$config = [
'Tk_Company_Key' => '你的企业Key',
];
$sdk = new RecordSdk($config);
$result = $sdk->getUserVideoList([
'serial' => '345457565',
"recordTitle": "1711949377546",
]);
$data = json_decode($result, true);
|
返回结构说明
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 | {
'result' => 0,// 0 成功,其他失败
"data": {
"userVideolist": [
{
"serial": "1922422482",
"starttime": "1709884637661",
"size": 1382254,
"userVideoUrl": "/491ca3fe-0a50-42b6-8ceb-cb3783af76f5-1922422482\/03be406c-5079-1962-d319-4628f423024c.mp4",
"usertype": 2,
"userid": "5079"
},
{
"serial": "1922422482",
"starttime": "1709884637661",
"size": 995657,
"userVideoUrl": "/491ca3fe-0a50-42b6-8ceb-cb3783af76f5-1922422482\/03be406c-5079-1962-d319-4628f423024c.webm",
"usertype": 2,
"userid": "5079"
}
],
"webHost": "https://hw-record.talk-cloud.ne"
},
"msg": ""
}
|
建议在业务代码中统一先 json_decode($result, true) 后再取字段。