Changes between Version 17 and Version 18 of pcauto_4.4.0/interface


Ignore:
Timestamp:
07/22/2014 05:59:32 PM (12 years ago)
Author:
fuxingfang
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • pcauto_4.4.0/interface

    v17 v18  
    284284}}} 
    285285 
    286 === 2.6 [=#point206 视频分类]=== 
    287 {{{ 
    288 备注:视频分类 
    289  请求URL: 
    290  
    291  HTTP请求方式:get 
    292  是否需要登录:否 
    293  返回格式:json 
    294  缓存方式:无 
    295  缓存时间: 
    296  请求参数: 
    297 返回参数: 
    298 { 
    299   types:[ 
    300      { 
    301         id:1, 
    302         name:原创视频 
    303      }, 
    304      { 
    305         id:2, 
    306         name:新车视频 
    307      }, 
    308      { 
    309         id:3, 
    310         name:娱乐百态 
    311      } 
    312   ] 
     286=== 2.6 [=#point206 视频分类](可内测)=== 
     287{{{ 
     288 备注:视频分类 
     289 请求URL:http://mrobot.pcauto.com.cn/configs/pcauto_video_subchannels 
     290 
     291 HTTP请求方式:get 
     292 是否需要登录:否 
     293 返回格式:json 
     294 缓存方式:无 
     295 缓存时间:无 
     296 请求参数:无 
     297 返回参数: 
     298 
     299{ 
     300    "data": [ 
     301        { 
     302            "id": 131, 
     303            "name": "原创视频" 
     304        }, 
     305        { 
     306            "id": 132, 
     307            "name": "新车视频" 
     308        }, 
     309        { 
     310            "id": 133, 
     311            "name": "娱乐百态" 
     312        }, 
     313        { 
     314            "id": 134, 
     315            "name": "广告欣赏" 
     316        }, 
     317        { 
     318            "id": 135, 
     319            "name": "试车视频" 
     320        }, 
     321        { 
     322            "id": 136, 
     323            "name": "技术视频" 
     324        }, 
     325        { 
     326            "id": 137, 
     327            "name": "资讯视频" 
     328        }, 
     329        { 
     330            "id": 138, 
     331            "name": "车展视频" 
     332        } 
     333    ] 
    313334} 
    314335}}} 
     
    434455}}} 
    435456 
    436 === 2.7.1 [=#point2071 视频栏目列表]=== 
    437 {{{ 
    438 备注:视频栏目列表 
     457=== 2.7.1 [=#point2071 视频栏目列表] (可内测)=== 
     458{{{ 
     459 备注:视频栏目列表 
     460 请求URL:http://mrobot.pcauto.com.cn/v2/cms/channels/{id}?pageNo=1&pageSize=20&v=4.0.0 
     461 HTTP请求方式:get 
     462 是否需要登录:否 
     463 返回格式:json 
     464 缓存方式:无 
     465 缓存时间:30分钟 
     466 请求参数: 
     467    id:栏目id 
     468    pageSize:没有显示多少条 
     469    pageNo:第几页 
     470    v:版本号,此处v=4.0.0 
     471 
     472返回结果: 
     473 
     474{ 
     475    "data": [ 
     476        { 
     477            "count": 0, 
     478            "downs": 221, 
     479            "firstImg": "http://img0.pcauto.com.cn/pcauto/1404/22/4277983_nx200tc.jpg", 
     480            "id": "4277983", 
     481            "image": "http://img0.pcauto.com.cn/pcauto/1404/22/g_4277983_1398157978271_240x160.jpg", 
     482            "pubDate": "2014-04-22", 
     483            "title": "剑指Q3和X1!雷克萨斯NX200T解析", 
     484            "ups": 1339, 
     485            "url": "http://www.pcauto.com.cn/client/427/4277983.html" 
     486        }, 
     487        { 
     488            "count": 0, 
     489            "downs": 182, 
     490            "firstImg": "http://img0.pcauto.com.cn/pcauto/1404/21/4268521_4267124_im77_thumbcc.jpg", 
     491            "id": "4268521", 
     492            "image": "http://img0.pcauto.com.cn/pcauto/1404/21/g_4268521_1398060573979_240x160.jpg", 
     493            "pubDate": "2014-04-21", 
     494            "title": "宝马X6缩小版?宝马X4详细实拍解析", 
     495            "ups": 338, 
     496            "url": "http://www.pcauto.com.cn/client/426/4268521.html" 
     497        }, 
     498        { 
     499            "count": 0, 
     500            "downs": 143, 
     501            "firstImg": "http://img0.pcauto.com.cn/pcauto/1404/21/4269767_13979940933982940_600cc.jpg", 
     502            "id": "4269767", 
     503            "image": "http://img0.pcauto.com.cn/pcauto/1404/21/g_4269767_1398066907717_240x160.jpg", 
     504            "pubDate": "2014-04-21", 
     505            "title": "奔驰最新的设计语言 奔驰C-Class L解析", 
     506            "ups": 572, 
     507            "url": "http://www.pcauto.com.cn/client/426/4269767.html" 
     508        }, 
     509        { 
     510            "count": 0, 
     511            "downs": 1937, 
     512            "firstImg": "http://img0.pcauto.com.cn/pcauto/1404/21/4267539_H2OK.jpg", 
     513            "id": "4267539", 
     514            "image": "http://img0.pcauto.com.cn/pcauto/1404/21/g_4267539_1398053758876_240x160.jpg", 
     515            "pubDate": "2014-04-21", 
     516            "title": "售10.58万元!哈弗H2详细实拍解析", 
     517            "ups": 676, 
     518            "url": "http://www.pcauto.com.cn/client/426/4267539.html" 
     519        }, 
     520        { 
     521            "count": 0, 
     522            "downs": 507, 
     523            "firstImg": "http://img0.pcauto.com.cn/pcauto/1404/21/4270100_4263520_2_thumbcc.jpg", 
     524            "id": "4270100", 
     525            "image": "http://img0.pcauto.com.cn/pcauto/1404/21/g_4270100_1398068597789_240x160.jpg", 
     526            "pubDate": "2014-04-21", 
     527            "title": "丰富的配置!比亚迪全新SUV S7解析", 
     528            "ups": 1976, 
     529            "url": "http://www.pcauto.com.cn/client/427/4270100.html" 
     530        } 
     531    ], 
     532    "pageNo": 1, 
     533    "pageSize": 5, 
     534    "total": 22 
     535} 
     536 
     537}}} 
     538 
     539=== 2.7.2 [=#point2072 导购栏目列表] (可内测)=== 
     540{{{ 
     541 备注:导购栏目列表 
     542 请求URL:http://mrobot.pcauto.com.cn/v2/cms/getArticlesByTagId/{tagId}?pageNo=1&pageSize=20 
     543 HTTP请求方式:get 
     544 是否需要登录:否 
     545 返回格式:json 
     546 缓存方式:无 
     547 缓存时间:15分钟 
     548 请求参数: 
     549       tagId:价格区间对应的id,从接口http://mrobot.pcauto.com.cn/configs/pcauto_guide_price_range中获取 
     550       pageNo:页数 
     551       pageSize:每页显示多少条 
     552 
     553返回结果: 
     554{ 
     555    "data": [ 
     556        { 
     557            "count": 308, 
     558            "id": "3438040", 
     559            "image": "http://img0.pcauto.com.cn/pcauto/1311/19/g_3438040_1384850430733_240x160.jpg", 
     560            "pubDate": "2013-11-19", 
     561            "title": "不输途观价格更优 斯柯达野帝购车手册", 
     562            "url": "http://www.pcauto.com.cn/teach/343/3438040.html" 
     563        }, 
     564        { 
     565            "count": 248, 
     566            "id": "3441059", 
     567            "image": "http://img0.pcauto.com.cn/pcauto/1311/19/g_3441059_1384863321944_240x160.jpg", 
     568            "pubDate": "2013-11-19", 
     569            "title": "1.8L车型竞争力足 北京现代名图购车手册", 
     570            "url": "http://www.pcauto.com.cn/teach/344/3441059.html" 
     571        }, 
     572        { 
     573            "count": 332, 
     574            "id": "3331703", 
     575            "image": "http://img0.pcauto.com.cn/pcauto/1311/03/g_3331703_1383475180321_240x160.jpg", 
     576            "pubDate": "2013-11-04", 
     577            "title": "以运动之名 15-20万元入门级小钢炮推荐", 
     578            "url": "http://www.pcauto.com.cn/teach/333/3331703.html" 
     579        }, 
     580        { 
     581            "count": 295, 
     582            "id": "3303979", 
     583            "image": "http://img0.pcauto.com.cn/pcauto/1310/28/g_3303979_1382972638878_240x160.jpg", 
     584            "pubDate": "2013-10-31", 
     585            "title": "激情又顾家 20万元级运动款中级车推荐", 
     586            "url": "http://www.pcauto.com.cn/teach/330/3303979.html" 
     587        }, 
     588        { 
     589            "count": 337, 
     590            "id": "3273724", 
     591            "image": "http://img0.pcauto.com.cn/pcauto/1310/26/g_3273724_1382756431874_240x160.jpg", 
     592            "pubDate": "2013-10-27", 
     593            "title": "18万高性价比选择 舒适好开中级车推荐", 
     594            "url": "http://www.pcauto.com.cn/teach/327/3273724.html" 
     595        } 
     596    ], 
     597    "pageCount": 9, 
     598    "pageNo": 1, 
     599    "pageSize": 5, 
     600    "total": 43 
     601} 
     602}}} 
     603 
     604=== 2.7.3 [=#point2073 用车栏目列表]=== 
     605{{{ 
     606备注:用车栏目列表 
    439607 请求URL: 
    440608 HTTP请求方式:get 
     
    444612 缓存时间: 
    445613 请求参数: 
    446     tid分类id 
     614   tid:类型id 
    447615返回结果: 
    448616{ 
     
    472640  "total": 41 
    473641} 
    474  
    475 }}} 
    476  
    477 === 2.7.2 [=#point2072 导购栏目列表] (可内测)=== 
    478 {{{ 
    479  备注:导购栏目列表 
    480  请求URL:http://mrobot.pcauto.com.cn/v2/cms/getArticlesByTagId/{tagId}?pageNo=1&pageSize=20 
    481  HTTP请求方式:get 
    482  是否需要登录:否 
    483  返回格式:json 
    484  缓存方式:无 
    485  缓存时间:15分钟 
    486  请求参数: 
    487        tagId:价格区间对应的id,从接口http://mrobot.pcauto.com.cn/configs/pcauto_guide_price_range中获取 
    488        pageNo:页数 
    489        pageSize:每页显示多少条 
    490  
    491 返回结果: 
    492 { 
    493     "data": [ 
    494         { 
    495             "count": 308, 
    496             "id": "3438040", 
    497             "image": "http://img0.pcauto.com.cn/pcauto/1311/19/g_3438040_1384850430733_240x160.jpg", 
    498             "pubDate": "2013-11-19", 
    499             "title": "不输途观价格更优 斯柯达野帝购车手册", 
    500             "url": "http://www.pcauto.com.cn/teach/343/3438040.html" 
    501         }, 
    502         { 
    503             "count": 248, 
    504             "id": "3441059", 
    505             "image": "http://img0.pcauto.com.cn/pcauto/1311/19/g_3441059_1384863321944_240x160.jpg", 
    506             "pubDate": "2013-11-19", 
    507             "title": "1.8L车型竞争力足 北京现代名图购车手册", 
    508             "url": "http://www.pcauto.com.cn/teach/344/3441059.html" 
    509         }, 
    510         { 
    511             "count": 332, 
    512             "id": "3331703", 
    513             "image": "http://img0.pcauto.com.cn/pcauto/1311/03/g_3331703_1383475180321_240x160.jpg", 
    514             "pubDate": "2013-11-04", 
    515             "title": "以运动之名 15-20万元入门级小钢炮推荐", 
    516             "url": "http://www.pcauto.com.cn/teach/333/3331703.html" 
    517         }, 
    518         { 
    519             "count": 295, 
    520             "id": "3303979", 
    521             "image": "http://img0.pcauto.com.cn/pcauto/1310/28/g_3303979_1382972638878_240x160.jpg", 
    522             "pubDate": "2013-10-31", 
    523             "title": "激情又顾家 20万元级运动款中级车推荐", 
    524             "url": "http://www.pcauto.com.cn/teach/330/3303979.html" 
    525         }, 
    526         { 
    527             "count": 337, 
    528             "id": "3273724", 
    529             "image": "http://img0.pcauto.com.cn/pcauto/1310/26/g_3273724_1382756431874_240x160.jpg", 
    530             "pubDate": "2013-10-27", 
    531             "title": "18万高性价比选择 舒适好开中级车推荐", 
    532             "url": "http://www.pcauto.com.cn/teach/327/3273724.html" 
    533         } 
    534     ], 
    535     "pageCount": 9, 
    536     "pageNo": 1, 
    537     "pageSize": 5, 
    538     "total": 43 
    539 } 
    540 }}} 
    541  
    542 === 2.7.3 [=#point2073 用车栏目列表]=== 
    543 {{{ 
    544 备注:用车栏目列表 
    545  请求URL: 
    546  HTTP请求方式:get 
    547  是否需要登录:否 
    548  返回格式:json 
    549  缓存方式:无 
    550  缓存时间: 
    551  请求参数: 
    552    tid:类型id 
    553 返回结果: 
    554 { 
    555   "articleList": [ 
    556     { 
    557       "id": "4254001", 
    558       "pubDate": "2014-04-18", 
    559       "title": "What is My Car? 最适合的才最好", 
    560       "url": "http://www.pcauto.com.cn/news/425/4254001.html" 
    561     }, 
    562     { 
    563       "id": "3683314", 
    564       "pubDate": "2013-12-31", 
    565       "title": "戴姆勒Car2Share驾临鹏城 腾讯乐享创新出行", 
    566       "url": "http://www.pcauto.com.cn/news/368/3683314.html" 
    567     } 
    568   ], 
    569   "curPage": 1, 
    570   "perPage": 100, 
    571   "start": 1, 
    572   "statistic": { 
    573     "cluster_channel": [ 
    574       "新闻动态_41" 
    575     ] 
    576   }, 
    577   "time": 0, 
    578   "total": 41 
    579 } 
    580642}}} 
    581643