注意:以下文档只适用于TOP接口,请谨慎使用!

文档中心 > API类目 > 书旗内容文巢

alibaba.shuqi.content.backend.drama.getcategorylist (书旗短剧-分类筛选列表)

查询短剧漫剧分类筛选列表

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
emp_id String 可选 285845 员工id
emp_name String 可选 张*硕 员工名字
email String 可选 1 test123@alibaba-inc.com
top_class Number 必须 1314 顶级分类(1314-短剧,1500-漫剧)
drama_channel Number 可选 1 频道(0全部,1-男频,2-女频,3通用)

响应参数

名称 类型 示例值 描述
result CommonResponse 系统自动生成
  • └ state
  • Number
  • 200
  • 状态
  • └ message
  • String
  • success
  • 返回值
  • data
  • DramaCategoryListResponse
  • 系统自动生成
  • list
  • CategoryTreeItemDTO []
  • 结果列表
  • └ pid
  • Number
  • 1
  • 上一级分类id
  • └ category_id
  • Number
  • 1
  • 分类ID
  • └ category_name
  • String
  • 都市
  • 分类名称
  • └ category_type
  • String
  • sec_category
  • 分类类型
  • └ status
  • Number
  • 1
  • 状态
  • └ bg_url
  • String
  • http://123.com
  • 背景图url
  • └ allow_bind_book
  • Boolean
  • true
  • 是否支持绑定书籍(剧)
  • └ allow_post
  • Boolean
  • true
  • 是否可发布
  • └ total
  • Number
  • 100
  • 结果总数

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaShuqiContentBackendDramaGetcategorylistRequest req = new AlibabaShuqiContentBackendDramaGetcategorylistRequest();
req.setEmpId("285845");
req.setEmpName("张*硕");
req.setEmail("1");
req.setTopClass(1314L);
req.setDramaChannel(1L);
AlibabaShuqiContentBackendDramaGetcategorylistResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_shuqi_content_backend_drama_getcategorylist_response>
    <result>
        <state>200</state>
        <message>success</message>
        <data>
            <list>
                <category_tree_item_d_t_o>
                    <pid>1</pid>
                    <category_id>1</category_id>
                    <category_name>都市</category_name>
                    <category_type>sec_category</category_type>
                    <status>1</status>
                    <bg_url>http://123.com</bg_url>
                    <allow_bind_book>true</allow_bind_book>
                    <allow_post>true</allow_post>
                </category_tree_item_d_t_o>
            </list>
            <total>100</total>
        </data>
    </result>
</alibaba_shuqi_content_backend_drama_getcategorylist_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

返回
顶部