[[TOC]] == 1.基本约定 == {{{ 接口通用参数 req_enc=utf-8(必须放url后面) resp_enc=utf-8(必须放url后面) common_session_id=xxxx(以cookies中的优先) 接口URL: 接口URL 必填参数:参数名=xxx(多种情况用括号解析) 非必填参数:参数名=xxx(多种情况用括号解析) 说明文档参数:添加某特定参数可以直接看接口文档 是否需要登录:是,否 返回格式:json,ssi,xml 缓存方式:接口缓存(接口中返回的响应头里面的 Cache-Control),对象缓存() 缓存时间:缓存时间 返回结果:结果可能情况 }}} == 2.接口列表 == === 2.1 [=#point2.1 车系参配] === [[BR]]mrobot请求url:http://mrobot.pcauto.com.cn/buy/price/serialDetailv12/{serialId}?areaId=1&fmt=json [[BR]]现应用接口: {{{ http://price.pcauto.com.cn/interface/iphone/atom/price/serial_group_basic_json.jsp?serialGroupId=4313 基础数据 http://price.pcauto.com.cn/interface/iphone/atom/price/model_list_by_sg_json.jsp?serialGroupId=4313车型列表 http://price.pcauto.com.cn/interface/iphone/atom/dealer/model_list_news_price_json.jsp?serialGroupId=4313&rId=1本地经销商最低价 }}} [[BR]](旧接口:http://mrobot.pcauto.com.cn/buy/price/serialDetail/4313?fmt=json) [[BR]]原接口: {{{ http://price.pcauto.com.cn/interface/iphone/model_list_v3.jsp?serialId=4313 }}} [[BR]]HTTP请求方式:get [[BR]]是否需要登录:false [[BR]]返回格式:html [[BR]]缓存方式: [[BR]]缓存时间:60 [[BR]]说明: [[BR]]请求参数:[[BR]] ||参数名||类型||必须||说明|| |serialId||String||Y||车系ID|| ||areaId||String||Y||地区id|| [[BR]]返回结果: { "detailArray": [ { "detail": [ { "groupDetail": [ "全国4S店", "2368笔" ], "groupName": "询价订单" }, { "groupDetail": [ "前制动器类型", "通风盘式", "后制动器类型", "通风盘式", "驻车制动类型", "电子驻车", "前轮胎规格", "245/45 R18 ", "后轮胎规格", "245/45 R18 ", "备胎规格", "非全尺寸" ], "groupName": "车轮制动" }... } ], "groupNameArray": [ "询价订单", "价格", "基本参数", "车身", "发动机", "电动机", ..... ] } === 2.2 [=#point2.2 车型参配] === [[BR]]mrobot请求url:http://mrobot.pcauto.com.cn/buy/price/modelDetailv12/{modelId}?areaId=1&fmt=json [[BR]]现应用接口: {{{ http://price.pcauto.com.cn/interface/iphone/atom/price/model_overview.jsp?mid={modelId} 基础数据 http://price.pcauto.com.cn/interface/iphone/atom/price/model_params.jsp?mid=34224 参数 }}} [[BR]](旧接口:http://mrobot.pcauto.com.cn/buy/price/modelDetail/{modelId}?areaId=1&fmt=json) [[BR]]原接口: {{{ http://price.pcauto.com.cn/interface/iphone/model_detail.jsp?mid=34224 }}} [[BR]]HTTP请求方式:get [[BR]]是否需要登录:false [[BR]]返回格式:html [[BR]]缓存方式: [[BR]]缓存时间:60 [[BR]]说明: [[BR]]请求参数:[[BR]] ||参数名||类型||必须||说明|| ||modelId||String||Y||车型ID|| ||areaId||String||Y||地区id|| [[BR]]返回结果: { "baseParameter": [ "厂商", "一汽奥迪", "级别", "中大型车", "上市时间", "2014-01", "发动机"...], "gfPrice": "38.3万", "groupNameArray": [ "询价订单", "价格", "基本参数", "车身", "发动机", "电动机", "变速箱", "底盘转向", ... ], "kind": "中大型车", "manufacturer": "一汽奥迪", "minPrice": "5.75万", "modelName": "奥迪A6L 2014款 2.0 TFSI 手动基本型", "price": "38.3", "serialGorup": "奥迪A6L", "serialGorupId": 4313, "shortName": "2.0 TFSI 手动基本型", "state": "在售", "total": "0", "url": "http://img.pconline.com.cn/images/upload/upc/tx/auto5/1208/21/c7/13077074_13077074_1345530200671_80x60.jpg", "url_120x90": "http://img.pconline.com.cn/images/upload/upc/tx/auto5/1208/21/c7/13077074_13077074_1345530200671_120x90.jpg", "url_400x300": "http://img.pconline.com.cn/images/upload/upc/tx/auto5/1208/21/c7/13077074_13077074_1345530200671_400x300.jpg", "groupNameArray":[ "询价订单", "价格", "基本参数", "车身", "发动机", "电动机"...], "gfprice":"38.3万", "brand":"奥迪", "detail":[ { "groupDetail": [ "全国4S店", "0笔" ], "groupName": "询价订单" }......] }