文档中心 > API类目 > 多媒体平台API

taobao.interactive.list.getbyuser (用户获取视频互动列表)

根据用户来获取用户编辑的互动列表

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
current_page Number 可选 1
  • 默认值:1
  • 当前页
    page_size Number 可选 10
  • 默认值:10
  • 每页多少

    响应参数

    名称 类型 示例值 描述
    result Result result result
    • result_code
    • ResultCode
    • ResultCode
    • 错误
    • └ error_code
    • Number
    • 0
    • 错误代码
    • └ info
    • String
    • 成功
    • 错误描述
    • └ success
    • Boolean
    • true
    • 是否成功
    • model
    • PageQueryResult
    • PageQueryResult
    • model
    • └ total
    • Number
    • 12
    • 总数
    • result_list
    • Resultlist []
    • resultList
    • resultList
    • └ id
    • Number
    • 2323
    • 互动id
    • └ video_url
    • String
    • http://cloud.video.taobao.com/play/u/2200264038/p/2/e/6/t/1/44938686.mp4
    • 视频链接,需要unicode转换
    • └ cover_url
    • String
    • https://img.alicdn.com/imgextra/i1/6000000003368/TB2TF7SXhIa61BjSsziXXak4FXa_!!0-0-tbvideo.jpg
    • 封面图url
    • └ duration
    • Number
    • 30
    • 视频时长 单位秒
    • └ title
    • String
    • 我是一个互动视频
    • 视频标题
    • └ video_status
    • Number
    • 1
    • 视频状态,1有效;0删除

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    InteractiveListGetbyuserRequest req = new InteractiveListGetbyuserRequest();
    req.setCurrentPage(1L);
    req.setPageSize(10L);
    InteractiveListGetbyuserResponse rsp = client.execute(req, sessionKey);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <interactive_list_getbyuser_response>
        <result>
            <result_code>
                <error_code>0</error_code>
                <info>成功</info>
            </result_code>
            <success>true</success>
            <model>
                <total>12</total>
                <result_list>
                    <resultlist>
                        <id>2323</id>
                        <video_url>http://cloud.video.taobao.com/play/u/2200264038/p/2/e/6/t/1/44938686.mp4</video_url>
                        <cover_url>https://img.alicdn.com/imgextra/i1/6000000003368/TB2TF7SXhIa61BjSsziXXak4FXa_!!0-0-tbvideo.jpg</cover_url>
                        <duration>30</duration>
                        <title>我是一个互动视频</title>
                        <video_status>1</video_status>
                    </resultlist>
                </result_list>
            </model>
        </result>
    </interactive_list_getbyuser_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

    返回
    顶部