wiki:pcauto_pconline_3.4.0/comment_intf

Version 25 (modified by fuxingfang, 13 years ago) (diff)

--

1.1  http://mrobot.pconline.com.cn/v3/cmt/new_topics/[topicId]

评论接口列表

 HTTP请求方式:get
    是否需要登录:否
    提交参数:
            topicId: 评论id 
            articleId: 文章id

返回数据:
{
  "comments": [
    {  //没有引用其他评论的评论
      "1": { //表达其引用关系的key
        "name": "不是网易的江苏省盐城市网友 帅气飞扬: ",  //用户名称
        "floor": "1737",  //楼层
        "time": "2013-01-05 09:05:40",  //时间
        "content": "内容过于暴力,已和谐" //内容
      },
      "current":"1",               //当前最外层引用标识
      "support":"10086"       //"顶"数量
    },
    {
      "3": {
        "name": "不是网易的江苏省盐城市网友 帅气飞扬: ",
        "floor": "1737",
        "time": "2013-01-05 09:05:40",
        "content": "内容过于暴力,已和谐"
      },
      "2": {
        "name": "不是网易的江苏省盐城市网友 帅气飞扬: ",
        "floor": "1737",
        "time": "2013-01-05 09:05:40",
        "content": "内容过于暴力,已和谐"
      },
      "1": {
        "name": "不是网易的江苏省盐城市网友 帅气飞扬: ",
        "floor": "1737",
        "time": "2013-01-05 09:05:40",
        "content": "内容过于暴力,已和谐"
      },
      "4": {
        "name": "不是网易的江苏省盐城市网友 帅气飞扬: ",
        "floor": "1737",
        "time": "2013-01-05 09:05:40",
        "content": "内容过于暴力,已和谐"
      },
      "current":"4",
      "support":"10086"
    }
  ],
  "hot-comments": [
    {  //没有引用其他评论的评论
      "1": { //表达其引用关系的key
        "name": "不是网易的江苏省盐城市网友 帅气飞扬: ",  //用户名称
        "floor": "1737",  //楼层
        "time": "2013-01-05 09:05:40",  //时间
        "content": "内容过于暴力,已和谐" //内容
      },
      "current":"1"
    }
  ],
  "docUrl": "http://im_an_artical"
}

备注:

1.2  http://mrobot.pconline.com.cn/v3/cms/articles/${article-id}?articleTemplate=3.4.0&picRule=0

新的文章模板

    HTTP请求方式:get
    是否需要登录:否

    参数说明:
1,picRule,图片的显示规则,包含0,1和2三个值。为0时按照原有规则;为1时不显示图片只显示链接,点击链接显示大图;为2时直接显示大图。
2,当articleTemplate=3.4.0时,把底部的页码选择框去掉;在文章的源代码修改html_meta标签的内容,加入pages字段代表页码,如下:
/*@_HTML_META_START_
{
    "title":"单核/双核任你选!3000元内智能手机推荐",
    "preView":"一般来说,消费者都会根据自己的经济条件,在购买手机之前做一个预算。但在实际选购过",
    "summary":"一般来说,消费者都会根据自己的经济条件,在购买手机之前做一个预算。但在实际选购过程中,难免会出现超预算的问题。其中一个很重要的原因就是所喜欢的机型属于旗舰产品,售价比较高。在预算吃紧的情况下,退而求其次也是一种不错的选择。笔者为大家介绍四款媲美高端机型的产品。它们分别是LG Optimus LTE2、HTC One S、诺基亚Lumia 900(改版机)以及联想K800,注重高性能而又无法承受高价位的网友可以参考一下。",
    "url":"http://mobile.pconline.com.cn/guide/selected/1207/2847405.html",
    "topicUrl":"http://mobile.pconline.com.cn/guide/1207/2847405.html",
    "pageNo":1,
    "pageCount":4,
    "firstPic":"http://img0.pconline.com.cn/pconline/1207/03/2847405_P.jpg",
    "pages":[
        " LG F160L:配备2GB运行内存",
        "HTC One S:性能堪比四核",
        "诺基亚900:顶级WP7智能手机",
        "联想K800:首款上市的英特尔X86手机"
    ]
}

_HTML_META_END_@*/

1.3  http://mrobot.pconline.com.cn/configs/pconline_v2_cms_iphone_channel_tree &  http://mrobot.pcauto.com.cn/configs/pcauto_v2_cms_iphone_channel_tree

行情城市列表

HTTP请求方式:get
    是否需要登录:否
    提交参数:无

备注:格式照旧

1.4  http://mrobot.pconline.com.cn/v3/cmt/topics/get_newest_floor?url=${文章url}

评论新接口,返回最新楼数

返回数据:
{
    "total":49,
    "newest_floor":"1",
    "id":12975470,
    "turl":"http://mobile.pconline.com.cn/guide/1207/2847405.html",
    "url43g":"http://cmt.pconline.com.cn/topic/3g/a0/r0/t12975470.html",
    "url":"http://cmt.pconline.com.cn/topic/a0/r0/p1/ps30/t12975470.html"
}


参数说明:
    url:文章的url


最新楼数的数据可以通过以下两个接口拿到
http://cmt.pconline.com.cn/action/topic/get_data.jsp?url=http://mobile.pconline.com.cn/guide/1207/2847405.html
http://cmt.pconline.com.cn/intf/countcmt.jsp?tids=12975470

Attachments