博客开发接口文档

2017-06-26  本文已影响0人  信马归风
api网址 http://www.lizechao.com/extra_api
请求参数 中 a为方法名
带*的参数为必传参数
所有返回值带有外层返回值

外层返回值

参数 含义
contentData 返回数据
code 状态码 0为正常 负数为不正常
error 错误信息

获取作者额外信息

方法名 :extra_author_data
请求类型:post/get
请求值
参数 含义
*a 方法名
*author_id 作者id
返回值
参数 含义
postCount 文章总数
likeCount 获得喜欢总数

获取文章额外信息

方法名 :extra_post_data
请求类型:post/get
请求值
参数 含义
*a 方法名
*post_id 文章id
返回值
参数 含义
wordCount 文章总数
readCount 获得喜欢总数
likeCount 获得喜欢总数
comments 评论对象列表
评论对象
参数 含义
commentName 评论者名字
commentTime 评论时间
commentContent 评论内容

增加阅读量

方法名 :set_read
请求类型:post/get
请求值
参数 含义
*a 方法名
*post_id 文章id

点赞

方法名 :set_like
请求类型:post/get
请求值
参数 含义
*a 方法名
*post_id 文章id

评论

方法名 :add_comment
请求类型:post/get
请求值
参数 含义
*a 方法名
*post_id 文章id
*comment_content 评论者内容
*comment_name 评论者名
*commentEmail 评论者email
上一篇 下一篇

猜你喜欢

热点阅读