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

alibaba.shuqi.content.backend.cpsetting.new.info (CP配置详情)

CP配置详情

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
cpid Number 必须 10091 cp的id
class_type Number 必须 1 书籍类型

响应参数

名称 类型 示例值 描述
data Data 数据
  • └ book_info_str
  • String
  • {"info1": "data1", "info2": "data2"}
  • 书籍信息
  • └ chapter_info_str
  • String
  • {"info1": "detail1", "info2": "detail2"}
  • 章节信息
  • └ status_desc
  • String
  • Middle Priority
  • 状态
  • └ cp_id
  • Number
  • 101
  • cpId
  • └ cp_name
  • String
  • Sample CP Name
  • cp名称
  • └ sync_encrypt_key
  • String
  • sync_encryption_key_123
  • 同步加密kEY
  • └ encrypt_key
  • String
  • encryption_key_123
  • 加密kEY
  • └ url_type
  • Number
  • 1
  • url类型
  • └ book_list_str
  • String
  • {"book1": "value1", "book2": "value2"}
  • 书籍列表
  • └ encrypt
  • Number
  • 1
  • 是否加密
  • └ id
  • Number
  • 1
  • 标识符
  • └ chapter_list_str
  • String
  • [{"chapter1": "content1"}, {"chapter2": "content2"}]
  • 章节列表
  • └ class_type
  • Number
  • 1
  • 类型
  • └ email
  • String
  • example@example.com
  • 邮箱
  • └ status
  • Number
  • 2
  • 状态
state String 200 c状态码
message String success 返回信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaShuqiContentBackendCpsettingNewInfoRequest req = new AlibabaShuqiContentBackendCpsettingNewInfoRequest();
req.setCpid(10091L);
req.setClassType(1L);
AlibabaShuqiContentBackendCpsettingNewInfoResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_shuqi_content_backend_cpsetting_new_info_response>
    <data>
        <book_info_str>{&quot;info1&quot;: &quot;data1&quot;, &quot;info2&quot;: &quot;data2&quot;}</book_info_str>
        <chapter_info_str>{&quot;info1&quot;: &quot;detail1&quot;, &quot;info2&quot;: &quot;detail2&quot;}</chapter_info_str>
        <status_desc>Middle Priority</status_desc>
        <cp_id>101</cp_id>
        <cp_name>Sample CP Name</cp_name>
        <sync_encrypt_key>sync_encryption_key_123</sync_encrypt_key>
        <encrypt_key>encryption_key_123</encrypt_key>
        <url_type>1</url_type>
        <book_list_str>{&quot;book1&quot;: &quot;value1&quot;, &quot;book2&quot;: &quot;value2&quot;}</book_list_str>
        <encrypt>1</encrypt>
        <id>1</id>
        <chapter_list_str>[{&quot;chapter1&quot;: &quot;content1&quot;}, {&quot;chapter2&quot;: &quot;content2&quot;}]</chapter_list_str>
        <class_type>1</class_type>
        <email>example@example.com</email>
        <status>2</status>
    </data>
    <state>200</state>
    <message>success</message>
</alibaba_shuqi_content_backend_cpsetting_new_info_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

返回
顶部