文档中心 > API类目 > 淘宝大学API

alibaba.tbdx.saasclass.ebook.item.get (电子书内容获取)

电子书内容获取

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
query EBookTopQuery 必须 query
  • └ seller_open_uid
  • String
  • 必须
  • AAHc5d-EAAeGwJWdwSHnIQLz
  • 卖家openUid
  • └ item_id
  • Number
  • 必须
  • 412313
  • 商品ID

响应参数

名称 类型 示例值 描述
trace_id String 2106cfa716390164952178186e479f trace_id
data EBookDTO 电子书
  • └ gmt_modified
  • Date
  • 2022-03-16 14:00:00
  • 编辑时间
  • └ name
  • String
  • 名称
  • 名称
  • └ isbn
  • String
  • isbn
  • isbn
  • └ author
  • String
  • 李四
  • author
  • └ publisher
  • String
  • 杭州出版社
  • 出版社
  • └ publish_time
  • String
  • 1511217898
  • 出版时间
  • └ category_id
  • Number
  • 412313
  • 类目ID
  • └ description
  • String
  • 简介
  • 简介
  • └ price
  • Number
  • 1000
  • 定价(单位:分)
  • └ try_ratio
  • Number
  • 2
  • 试看比例:0~100
  • └ epub_url
  • String
  • https://xxxxxx
  • epub文件地址
  • └ cover_url
  • String
  • https://xxxxxx
  • 封面图地址
  • └ item_id
  • Number
  • 412412
  • 商品ID
  • └ audit_status
  • Number
  • 0
  • 审核状态:3-待审核(需要三方审核内容),1-已通过,4-拒绝
  • auctions
  • AuctionDTO []
  • 宝贝
  • └ auction_id
  • Number
  • 41241245235
  • 宝贝ID
  • └ auction_name
  • String
  • 宝贝名称
  • 宝贝名称
  • └ auction_status
  • Number
  • 0
  • 宝贝状态:0-正常,-1-用户删除,-2-用户下架,-3-小二下架,-4-小二删除,-5-从未上架,-9-CC
  • └ cover_urls
  • String
  • https://xxxxx
  • 宝贝主图
  • └ price
  • Number
  • 100
  • 价格
  • └ seller_open_uid
  • String
  • AAHM5d-EAAeGwJedwSGumAua
  • 卖家openUid
  • seller_info
  • SellerDTO
  • 卖家信息
  • └ shop_name
  • String
  • 淘宝教育官方店
  • 店铺名称
  • └ seller_open_uid
  • String
  • AAHM5d-EAAeGwJedwSGumAua
  • 卖家openUid(内容商家ID)
  • └ gmt_create
  • Date
  • 2022-03-16 14:00:00
  • 创建时间
error_msg String 参数错误 错误
status Boolean true 状态:成功/失败

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaTbdxSaasclassEbookItemGetRequest req = new AlibabaTbdxSaasclassEbookItemGetRequest();
AlibabaTbdxSaasclassEbookItemGetRequest.EBookTopQuery obj1 = new AlibabaTbdxSaasclassEbookItemGetRequest.EBookTopQuery();
obj1.setSellerOpenUid("AAHc5d-EAAeGwJWdwSHnIQLz");
obj1.setItemId(412313L);
req.setQuery(obj1);
AlibabaTbdxSaasclassEbookItemGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_tbdx_saasclass_ebook_item_get_response>
    <trace_id>2106cfa716390164952178186e479f</trace_id>
    <data>
        <gmt_modified>2022-03-16 14:00:00</gmt_modified>
        <name>名称</name>
        <isbn>isbn</isbn>
        <author>李四</author>
        <publisher>杭州出版社</publisher>
        <publish_time>1511217898</publish_time>
        <category_id>412313</category_id>
        <description>简介</description>
        <price>1000</price>
        <try_ratio>2</try_ratio>
        <epub_url>https://xxxxxx</epub_url>
        <cover_url>https://xxxxxx</cover_url>
        <item_id>412412</item_id>
        <audit_status>0</audit_status>
        <auctions>
            <auction_d_t_o>
                <auction_id>41241245235</auction_id>
                <auction_name>宝贝名称</auction_name>
                <auction_status>0</auction_status>
                <cover_urls>https://xxxxx</cover_urls>
                <price>100</price>
                <seller_open_uid>AAHM5d-EAAeGwJedwSGumAua</seller_open_uid>
                <seller_info>
                    <shop_name>淘宝教育官方店</shop_name>
                </seller_info>
            </auction_d_t_o>
        </auctions>
        <seller_open_uid>AAHM5d-EAAeGwJedwSGumAua</seller_open_uid>
        <gmt_create>2022-03-16 14:00:00</gmt_create>
    </data>
    <error_msg>参数错误</error_msg>
    <status>true</status>
</alibaba_tbdx_saasclass_ebook_item_get_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

返回
顶部