文档中心 > API类目 > 五道口API

taobao.wdk.iot.video.get.video.record (查询视频录制接口)

视频中心请求视频录制接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
record_id String 必须 uuid32 请求录制的ID
tenant_id String 可选 10000001 租户ID
request_app_key String 可选 SKYEYE 区分系统的KEY

响应参数

名称 类型 示例值 描述
action_status Boolean true 是否成功
data SnapshotDTO 返回数据对象
  • └ presigned_url
  • String
  • https://iot-video-daily.oss-cn-shanghai.aliyuncs.com/video/CSSJ_hz_CSJ_WDKSW_XJTEST052001/93007395-2446-4f0a-b77e-9bc451c82971.mp4?Expires=1646189671&OSSAccessKeyId=LTAIymaZMq214Brv&Signature=pWAYWCzbY0gOWxrUJMXqoJhPxwU%3D
  • 快照图片访问地址(有时效)
  • └ record_start_time
  • String
  • 1638173960000
  • 视频录制开始时间
  • └ error_code
  • String
  • 1
  • 错误编码
  • └ ipc_id
  • String
  • CSJ_WDKSW_XJTEST_28AACHF49322413
  • 摄像头ID
  • biz_append_data_dto
  • BizAppendDataDTO
  • {}
  • 附加对象
  • └ code
  • String
  • 1
  • 1~10保留 * 1代表订阅中心
  • └ data
  • String
  • {}
  • 请求的附加数据
  • └ error_msg
  • String
  • 1
  • 错误消息
  • └ record_stop_time
  • String
  • 1638174020000
  • 结束时间
  • └ state_type_code
  • Number
  • 3
  • 状态吗
  • └ tenant_id
  • String
  • 10000001
  • 租户ID
  • └ stop_time
  • Date
  • 1638413671157
  • 结束时间
  • └ start_time
  • Date
  • 1638413671024
  • 开始时间
  • └ id
  • String
  • 58ed60a9-de8a-47a6-a378-8343656d14d1
  • ID
  • organization_dto
  • OrganizationDTO
  • {}
  • 机构对象
  • └ merchant_code
  • String
  • CSSJ
  • 商家编码
  • └ subsidiary_name
  • String
  • 杭州子公司
  • 子公司名称
  • └ enable
  • Number
  • 1
  • 是否启用
  • └ tenant_id
  • String
  • 10000001
  • 租户ID
  • └ bu_code
  • String
  • CSJ_WDKSW_XJTEST052001
  • 门店code
  • └ bu_name
  • String
  • 险峻测试商家仓052101
  • 门钉名称
  • └ subsidiary_code
  • String
  • hz
  • 子公司code
  • └ merchant_name
  • String
  • 测试商家
  • 商家名称
res_success Boolean true 是否成功
msg_info String ok 错误消息
msg_code String 1 错误code

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
WdkIotVideoGetVideoRecordRequest req = new WdkIotVideoGetVideoRecordRequest();
req.setRecordId("uuid32");
req.setTenantId("10000001");
req.setRequestAppKey("SKYEYE");
WdkIotVideoGetVideoRecordResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<wdk_iot_video_get_video_record_response>
    <action_status>true</action_status>
    <data>
        <presigned_url>https://iot-video-daily.oss-cn-shanghai.aliyuncs.com/video/CSSJ_hz_CSJ_WDKSW_XJTEST052001/93007395-2446-4f0a-b77e-9bc451c82971.mp4?Expires=1646189671&amp;OSSAccessKeyId=LTAIymaZMq214Brv&amp;Signature=pWAYWCzbY0gOWxrUJMXqoJhPxwU%3D</presigned_url>
        <record_start_time>1638173960000</record_start_time>
        <error_code>1</error_code>
        <ipc_id>CSJ_WDKSW_XJTEST_28AACHF49322413</ipc_id>
        <biz_append_data_dto>
            <code>1</code>
            <data>{}</data>
        </biz_append_data_dto>
        <error_msg>1</error_msg>
        <record_stop_time>1638174020000</record_stop_time>
        <state_type_code>3</state_type_code>
        <tenant_id>10000001</tenant_id>
        <stop_time>1638413671157</stop_time>
        <start_time>1638413671024</start_time>
        <id>58ed60a9-de8a-47a6-a378-8343656d14d1</id>
        <organization_dto>
            <merchant_code>CSSJ</merchant_code>
            <subsidiary_name>杭州子公司</subsidiary_name>
            <enable>1</enable>
            <tenant_id>10000001</tenant_id>
            <bu_code>CSJ_WDKSW_XJTEST052001</bu_code>
            <bu_name>险峻测试商家仓052101</bu_name>
            <subsidiary_code>hz</subsidiary_code>
            <merchant_name>测试商家</merchant_name>
        </organization_dto>
    </data>
    <res_success>true</res_success>
    <msg_info>ok</msg_info>
    <msg_code>1</msg_code>
</wdk_iot_video_get_video_record_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部