接口文档

book/getChapterDetail

返回首页

book/getChapterDetail

查看章节详情

URL

http://topenapi.tadu.com:8098/api/getChapterDetail

支持格式

JSON

HTTP请求方式

POST

是否需要身份验证


访问授权限制

访问级别:高级接口(需要授权)

请求参数

  必选 类型及范围 说明
key true Integer 密钥
cpid true Integer CP书籍ID
copyrightid true Integer CP版权ID
chapterid true Integer CP章节ID

注意事项

  • 注:请求需要添加  http header   Content-Type:text/plain

返回结果

JSON示例

{"code":0,"message":"success!","result":{" copyrightid ":"1","title": "第一章","content":"章节内容"," chapternum":"1"}}

关于错误返回值与错误代码,参见 错误代码说明

返回字段说明

返回值字段 字段类型 字段说明
code Integer 0 成功;非0 失败
message string message 是对code的解释
result string 返回给CP的结果
copyrightid Integer CP章节ID
title string 章节名称
content string 章节内容
chapternum Integer 章节序号

其他



Language: [[{{{2/uri}}}|中文]]