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


Ignore:
Timestamp:
08/25/2014 05:50:59 PM (12 years ago)
Author:
hejingdong
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • pcauto_4.5.0/interface

    v2 v3  
    2121 
    2222== 2.接口列表 == 
    23 === 2.1.0 [=#point2.1.0 资讯首页] === 
    24 {{{ 
    25     请求url:, 
    26     HTTP请求方式:GET, 
    27     是否需要登录:false, 
    28     返回格式:json, 
    29     返缓存方式:, 
    30     缓存时间:, 
    31     请求参数:channelId:栏目id, 
    32     说明: 
    33     返回结果: 
    34 }}} 
    35  
    36  
    3723=== 2.1.1 [=#point2.1.1 资讯首页] === 
    3824{{{ 
    39     请求url:, 
    40     HTTP请求方式:GET, 
    41     是否需要登录:false, 
    42     返回格式:json, 
    43     返缓存方式:, 
    44     缓存时间:, 
    45     请求参数:channelId:栏目id, 
    46     说明: 
    47     返回结果: 
    48 }}} 
    49  
    50  
    51  
    52 === 2.1.2 [=#point2.1.2 资讯首页] === 
    53 {{{ 
    54     请求url:, 
    55     HTTP请求方式:GET, 
    56     是否需要登录:false, 
    57     返回格式:json, 
    58     返缓存方式:, 
    59     缓存时间:, 
    60     请求参数:channelId:栏目id, 
    61     说明: 
    62     返回结果: 
    63 }}} 
    64  
    65  
    66 === 2.1.3 [=#point2.1.3 资讯首页] === 
    67 {{{ 
    68     请求url:, 
    69     HTTP请求方式:GET, 
    70     是否需要登录:false, 
    71     返回格式:json, 
    72     返缓存方式:, 
    73     缓存时间:, 
    74     请求参数:channelId:栏目id, 
    75     说明: 
    76     返回结果: 
    77 }}} 
    78  
    79  
    80  
     25    请求url: 
     26    HTTP请求方式:GET 
     27    是否需要登录:false 
     28    返回格式:json 
     29    返缓存方式: 
     30    缓存时间: 
     31    请求参数:channelId:栏目id 
     32    说明: 
     33    返回结果: 
     34}}} 
     35 
     36=== 2.1.2 [=#point2.1.2 文章页终端] === 
     37{{{ 
     38    请求url:http://mrobot.pcauto.com.cn/v3/cms/articles/4147040?articleTemplate=4.4.0&size=18&app=pcautobrowser&picRule=2&template=(null)&channelId=4&serialId=0 
     39    HTTP请求方式:GET 
     40    是否需要登录:false 
     41    返回格式:json 
     42    返缓存方式: 
     43    缓存时间: 
     44    请求参数: 
     45    说明: 
     46    返回结果: 
     47}}} 
     48 
     49=== 2.1.3 [=#point2.1.3 地区选择] === 
     50{{{ 
     51    请求url: 
     52    HTTP请求方式:GET 
     53    是否需要登录:false 
     54    返回格式:json 
     55    返缓存方式: 
     56    缓存时间: 
     57    请求参数: 
     58    说明: 
     59    返回结果: 
     60}}} 
     61 
     62=== 2.2.0 [=#point2.2.0 论坛首页] === 
     63{{{ 
     64    请求url: 
     65    HTTP请求方式:GET 
     66    是否需要登录:true 
     67    返回格式:json 
     68    返缓存方式: 
     69    缓存时间: 
     70    请求参数:common_session_id: 
     71    说明: 
     72    返回结果: 
     73}}} 
     74 
     75=== 2.2.1 [=#point2.2.1 帖子列表] === 
     76{{{ 
     77    请求url:http://mrobot.pcauto.com.cn/v3/bbs/newForums/16856?pageNo=1&pageSize=19&orderby=replyat 
     78    HTTP请求方式:GET 
     79    是否需要登录:false 
     80    返回格式:json 
     81    返缓存方式: 
     82    缓存时间: 
     83    说明:4.5版本增加一个提问帖,最多显示三张图 
     84    请求参数: 
     85id:论坛ID或者车系id 
     86idType:表示该url上的id类型,如果是serial为车系id,如果是forum则为论坛id 
     87pageNo:页码 
     88pageSize:一页条数 
     89orderby=postat:最新帖,orderby=replyat:最热帖,filter=pick:精华帖 
     90    返回结果: 
     91 
     92}}} 
     93 
     94=== 2.2.2 [=#point2.2.2 帖子终端] === 
     95{{{ 
     96    请求url:http://mrobot.pcauto.com.cn/v2/bbs/topics/5217852?pageNo=1&pageSize=19&picRule=2&authorId=0&topicTemplate=4.0.0&app=pcautobrowser&size=18 
     97    HTTP请求方式:GET 
     98    是否需要登录:false 
     99    返回格式:json 
     100    返缓存方式: 
     101    缓存时间: 
     102    说明:4.5版本增加删帖,加精,评分功能 
     103    请求参数: 
     104        帖子ID 
     105        pageNo:页码 
     106        pageSize:一页条数 
     107        picRule:获取图片的网络访问方式 
     108        authorId:作者ID 
     109        topicTemplate=4.0.0 
     110        app=pcautobrowser 
     111        size:字体大小 
     112        mode:阅读模式:无参数 白天;night 晚间 
     113    返回结果: 
     114 
     115}}} 
     116 
     117=== 2.2.3 [=#point2.2.3 删帖] === 
     118{{{ 
     119    请求url: 
     120    HTTP请求方式:POST 
     121    是否需要登录:true 
     122    返回格式:json 
     123    返缓存方式: 
     124    缓存时间: 
     125    说明: 
     126    请求参数: 
     127 
     128    返回结果: 
     129 
     130}}} 
     131 
     132=== 2.2.4 [=#point2.2.4 加精] === 
     133{{{ 
     134    请求url: 
     135    HTTP请求方式:POST 
     136    是否需要登录:true 
     137    返回格式:json 
     138    返缓存方式: 
     139    缓存时间: 
     140    说明: 
     141    请求参数: 
     142 
     143    返回结果: 
     144 
     145}}} 
     146 
     147=== 2.2.5 [=#point2.2.5 评分] === 
     148{{{ 
     149    请求url: 
     150    HTTP请求方式:POST 
     151    是否需要登录:true 
     152    返回格式:json 
     153    返缓存方式: 
     154    缓存时间: 
     155    说明: 
     156    请求参数: 
     157topicId:帖子id 
     158score:分数 
     159    返回结果: 
     160 
     161}}} 
     162 
     163=== 2.3.0 [=#point2.3.0 搜索关键词提示] === 
     164{{{ 
     165    请求url: 
     166    HTTP请求方式:GET 
     167    是否需要登录:false 
     168    返回格式:json 
     169    返缓存方式: 
     170    缓存时间: 
     171    说明: 
     172    请求参数: 
     173keyword:输入的关键词 
     174    返回结果: 
     175 
     176}}} 
     177 
     178=== 2.3.1 [=#point2.3.1 搜索结果] === 
     179{{{ 
     180    请求url: 
     181    HTTP请求方式:GET 
     182    是否需要登录:false 
     183    返回格式:JSON 
     184    返缓存方式: 
     185    缓存时间: 
     186    说明: 
     187    请求参数: 
     188keyword:搜索的关键词 
     189types: 输出的内容:zh为综合,wz为文章,tz为帖子,可同时传入 
     190    返回结果: 
     191 
     192}}} 
     193 
     194=== 2.4.0 [=#point2.4.0 车型库首页] === 
     195{{{ 
     196    请求url:http://mrobot.pcauto.com.cn/v3/price/getSerialListByBrandId/1 
     197    HTTP请求方式:GET 
     198    是否需要登录:false 
     199    返回格式:JSON 
     200    返缓存方式: 
     201    缓存时间: 
     202    说明:增加在售分类 
     203    请求参数: 
     204 
     205    返回结果: 
     206{ 
     207  "manufacturers": [ 
     208    { 
     209      "brandIntroduction": "http://price.pcauto.com.cn/qcbk/ppgs/Audi/1208/2068630.html", 
     210      "brandName": "奥迪", 
     211      "name": "一汽奥迪", 
     212      "serials": [ 
     213        { 
     214          "count": 41, 
     215          "id": 3524, 
     216          "isNew": 0, 
     217          "kind": "中型车", 
     218          "name": "奥迪A4L", 
     219          "photo": "http://www1.pcauto.com.cn/piclib/20000/nEO_IMG_3524.jpg", 
     220          "priceRange": "27.28~57.81 万", 
     221          "sellType":1 
     222        } 
     223      ] 
     224    } 
     225  ] 
     226} 
     227}}} 
     228 
     229=== 2.4.1 [=#point2.4.1 车系综述页] === 
     230{{{ 
     231    请求url:http://mrobot.pcauto.com.cn/v3/price/serialv40/7929?v=4.3.0 
     232    HTTP请求方式:GET 
     233    是否需要登录:false 
     234    返回格式:HTML页面 
     235    返缓存方式: 
     236    缓存时间: 
     237    说明:新增图片、点评、团购、经销商、竞争车型对比等入口 
     238    请求参数: 
     239 
     240    返回结果: 
     241 
     242}}} 
     243 
     244=== 2.4.2 [=#point2.4.2 车系参配页] === 
     245{{{ 
     246    请求url:http://mrobot.pcauto.com.cn/v3/price/detailComparev40?serialId=7929&v=4.3.0 
     247    HTTP请求方式:GET 
     248    是否需要登录:false 
     249    返回格式:HTML页面 
     250    返缓存方式: 
     251    缓存时间: 
     252    说明:样式调整、滚动时增加协议 
     253    请求参数: 
     254 
     255    返回结果: 
     256 
     257}}} 
     258 
     259=== 2.4.3 [=#point2.4.3 车系优惠页] === 
     260{{{ 
     261    请求url:http://mrobot.pcauto.com.cn/v3/price/dealersSerialv36?serialId=7889&areaId=1 
     262    HTTP请求方式:GET 
     263    是否需要登录:false 
     264    返回格式:HTML页面 
     265    返缓存方式: 
     266    缓存时间: 
     267    说明:样式调整 
     268    请求参数: 
     269 
     270    返回结果: 
     271 
     272}}} 
     273 
     274 
     275=== 2.4.4 [=#point2.4.4 车系点评页] === 
     276{{{ 
     277    请求url:http://mrobot.pcauto.com.cn/v3/price/commentList/7929 
     278    HTTP请求方式:GET 
     279    是否需要登录:false 
     280    返回格式:HTML页面 
     281    返缓存方式: 
     282    缓存时间: 
     283    说明:区分在售、停售 
     284    请求参数: 
     285 
     286    返回结果: 
     287 
     288}}} 
     289 
     290=== 2.4.5 [=#point2.4.5 车系图片筛选条件] === 
     291{{{ 
     292    请求url:http://mrobot.pcauto.com.cn/v2/price/pictureConditions?serialId=7889&modelId=0 
     293    HTTP请求方式:GET 
     294    是否需要登录:false 
     295    返回格式:JSON 
     296    返缓存方式: 
     297    缓存时间: 
     298    说明:types增加字段section,用于细化外观 
     299    请求参数: 
     300 
     301    返回结果: 
     302{ 
     303  "colors": [ 
     304    { 
     305      "id": "14270", 
     306      "name": "檀木黑" 
     307    } 
     308  ], 
     309  "models": [ 
     310    { 
     311      "id": "22608", 
     312      "name": "2013款 1.8 自动Premium" 
     313    } 
     314  ], 
     315  "types": [ 
     316    { 
     317      "id": "1", 
     318      "name": "外观", 
     319      "section": [ 
     320        { 
     321          "id": "1", 
     322          "name": "全部" 
     323        }, 
     324        { 
     325          "id": "1", 
     326          "name": "车头" 
     327        } 
     328      ] 
     329    } 
     330  ] 
     331} 
     332}}} 
     333 
     334 
     335=== 2.4.6 [=#point2.4.6 车系图片] === 
     336{{{ 
     337    请求url:http://mrobot.pcauto.com.cn/v2/price/pictures?serialGroupId=7889&pageSize=1497&typeId=1&colorId=0&modelId=0 
     338    HTTP请求方式:GET 
     339    是否需要登录:false 
     340    返回格式:JSON 
     341    返缓存方式: 
     342    缓存时间: 
     343    说明:typeId被细化,增加外观分类 
     344    请求参数: 
     345serialId // 车系id 
     346modelId // 车型id 
     347typeId // 图片类型id 
     348colorId // 颜色id 
     349pageNo  //第几页 
     350pageSize //每页显示多少条 
     351    返回结果: 
     352 
     353}}} 
     354 
     355=== 2.4.7 [=#point2.4.7 经销商详情] === 
     356{{{ 
     357    请求url:http://mrobot.pcauto.com.cn/v3/price/dealersDetailv40?areaId=1&seq=154070001&modelName=%E8%B5%B7%E4%BA%9AK3%202015%E6%AC%BE%201.6%20%E6%89%8B%E5%8A%A8GL&v=4.3.0&modelId2=33876&serialId=7889&dealerPrice=10.28 
     358    HTTP请求方式:GET 
     359    是否需要登录:false 
     360    返回格式:HTML页面 
     361    返缓存方式: 
     362    缓存时间: 
     363    说明:样式调整 
     364    请求参数: 
     365 
     366    返回结果: 
     367 
     368}}} 
     369 
     370=== 2.4.8 [=#point2.4.8 公司介绍] === 
     371{{{ 
     372    请求url: 
     373    HTTP请求方式:GET 
     374    是否需要登录:false 
     375    返回格式:HTML页面 
     376    返缓存方式: 
     377    缓存时间: 
     378    说明:新增 
     379    请求参数: 
     380 
     381    返回结果: 
     382 
     383}}} 
     384 
     385=== 2.4.9 [=#point2.4.9 询底价页] === 
     386{{{ 
     387    请求url:http://mrobot.pcauto.com.cn/v3/price/askprice?dealerId=49712&dealerName=%E5%B9%BF%E5%B7%9E%E6%96%87%E5%8D%8E%E7%A6%8F%E7%91%9E%E7%A6%8F%E7%89%B9+&modelId=19792&modelName=%E7%A6%8F%E5%85%8B%E6%96%AF+2012%E6%AC%BE+%E4%B8%A4%E5%8E%A2+1.6+MT+%E8%88%92%E9%80%82%E5%9E%8B&url=http://img.pconline.com.cn/images/upload/upc/tx/auto5/1210/11/c3/14373198_14373198_1349942613212_120x90.jpg 
     388    HTTP请求方式:GET 
     389    是否需要登录:false 
     390    返回格式:HTML页面 
     391    返缓存方式: 
     392    缓存时间: 
     393    说明: 
     394    请求参数: 
     395dealerId 
     396dealerName 
     397modelId 
     398modelName 
     399url:车型图片链接 
     400阅读模式:无参数 白天;night 晚间 
     401    返回结果: 
     402 
     403}}} 
     404 
     405=== 2.4.10 [=#point2.4.10 精准选车条件] === 
     406{{{ 
     407    请求url:http://mrobot.pcauto.com.cn/v2/price/models/search?price=7&jb=72&pl=4&bsx=3&pageNo=1&pageSize=20&v=4.3.0  
     408    HTTP请求方式:GET 
     409    是否需要登录:false 
     410    返回格式:JSON 
     411    返缓存方式: 
     412    缓存时间: 
     413    说明: 
     414    请求参数: 
     415 
     416    返回结果: 
     417 
     418}}} 
     419 
     420 
     421=== 2.5.0 [=#point2.5.0 离线下载包] === 
     422{{{ 
     423    请求url: 
     424    HTTP请求方式:GET 
     425    是否需要登录:false 
     426    返回格式:JSON 
     427    返缓存方式: 
     428    缓存时间: 
     429    说明: 
     430    请求参数: 
     431 
     432    返回结果: 
     433 
     434}}} 
     435 
     436=== 2.5.1 [=#point2.5.1 修改昵称] === 
     437{{{ 
     438    请求url:http://my.pcauto.com.cn/intf/syncNickName.jsp 
     439    HTTP请求方式:POST 
     440    是否需要登录:false 
     441    返回格式:JSON 
     442    返缓存方式: 
     443    缓存时间: 
     444    说明:增加参数,可修改性别 
     445    请求参数: 
     446req_enc:UTF-8 
     447resp_enc:UTF-8 
     448nickName:昵称 
     449act:save 
     450sex: 
     451    返回结果: 
     452{"code":0}表示成功, {"code":非0,"message":"提示"} 
     453}}} 
     454 
     455 
     456=== 2.5.2 [=#point2.5.2 违章查询] === 
     457{{{ 
     458    请求url: 
     459    HTTP请求方式:GET 
     460    是否需要登录:false 
     461    返回格式:HTML页面 
     462    返缓存方式: 
     463    缓存时间: 
     464    说明: 
     465    请求参数: 
     466 
     467    返回结果: 
     468 
     469}}} 
     470 
     471=== 2.5.3 [=#point2.5.3 常见问题] === 
     472{{{ 
     473    请求url: 
     474    HTTP请求方式:GET 
     475    是否需要登录:false 
     476    返回格式:HTML页面 
     477    返缓存方式: 
     478    缓存时间: 
     479    说明: 
     480    请求参数: 
     481 
     482    返回结果: 
     483 
     484}}} 
     485 
     486 
     487=== 2.5.3.1 [=#point2.5.3.1 常见问题终端] === 
     488{{{ 
     489    请求url: 
     490    HTTP请求方式:GET 
     491    是否需要登录:false 
     492    返回格式:HTML页面 
     493    返缓存方式: 
     494    缓存时间: 
     495    说明: 
     496    请求参数: 
     497 
     498    返回结果: 
     499 
     500}}} 
     501 
     502 
     503=== 2.5.4 [=#point2.5.4 返回包括关注的好友和粉丝] === 
     504{{{ 
     505    请求url:http://my.pcauto.com.cn/intf/app/focus.jsp?accountId=31836836&act=findFocus&common_session_id=6E2073035FC49C29DD038821CAF2058F93196617DE299753&resp_enc=UTF-8&pageNo=1&pageSize=20&req_enc=UTF-8 
     506    HTTP请求方式:GET 
     507    是否需要登录:false 
     508    返回格式:JSON 
     509    返缓存方式: 
     510    缓存时间: 
     511    说明:增加相互关注标示,共同关注标示 
     512    请求参数: 
     513accountId:用户ID,如果没有改参数的话则返回当前用户的好友列表 
     514act:findFocus为关注,findFocusBy为粉丝 
     515pageNo:页码 
     516pageSize:页长度 
     517common_session_id 
     518req_enc:UTF-8 
     519resp_enc:UTF-8 
     520    返回结果: 
     521 
     522}}} 
     523 
     524 
     525=== 2.5.5 [=#point2.5.5 我的收藏-经销商] === 
     526{{{ 
     527    请求url: 
     528    HTTP请求方式:GET 
     529    是否需要登录:false 
     530    返回格式:JSON 
     531    返缓存方式: 
     532    缓存时间: 
     533    说明: 
     534    请求参数: 
     535 
     536    返回结果: 
     537 
     538}}} 
     539 
     540=== 2.5.6 [=#point2.5.6 推送设置] === 
     541{{{ 
     542    请求url: 
     543    HTTP请求方式:GET 
     544    是否需要登录:false 
     545    返回格式:JSON 
     546    返缓存方式: 
     547    缓存时间: 
     548    说明: 
     549    请求参数: 
     550 
     551    返回结果: 
     552 
     553}}}