Changes between Version 2 and Version 3 of pcauto_4.4.0/interface


Ignore:
Timestamp:
07/10/2014 11:22:35 AM (12 years ago)
Author:
hejingdong
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • pcauto_4.4.0/interface

    v2 v3  
    116116 
    117117}}} 
     118 
     119=== 2.2 [=#point202 文章终端]=== 
     120{{{ 
     121 备注:获取文章 
     122 请求URL:http://mrobot.pcauto.com.cn/v3/cms/articles/4147040?articleTemplate=3.6.0&size=18&app=pcautobrowser&picRule=2&template=(null)&channelId=4&serialId=0 
     123 HTTP请求方式:get 
     124 是否需要登录:否 
     125 返回格式:html页面 
     126 缓存方式:无 
     127 缓存时间:1小时 
     128 请求参数: 
     129        文章ID 
     130        articleTemplate=3.6.0 
     131        size:字体大小 
     132        app=pcautobrowser 
     133        picRule:请求网络方式:0 非wifi; 2  wifi访问 
     134        pageNo:页码 
     135        template:模板 
     136        channelId:栏目ID 
     137        serialId:车系ID 
     138        date:文章直播时间(说明:当参数template=live时,传递date,否则不传) 
     139        阅读模式:无参数 白天;night 晚间 
     140 请求后端URL: 
     141        helper_uri_articles_3?id=4147040 
     142 请求后端参数: 
     143        id:4147040(从id_0取出) 
     144 
     1454.4版本增加协议: 
     146添加订阅: 
     147pcaction://addSubscribe/id?serialName=xxx&price=xxx&image=xxx 
     148pcautobrowser://serial/id 
     149 
     150}}} 
     151 
     152=== 2.3 [=#point203 获取评论接口]=== 
     153{{{ 
     154备注:获取文章评论 
     155 请求URL:http://mrobot.pcauto.com.cn/v3/cmt/new_topics/13118127?articleId=4147040&reverse=0&pageNo=1&pageSize=20 
     156 HTTP请求方式:get 
     157 是否需要登录:否 
     158 返回格式:json 
     159 缓存方式:无 
     160 缓存时间:无 
     161 请求参数: 
     162        topicId:主题ID 
     163        articleId:文章ID 
     164        reverse:排序方式:0  倒序; 1 正序 
     165        pageNo:页码 
     166        pageSize:每页行数 
     167        pic:是否图片评论:0或者不填否,1是 
     168 请求后端URL: 
     169        http://cmt.pcauto.com.cn/action/comment/list_new_json.jsp?tId=13118127&arch=0&reverse=0&pageSize=20 
     170        http://cmt.pcauto.com.cn/intf/tophot.jsp?tid=13118127 
     171 请求后端参数: 
     172        tid:主题ID(从id_0取出) 
     173        reverse:排序方式:0  倒序; 1 正序 
     174        pageSize:每页行数 
     175返回参数: 
     176{ 
     177  "comments": [ 
     178    { 
     179      "1": { 
     180        "client": "1", 
     181        "content": "\u6211\u7684\u798F\u7F8E\u6765323\u5F00\u4E86\u5341\u5E74\u4E86\uFF0C\u8FD8\u5728\u7528\uFF0C\u8D28\u91CF\u6760\u6760\u7684", 
     182        "floor": "113", 
     183        "id": "27265992", 
     184        "name": "\u5C71\u4E1C\u7701\u9752\u5C9B\u5E02\u7F51\u53CB", 
     185        "time": "2014-07-08 09:50:03", 
     186        "userId": "0" 
     187      }, 
     188      "current": "1", 
     189      "expand": false, 
     190      "support": "0" 
     191    }, 
     192    { 
     193      "1": { 
     194        "client": "1", 
     195        "content": "\u6211\u7684\u798F\u7F8E\u6765323\u5F00\u4E86\u5341\u5E74\u4E86\uFF0C\u8FD8\u5728\u7528\uFF0C\u8D28\u91CF\u6760\u6760\u7684", 
     196        "floor": "112", 
     197        "id": "27265870", 
     198        "name": "\u5C71\u4E1C\u7701\u9752\u5C9B\u5E02\u7F51\u53CB", 
     199        "time": "2014-07-08 09:37:55", 
     200        "userId": "0" 
     201      }, 
     202      "current": "1", 
     203      "expand": false, 
     204      "support": "0" 
     205    } 
     206  ], 
     207  "pageCount": 6, 
     208  "pageNo": 1 
     209} 
     210}}} 
     211 
     212=== 2.3.1 [=#point2031 回复文章评论]=== 
     213{{{ 
     214备注:回复文章评论 
     215 请求URL:http://cmt.pcauto.com.cn/action/comment/create_utf8.jsp 
     216 HTTP请求方式:post 
     217 是否需要登录:否 
     218 返回格式:json 
     219 缓存方式:无 
     220 缓存时间:无 
     221 请求参数: 
     222        topicId:主题ID 
     223        topicUrl:主题url 
     224        articleTitle:文章标题 
     225        content:回复内容 
     226        name:用户名 
     227        是否匿名:0 否 
     228        replyFloor:回复楼层 
     229        articleId:文章ID 
     230}}} 
     231 
     232=== 2.4 [=#point204 热门对比]=== 
     233{{{ 
     234备注:热门对比 
     235 请求URL: 
     236 HTTP请求方式:get 
     237 是否需要登录:否 
     238 返回格式:HTML页面 
     239 缓存方式:无 
     240 缓存时间:无 
     241 请求参数: 
     242        sid:车系id 
     243        night:有此参数为夜间模式,否则为日间模式 
     244点击对比按钮,跳转协议 
     245pcaction://hot-pk/?id1=xx&id2=xx&name1=xxx&name2=xxx 
     246}}} 
     247 
     248=== 2.5 [=#point205 精准选车条件]=== 
     249{{{ 
     250备注:精准选车条件 
     251 请求URL: 
     252         v4.3之前使用此接口:http://mrobot.pcauto.com.cn/v3/price/models/criterionv36?v=4.0.0 
     253         v4.3之后使用此接口:http://mrobot.pcauto.com.cn/v3/price/models/criterionv36?v=4.3.0 
     254 HTTP请求方式:get 
     255 是否需要登录:否 
     256 返回格式:json 
     257 缓存方式:无 
     258 缓存时间:7天 
     259 请求参数: 
     260        v:版本号,v有两个可选值,分别为4.0.0、4.3.0 
     261 请求后端URL: 
     262        http://ks.pcauto.com.cn/search.jsp?q=state:1&returnType=json&appName=auto_price&perPage=0 
     263        &clustered=cluster_price,cluster_brand,cluster_std_displacement,cluster_kind,cluster_gearbox 
     264 
     2654.4版本修改: 
     266返回结果增加,显示更多的条件 
     267}}} 
     268 
     269=== 2.6 [=#point206 视频分类]=== 
     270{{{ 
     271备注:视频分类 
     272 请求URL: 
     273 
     274 HTTP请求方式:get 
     275 是否需要登录:否 
     276 返回格式:json 
     277 缓存方式:无 
     278 缓存时间: 
     279 请求参数: 
     280返回参数: 
     281{ 
     282  types:[ 
     283     { 
     284        id:1, 
     285        name:原创视频 
     286     }, 
     287     { 
     288        id:2, 
     289        name:新车视频 
     290     }, 
     291     { 
     292        id:3, 
     293        name:娱乐百态 
     294     } 
     295  ] 
     296} 
     297}}} 
     298 
     299=== 2.6.1 [=#point2061 价格范围]=== 
     300{{{ 
     301备注:价格范围 
     302 请求URL: 
     303 
     304 HTTP请求方式:get 
     305 是否需要登录:否 
     306 返回格式:json 
     307 缓存方式:无 
     308 缓存时间: 
     309 请求参数: 
     310返回参数: 
     311{ 
     312  prices:[ 
     313     { 
     314        id:1, 
     315        name:10万<= 
     316     }, 
     317     { 
     318        id:2, 
     319        name:10-15万 
     320     }, 
     321     { 
     322        id:3, 
     323        name:15-20万 
     324     } 
     325  ] 
     326} 
     327}}} 
     328 
     329=== 2.6.2 [=#point2062 用车宝典]=== 
     330{{{ 
     331备注:用车宝典 
     332 请求URL: 
     333 
     334 HTTP请求方式:get 
     335 是否需要登录:否 
     336 返回格式:json 
     337 缓存方式:无 
     338 缓存时间: 
     339 请求参数: 
     340返回参数: 
     341{ 
     342  sections:[ 
     343     { 
     344        id:1, 
     345        name:驾驶技巧 
     346        sections:[ 
     347           { 
     348              id:4 
     349              name:恶劣天气驾驶技巧 
     350              sections:[ 
     351                 { 
     352                   id:4 
     353                   name:下雪怎么开车 
     354                } 
     355           } 
     356        ] 
     357     } 
     358  ] 
     359} 
     360}}} 
     361 
     362=== 2.6.3 [=#point2063 新车上市]=== 
     363{{{ 
     364备注:新车上市 
     365 请求URL: 
     366 
     367 HTTP请求方式:get 
     368 是否需要登录:否 
     369 返回格式:json 
     370 缓存方式:无 
     371 缓存时间: 
     372 请求参数: 
     373返回参数: 
     374{ 
     375  "coming": 
     376  { 
     377    id 
     378    name 
     379  } 
     380  "recently": 
     381  { 
     382        id 
     383    name 
     384  } 
     385} 
     386}}} 
     387 
     388=== 2.7 [=#point207 资讯栏目]=== 
     389{{{ 
     390备注:资讯栏目 
     391 请求URL:http://mrobot.pcauto.com.cn/v2/cms/channels/1 
     392 HTTP请求方式:get 
     393 是否需要登录:否 
     394 返回格式:json 
     395 缓存方式:无 
     396 缓存时间:5分钟 
     397 请求参数: 
     398        栏目ID 
     399        省份pro和城市city // 当栏目id为55555时该参数有效 
     400 
     4014.4版本修改: 
     402新增“游记”栏目(ID 000048723) 和 “赛事”栏目(000058522),位置放在“用车”后面 
     403}}} 
     404 
     405=== 2.7.1 [=#point207 视频栏目列表]=== 
     406{{{ 
     407备注:视频栏目列表 
     408 请求URL: 
     409 HTTP请求方式:get 
     410 是否需要登录:否 
     411 返回格式:json 
     412 缓存方式:无 
     413 缓存时间: 
     414 请求参数: 
     415返回结果: 
     416{ 
     417  "articleList": [ 
     418    { 
     419      "id": "4254001", 
     420      "pubDate": "2014-04-18", 
     421      "title": "What is My Car? 最适合的才最好", 
     422      "url": "http://www.pcauto.com.cn/news/425/4254001.html" 
     423    }, 
     424    { 
     425      "id": "3683314", 
     426      "pubDate": "2013-12-31", 
     427      "title": "戴姆勒Car2Share驾临鹏城 腾讯乐享创新出行", 
     428      "url": "http://www.pcauto.com.cn/news/368/3683314.html" 
     429    } 
     430  ], 
     431  "curPage": 1, 
     432  "perPage": 100, 
     433  "start": 1, 
     434  "statistic": { 
     435    "cluster_channel": [ 
     436      "新闻动态_41" 
     437    ] 
     438  }, 
     439  "time": 0, 
     440  "total": 41 
     441} 
     442 
     443}}} 
     444 
     445=== 2.7.2 [=#point207 导购栏目列表]=== 
     446{{{ 
     447备注:导购栏目列表 
     448 请求URL: 
     449 HTTP请求方式:get 
     450 是否需要登录:否 
     451 返回格式:json 
     452 缓存方式:无 
     453 缓存时间: 
     454 请求参数: 
     455返回结果: 
     456{ 
     457  "articleList": [ 
     458    { 
     459      "id": "4254001", 
     460      "pubDate": "2014-04-18", 
     461      "title": "What is My Car? 最适合的才最好", 
     462      "url": "http://www.pcauto.com.cn/news/425/4254001.html" 
     463    }, 
     464    { 
     465      "id": "3683314", 
     466      "pubDate": "2013-12-31", 
     467      "title": "戴姆勒Car2Share驾临鹏城 腾讯乐享创新出行", 
     468      "url": "http://www.pcauto.com.cn/news/368/3683314.html" 
     469    } 
     470  ], 
     471  "curPage": 1, 
     472  "perPage": 100, 
     473  "start": 1, 
     474  "statistic": { 
     475    "cluster_channel": [ 
     476      "新闻动态_41" 
     477    ] 
     478  }, 
     479  "time": 0, 
     480  "total": 41 
     481} 
     482}}} 
     483 
     484=== 2.7.3 [=#point207 用车栏目列表]=== 
     485{{{ 
     486备注:用车栏目列表 
     487 请求URL: 
     488 HTTP请求方式:get 
     489 是否需要登录:否 
     490 返回格式:json 
     491 缓存方式:无 
     492 缓存时间: 
     493 请求参数: 
     494返回结果: 
     495{ 
     496  "articleList": [ 
     497    { 
     498      "id": "4254001", 
     499      "pubDate": "2014-04-18", 
     500      "title": "What is My Car? 最适合的才最好", 
     501      "url": "http://www.pcauto.com.cn/news/425/4254001.html" 
     502    }, 
     503    { 
     504      "id": "3683314", 
     505      "pubDate": "2013-12-31", 
     506      "title": "戴姆勒Car2Share驾临鹏城 腾讯乐享创新出行", 
     507      "url": "http://www.pcauto.com.cn/news/368/3683314.html" 
     508    } 
     509  ], 
     510  "curPage": 1, 
     511  "perPage": 100, 
     512  "start": 1, 
     513  "statistic": { 
     514    "cluster_channel": [ 
     515      "新闻动态_41" 
     516    ] 
     517  }, 
     518  "time": 0, 
     519  "total": 41 
     520} 
     521}}} 
     522 
     523=== 2.7.1 [=#point207 新车栏目列表]=== 
     524{{{ 
     525备注:新车栏目列表 
     526 请求URL: 
     527 HTTP请求方式:get 
     528 是否需要登录:否 
     529 返回格式:json 
     530 缓存方式:无 
     531 缓存时间: 
     532 请求参数: 
     533返回结果: 
     534{ 
     535  "modelId": 424,//该车系第一个车型 
     536  "modelName": “宝马3系”,//该车系第一个车型 
     537  "serialId": 354, 
     538  "serialName": "马自达6", 
     539  "price": "28.3-66.2万", 
     540  "image": "http://img.pconline.com.cn/images/upload/upc/tx/auto5/1311/05/c0/28324073_1383616337906_270x202.jpg", 
     541  "type":1新车,2改款 
     542} 
     543}}} 
     544 
     545=== 2.8 [=#point208 判断文章是否已经收藏]=== 
     546{{{ 
     547 备注:判断文章是否已经收藏 
     548 请求URL: 
     549 HTTP请求方式:post 
     550 是否需要登录:是 
     551 返回格式:json 
     552 缓存方式:无 
     553 缓存时间:无 
     554 请求参数: 
     555        common_session_id:用户登陆后获得的认证id 
     556        aid:文章id 
     557 返回参数:如果已经登陆并且已经收藏,返回收藏id,否则返回-1 
     558}}} 
     559 
     560 
     561=== 2.8.1 [=#point2081 判断车系是否已经收藏]=== 
     562{{{ 
     563 备注:判断车系是否已经收藏 
     564 请求URL: 
     565 HTTP请求方式:post 
     566 是否需要登录:是 
     567 返回格式:json 
     568 缓存方式:无 
     569 缓存时间:无 
     570 请求参数: 
     571        common_session_id:用户登陆后获得的认证id 
     572        sid:车系id 
     573 返回参数:如果已经登陆并且已经收藏,返回收藏id,否则返回-1 
     574}}} 
     575 
     576 
     577=== 2.8.1 [=#point2081 判断车系是否已经收藏]=== 
     578{{{ 
     579 备注:判断车系是否已经收藏 
     580 请求URL: 
     581 HTTP请求方式:post 
     582 是否需要登录:是 
     583 返回格式:json 
     584 缓存方式:无 
     585 缓存时间:无 
     586 请求参数: 
     587        common_session_id:用户登陆后获得的认证id 
     588        sid:车系id 
     589 返回参数:如果已经登陆并且已经收藏,返回收藏id,否则返回-1 
     590}}} 
     591 
     592 
     593=== 2.8.2 [=#point2082 判断车型是否已经收藏]=== 
     594{{{ 
     595 备注:判断车型是否已经收藏 
     596 请求URL: 
     597 HTTP请求方式:post 
     598 是否需要登录:是 
     599 返回格式:json 
     600 缓存方式:无 
     601 缓存时间:无 
     602 请求参数: 
     603        common_session_id:用户登陆后获得的认证id 
     604        mid:车型id 
     605 返回参数:如果已经登陆并且已经收藏,返回收藏id,否则返回-1 
     606}}}