[[TOC]] == 1.基本约定 == {{{ 接口通用参数 req_enc=utf-8(必须放url后面) resp_enc=utf-8(必须放url后面) common_session_id=xxxx(以cookies中的优先) 接口URL: 接口URL 必填参数:参数名=xxx(多种情况用括号解析) 非必填参数:参数名=xxx(多种情况用括号解析) 说明文档参数:添加某特定参数可以直接看接口文档 是否需要登录:是,否 返回格式:json,ssi,xml 缓存方式:接口缓存,对象缓存 缓存时间:缓存时间 返回结果:结果可能情况 }}} == 2.接口列表 == === 2.1 [=#point201 小编精选推荐]=== {{{ 备注:此接口返回若干个小编精选推荐车系,客户端自动筛选4个用以显示 请求url: HTTP请求方式:get 是否需要登录:是 返回格式:json 缓存方式:无 缓存时间:无 请求参数: 1.正常返回: { "code": 0, "total": 40, "list":[ { "id": 2, "image": "http://img.pconline.com.cn/images/upload/upc/tx/auto5/1308/13/c9/24440713_1376387144385_270x202.jpg", "serialId": 354, "serialName": "马自达6", "price": "12.98-15.98万" } ] } }}} === 2.1.1 [=#point2011 最新内容]=== {{{ 请求url: HTTP请求方式:get 是否需要登录:是 返回格式:json 缓存方式:无 缓存时间:无 请求参数: serialIds=1,2,3 车系id,以逗号间隔 返回结果:说明,除了第1中情况程序出错返回的响应状态为500,其他情况经返回200 1.正常返回: { "code": 0, "total": 5, "list": [ { ////资讯格式 "channelId": 2, "channelName": "新车", "count": 3, "downs": 13, "id": "4721075", "image": "http://img0.pcauto.com.cn/pcauto/1407/02/g_4688183_1404269779131_240x160.jpg", "title": "2014款帅客正式上市 售6.48-9.18万元", "type": 1, "ups": 13, "url": "http://www.pcauto.com.cn/nation/472/4721075.html", "type": 3(1为属于资讯,2为论坛,3为购车优惠), "date": "2014-5-13 星期二" }, { ////论坛格式 "count": 14, "downs": 39, "forumName": "", "id": "5037151", "image": "http://img0.pcauto.com.cn/pcauto/1407/07/4715883_1.jpg", "preView": "[今日话题]一撞就起火 特斯拉值那个价吗?", "seq": 4, "title": "[今日话题]一撞就起火 特斯拉值那个价吗?", "to-uri": "pcautobrowser://bbs-topic/5037151", "type": 2, "updateAt": 1404662400000, "ups": 13, "type": 2(1为属于资讯,2为论坛,3为购车优惠), "date": "2014-5-13 星期二" }, { //购车优惠格式 "id": 2, "userId": 24286812, "image": "http://img.pconline.com.cn/images/upload/upc/tx/auto5/1308/13/c9/24440713_1376387144385_270x202.jpg", "serialId": 354, "serialName": "马自达6", "price": "12.98-15.98万", "lowerPrice": "", "city": "", "shopType": "4S店", "company": "出厂名", "type": 3(1为属于资讯,2为论坛,3为购车优惠), "date": "2014-5-13 星期二", } ] } }}}