Changes between Version 2 and Version 3 of pcauto_club_4.6.0/api


Ignore:
Timestamp:
12/03/2015 11:54:02 AM (10 years ago)
Author:
liangzhicong
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • pcauto_club_4.6.0/api

    v2 v3  
    3939==== 2.0 车头条详情列表页 ==== 
    4040{{{ 
    41 接口:  
     41接口: /club/cms/channels?pageNo=1&pageSize=20 
    4242说明 : 车头条详情列表页 
    4343 
     
    5555    协议参数说明: 
    5656   ||= 参数名 =||= 类型 =||= 必须 =||= 说明 =|| 
     57   ||pageNo||String||N||页码|| 
     58   ||pageSize||String||N||页面大小|| 
    5759 
    5860 
    5961==== 2.1 文章详情页 ==== 
    6062{{{ 
    61 接口:  
     63接口: /club/cms/articles/文章id?size=18&picRule=2 
    6264说明 : 文章详情页 
    6365 
     
    7577    协议参数说明: 
    7678   ||= 参数名 =||= 类型 =||= 必须 =||= 说明 =|| 
    77  
    78  
    79 ==== 2.2 文章评论页 ==== 
    80 {{{ 
    81 接口:  
     79   ||文章id||String||N||文章id|| 
     80   ||size||String||N||字体大小|| 
     81   ||picRule||String||Y||这个跟帖子里面的一样,请参考帖子页的,wifi下是2,非wifi下是3|| 
     82 
     83==== 2.2 获取文章评论id ==== 
     84{{{ 
     85接口: /club/cmt/get_newest_floor?id=7435149 
    8286说明 : 文章评论页 
    8387 
     
    9599    协议参数说明: 
    96100   ||= 参数名 =||= 类型 =||= 必须 =||= 说明 =|| 
     101   ||id||String||Y||文章id|| 
     102 
     103 
     104==== 2.2.1 文章评论页 ==== 
     105{{{ 
     106接口: /xsp/s/club/v4.7/newTopics.xsp?topicId=13285745 [[BR]] 
     107说明 : 在进入文章页的时候,要通过2.2所描述/club/cmt/get_newest_floor?id=7435149接口获取评论id,再通过此接口获取文章评论数据 
     108 
     109是否分页:是 
     110是否缓存:是 
     111是否登陆:否 
     112 
     113返回结果: 
     114{ 
     115  "total":53,"id":13309550, 
     116  "floor":54,"availableTotal":53, 
     117  "turl":"http://www.pcauto.com.cn/nation/743/7435956.html", 
     118  "url43g":"http://cmt.pcauto.com.cn/topic/3g/a0/r0/t13309550.html", 
     119  "url":"http://cmt.pcauto.com.cn/topic/a0/r0/p1/ps30/t13309550.html" 
     120} 
     121 
     122 
     123后端应用接口: 
     124 
     125 
     126}}} 
     127    协议参数说明: 
     128   ||= 参数名 =||= 类型 =||= 必须 =||= 说明 =|| 
     129   ||= pageNo =||int||= 否 =||= 页数 =|| 
     130   ||= pageSize=||int||= 否 =||= 每页条数 =|| 
     131   ||= topicId =||= string =||= 是 =||=挂评论的话题id =|| 
     132   ||= articleId=||= string =||= 否 =||=文章id=|| 
     133   ||= reverse=||= string =||= 否 =||=是否倒序 =|| 
    97134 
    98135 
     
    107144 
    108145返回结果: 
    109  
    110  
    111 后端应用接口: 
    112  
     146{ 
     147comments: [ 
     148{ 
     149   1: { 
     150          id: "29505789", 
     151          userId: "24059878", 
     152          name: "无名小卒1314", 
     153          floor: "54", 
     154          time: "2015-12-03 11:19:30", 
     155          client: "1", 
     156          content: "车不错,不知道价格会是多少!~" 
     157       }, 
     158   current: "1", 
     159   support: "0", 
     160   expand: false 
     161}, 
     162{ 
     163    1: { 
     164         id: "29505629", 
     165         userId: "0", 
     166         name: "上海市网友", 
     167         floor: "44", 
     168         time: "2015-12-03 10:45:31", 
     169         client: "1", 
     170         content: "Sjwr.t喜k ( 喜 去除 )" 
     171    }, 
     172    2: { 
     173         id: "29505646", 
     174         userId: "0", 
     175         name: "贵州省贵阳市网友", 
     176         floor: "49", 
     177         time: "2015-12-03 11:59:56", 
     178         client: "1", 
     179         content: "好奇去搜了下,刚看了会,立马就撸了" 
     180    }, 
     181    3: { 
     182        id: "29505739", 
     183        userId: "0", 
     184        name: "北京市网友", 
     185        floor: "51", 
     186        time: "2015-12-03 11:03:39", 
     187        client: "1", 
     188        content: "尼玛,这胸,这腿,够我撸一天的。" 
     189    }, 
     190    current: "3", 
     191    support: "0", 
     192    expand: false 
     193}, 
     194hot-comments: [ ], 
     195docUrl: "http://mrobot.pcauto.com.cn/v3/cms/articles/7435956", 
     196pageNo: 1, 
     197pageCount: 3 
     198} 
     199 
     200 
     201后端应用接口: 
     202cmt线上环境:http://cmt.pcauto.com.cn/action/comment/list_new_json.jsp?tId=13285745&arch=0&reverse=0 [[BR]] 
     203             http://cmt.pcauto.com.cn/intf/tophot.jsp?tid=13285745 [[BR]] 
    113204 
    114205}}}