接口地址:http://www.djdkx.com/open/s/id
比如:http://www.djdkx.com/open/s/1 显示ID为1的内容
返回结果:
结果1:说明不存在ID为几的内容,或者ID为几的内容没有通过审核
<?xml version='1.0' encoding='utf-8'?>
<kaixin>内容不存在或者未审核通过</kaixin>
结果2:
<?xml version='1.0' encoding='utf-8'?>
<kaixin id='53' good='11' bad='2' tag='笑话 冷笑话 ' pubDate='2010-08-25 11:56' official='true' ip='127.0.0.1' userName='vottot'>
<content>笑话内容</content>
<comments commentNum='12'>
<comment id='8' subTime='2010-08-26 18:34' content='评论1'/>
<comment id='9' subTime='2010-08-26 18:34' content='评论2' />
</comments>
</kaixin>
返回结果说明:
id:内容ID
good:支持该内容的人数
bad:反对该内容的人数
tag:话题,标签
pubDate:发布时间
official:是否经过官方认证
ip:发布者IP地址
userName:用户名,如果用户名为:anonymous,代表匿名用户
content:为完整内容
comments :该内容所有的评论
commentNum:评论总数
comment :评论
id:评论ID
subTime:评论时间
content:评论内容
评论没有加分页功能,到后期根据评论的数量再决定是否添加分页功能。