| Version 21 (modified by dengyurong, 11 years ago) (diff) |
|---|
Table of Contents
1.基本约定
mrobot开发机代理:192.168.10.199 端口为 1080
mrobot测试机代理:192.168.10.198 端口为 1080
2.接口列表
2.1 找车-按条件找车
(接口已上线)
新接口: http://mrobot.pcauto.com.cn/v3/price/chooseOptionLink?index=1
原接口: http://mrobot.pcauto.com.cn/buy/price/chooseOption
HTTP请求方式:get
是否需要登录:false
返回格式:json
缓存方式:接口缓存
缓存时间:1小时
说明:原接口是报价的接口,会与报价冲突
请求参数:
| 参数名 | 类型 | 必须 | 说明 |
| index | Strng | 可选 | index=1标识初始化 |
返回数据结构
数据结构和旧报价接口一致
2.2 直播改版
2.2.1 首页栏目
(接口已完成,请连开发机测试)
新接口: http://mrobot.pcauto.com.cn/configs/pcauto_v4_cms_iphone_channel_tree(IOS)
新接口: http://mrobot.pcauto.com.cn/configs/pcauto_v4_cms_android_channel_tree(Android)
原接口: http://mrobot.pcauto.com.cn/configs/pcauto_v3_cms_iphone_channel_tree(IOS)
原接口: http://mrobot.pcauto.com.cn/configs/pcauto_v3_cms_android_channel_tree(Android)
HTTP请求方式:get
是否需要登录:false
返回格式:json
缓存方式:
缓存时间:
说明:V4.7.0需要新增“直播”栏目,同时旧版本屏蔽该栏目
返回数据结构
{
news: [
[
"1",
"首页",
"696"
],
[
"2",
"新车",
"296"
],
[
"55555",
"行情",
"297"
],
[
"3",
"导购",
"298"
],
...
[
"18",
"直播",
"723"
]
],...
2.2.2 直播栏目列表
(接口已完成,请连开发机测试)
mrobot接口: http://mrobot.pcauto.com.cn/v2/cms/channels/18?v=4.0.0&pageNo=1&pageSize=2
后台接口: http://www.pcauto.com.cn/app/000082762/000082782/1503/intf6607.js#
HTTP请求方式:get
是否需要登录:false
返回格式:json
缓存方式:
缓存时间:
说明:需分页;一个直播内容包含banner图、标题、直播状态、时间、评论数/回复数共5个要素
请求参数:
| 参数名 | 类型 | 必须 | 说明 |
| v | String | 可选 | 版本号,v=4.0.0表示4.0以后的版本 |
| pageNo | int | 必须 | 页码(默认为1) |
| pageSize | int | 必须 | 每页大小(默认为200) |
返回数据结构
{
data: [
{
banner(图片): "http://img0.pcauto.com.cn/pcauto/app/000082762/000082782/1503/00002.png",
count(评论数): 0,
titile(标题): "【跑男来助阵】 售价14.59-21.39万 凌渡上市直播回顾",
zbId: "6433050",
zbState(直播状态:1表示正在直播,0表示已结束): "1",
zbTime: "2015-02-03 15:02:00",
zbType(type=1表示直播文章,0表示论坛帖子): "0",
zbUrl: "http://bbs.pcauto.com.cn/topic-6433050.html"
},
{
banner: "http://img0.pcauto.com.cn/pcauto/app/000082762/000082782/1503/0011.jpg",
count: 386,
titile: "2015日内瓦车展现场直播",
zbId: "151",
zbState: "1",
zbTime: "2015-06-02 13:05:00",
zbType: "1",
zbUrl: "http://live.pcauto.com.cn/broadRecord.jsp?broadcastId=151"
}
],
pageNo: 1,
pageSize: 2,
total: 2
}
2.2.3 直播内容详情页
mrobot接口:
后台接口:
HTTP请求方式:get
是否需要登录:false
返回格式:html
缓存方式:
缓存时间:
说明:页面源码中_HTML_META_START_需提供以下数据:
title——直播标题
anchorImg——主播头像
anchor——主播名称
abstract——直播简介(这个需要保留a标签)
contentNum——该页的内容数量
url——PC端地址
firstPic——用于分享的图片地址
thumbPic——用于分享的图片地址
请求参数:
| 参数名 | 类型 | 必须 | 说明 |
2.2.4 直播节点查看更多页
(接口已完成,请连开发机测试)
mrobot接口: http://mrobot.pcauto.com.cn/v3/zbCommentDetail?recordId=1511&broadcastId=151&pageNo=1&pageSize=20&partId=1425267845000
后台接口: http://dev33.pcauto.com.cn:8001/intf/newApp/getRecordByID.jsp?recordId=1511
后台接口: http://cmt.pcauto.com.cn/templates/pcauto/getPartList.jsp?url=http://live.pcauto.com.cn/broadRecord.jsp?broadcastId=151&pageNo=1&pageSize=20&partId=1425267845000
HTTP请求方式:get
是否需要登录:false
返回格式:html
缓存方式:
缓存时间:
说明:
请求参数:
| 参数名 | 类型 | 必须 | 说明 |
| recordId | String | 必须 | 直播节点id |
| broadcastId | String | 必须 | 直播id |
| pageNo | String | 可选 | 页码 |
| pageSize | String | 可选 | 页面大小 |
| partId | String | 必须 | 节点评论id |
2.2.5 直播文章分节点评论
(接口已完成,请连开发机测试)
mrobot接口: http://mrobot.pcauto.com.cn/v3/cmt/createComment?url=http://cmt.pcauto.com.cn/topic/a0/r0/p1/ps30/t13270146.html&content=A57EWEW[[BR]]
HTTP请求方式:post
是否需要登录:false
返回格式:json
缓存方式:
缓存时间:
说明:当存在
请求参数:
| 参数名 | 类型 | 必须 | 说明 |
| id/url | String | 必须 | 二选一,必填 |
| content | String | 必须 | 评论内容 |
| title | String | 选填 | 主题 |
| replyFloor2 | String | 选填 | 回复楼层(若有) |
| windowname | String | 选填 | 选填,默认为0 |
| anonymous | String | 选填 | 选填,1为匿名 |
| partId | String | 选填 | 选填,分段落评论的段落id |
| client | String | 选填 | 选填(最好按实际情况给参) |
返回数据结构
{
"brief": "A57EWEW",
"commentCount": 1,
"commentId": 28545421,
"createTime": "2015-03-20 10:43:07",
"floor": 9,
"ip": "59.42.240.7",
"resultCode": 0,
"resultMsg": "您的评论已经成功发表。注:评论在审核后才能出现在列表中,谢谢!",
"showName": "广东省广州市网友",
"status": 0,
"topicId": 13272513,
"userId": -1
}
2.2.6 获取当前直播文章的内容数量
2.3 违章查询
新接口:
原接口: http://cha.wcar.net.cn/taipingyang
2.4 关于车系/车型图片
2.4.1 车系车型全部type分类图片信息
mrobot旧接口: http://mrobot.pcauto.com.cn/v2/price/nav_pictures?serialGroupId=4457&modelId=0
后台接口:
HTTP请求方式:get
是否需要登录:false
返回格式:json
缓存方式:
缓存时间:
请求参数:
| 参数名 | 类型 | 必须 | 说明 |
返回数据结构
2.4.2 车系车型图片
mrobot旧接口: http://mrobot.pcauto.com.cn/v2/price/pictures?serialGroupId=4457&pageSize=99999&v=4.5.0&modelId=0&typeId=1&colorId=0
后台接口:
HTTP请求方式:get
是否需要登录:false
返回格式:json
缓存方式:
缓存时间:
请求参数:
| 参数名 | 类型 | 必须 | 说明 |
返回数据结构
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)