获取主题回复
获取主题回复
接口说明: 获取主题回复列表
接口详情
请求地址:http://demo.xinxiuvip.com/plugin.php?id=xinxiu_network:forum
请求方式: GET
返回格式: JSON\XML /*默认返回JSON格式,如需返回XML格式,请在接口网址后面增加&output=xml参数*/
请求参数(所有参数值均URL加密后传输【注意GBK与UTF8编码区别】)
参数类型是否必含说明示例
token是token令牌1487rJ3_xinxiu_jVyxdJsrWhblH4bmJ_xinxiu_gVq
FiP5RE0rPDjjh6vbTTi_xin_xiu_A3MtXSE4bfzIw0XVnDE
action是接口方法forum_by_tid
tid是主题帖子tid6
start否起始数据编号,默认0,可为空0
limit否返回数量,默认10条,可为空5
sort否排序(DESC为降序、ASC升序)DESC
请求示例(GET)
http://demo.xinxiuvip.com/plugin.php?id=xinxiu_network:forum&token={token令牌}&action=forum_by_tid&tid=6&start=0&limit=5
返回参数(所有接口返回数据含中文时“\u672c\u6846”,请用USC2进行解码)
参数类型是否必含说明示例
code是http状态码200
result是错误信息状态码OK
count是数组成员数5
data是数组
data>>pid是帖子id7
data>>fid是版块id2
data>>tid是主题tid6
data>>authorid是作者uid1
data>>subject是标题
data>>message是回复内容回复1
data>>dateline是回复时间1550927409
data>>position是楼层(主题是1,第一个回帖是2,第二个回帖是3,以此类推)2
data>>counts是搜索结果总条数5
sqltime是页面执行时间(秒)0.00688s
返回示例(JSON)
{
"code": 200,
"result": "OK",
"count": 5,
"data": [{
"pid": "12",
"fid": "2",
"tid": "7",
"authorid": "1",
"subject": "\u6d4b\u8bd5\u53d1\u5e16",
"message": "\u6d4b\u8bd5\u53d1\u5e16\u7684\u5185\u5bb9\u0000\u0000\u0000",
"dateline": "1550932108",
"position": "1"
}, {
"pid": "0",
"fid": "2",
"tid": "7",
"authorid": "1",
"subject": "",
"message": "\u6d4b\u8bd5\u56de\u5e16\u5185\u5bb9",
"dateline": "1550932704",
"position": "2"
}, {
"pid": "13",
"fid": "2",
"tid": "7",
"authorid": "1",
"subject": "",
"message": "\u6d4b\u8bd5\u56de\u5e16\u5185\u5bb9",
"dateline": "1550968135",
"position": "3"
}, {
"pid": "14",
"fid": "2",
"tid": "7",
"authorid": "1",
"subject": "",
"message": "\u6d4b\u8bd5\u56de\u5e16\u5185\u5bb9",
"dateline": "1550968175",
"position": "4"
}, {
"pid": "15",
"fid": "2",
"tid": "7",
"authorid": "1",
"subject": "",
"message": "\u6d4b\u8bd5\u56de\u5e16\u5185\u5bb9",
"dateline": "1550968176",
"position": "5"
}],
"sqltime": "0.0098s"
}
额外说明
无
错误提示码
错误码查询地址:点击访问
BUG提交:点击提交
QQ交流群:281079920
页:
[1]