获取精彩片段列表
请求示例
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 | <?php
use TalkCloud\Api\RecordSdk;
$config = [
'Tk_Company_Key' => '你的企业Key',
];
$sdk = new RecordSdk($config);
$result = $sdk->getSegmentList([
'serial' => '345457565',
'startTime' => 1779435505,
'endTime' => 1779445505,
'page' => 1,
'pageSize' => 10,
]);
$data = json_decode($result, true);
|
返回结构说明
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 | {
'result' => 0,// 0 成功,其他失败
"data": [
{
"id": 1463,
"serial": "2034657236",
"mp4Url": "https://recorddemo.talk-cloud.net/HighlightSegment/2034657236-1734923450300/b7140730-766e-b14d-9483-1cd6d0f2fb4f_clip_0_moment.mp4",
"thumbUrl": "https://recorddemo.talk-cloud.net/HighlightSegment/2034657236-1734923450300/b7140730-766e-b14d-9483-1cd6d0f2fb4f_clip_0_thumb.jpg",
"duration": 51,
"size": 1783657,
"username": "tttt",
"userId": "b7140730-766e-b14d-9483-1cd6d0f2fb4f"
"createtime": 1741073107
}
],
"msg": "",
"total": 6
}
|
建议在业务代码中统一先 json_decode($result, true) 后再取字段。