| Version 14 (modified by liangzhicong, 11 years ago) (diff) |
|---|
接口索引
1. 车友会提供APP接口4.2(车友圈)
车友会相关接口
http://rdtrac.pc.com.cn/autoclub/wiki/appapi/4.3 http://rdtrac.pc.com.cn/autoclub/wiki/appapi/4.2 http://rdtrac.pc.com.cn/autoclub/wiki/appapi/4.0 http://rdtrac.pc.com.cn/autoclub/wiki/appapi/3.0
2. mrobot 合并
http://rdtrac.pc.com.cn/autoclub/wiki/appapi/4.3
APP4.3的相关接口,在开发环境已可以
车友会的,开发环境URL前缀:http://dev18.pcauto.com.cn/
论坛的,开发环境URL前缀:http://dev11.pcauto.com.cn:12085/bbs7/
车友会的,测试环境URL前缀:http://v71.pcauto.com.cn:82
论坛的,测试环境URL前缀:http://v15.pcauto.com.cn
mrobot:开发:http://dev40.pcauto.com.cn
测试:http://v80.pcauto.com.cn
线上:http://mrobot.pcauto.com.cn
登陆:http://test232.pcauto.com.cn/passport2
车友会:http://v37.pcauto.com.cn:82
passport: 开发环境 https://dev30.pcauto.com.cn/passport3/rest/login.jsp?username=3edc4rfv&password=123456
测试环境:https://v46.pcauto.com.cn/passport3/rest/login.jsp?username=3edc4rfv&password=123456
2.0 车友圈
接口:/xsp/s/club/v4.3/clubHomePage.xsp
说明 : 获取车友圈首页数据
是否分页:否
是否缓存:否
是否登陆:是
请求参数:
用户登录
返回结果:
{
code: 0,
forumList: [
{
forumId:版块ID
forumName:版块名字
}
],
message: "操作成功",
userId: 30257562,
version: "v1.0(latest)",
banner: {
img: "",
url: "",
appUrl: "",
isdisplay: true
},
activelist: [ //焦点图
{
title: "卡拉丁200个空调滤清器免费送",
url: "http://bbs.pcauto.com.cn/topic-7886091.html",
appUrl: "pcautoclub://bbs-topic/7886091",
img: "http://img0.pcauto.com.cn/pcauto/forum/club/shequ/home/syfocus/1507/660-330_3.jpg",
dynaInfoId: "",
createBy: ""
},
{
title: "新蒙女神当车模",
url: "http://bbs.pcauto.com.cn/topic-7909340.html",
appUrl: "pcautoclub://bbs-topic/7909340",
img: "http://img0.pcauto.com.cn/pcauto/forum/club/shequ/home/syfocus/1507/4fg.jpg",
dynaInfoId: "",
createBy: ""
},
{
title: "#女子练车被教练摸胸#",
url: "http://club.pcauto.com.cn/topic/2083.html",
appUrl: "pcautoclub://club-talk/2083",
img: "http://img0.pcauto.com.cn/pcauto/forum/club/activeapp/1507/shiahisda.jpg",
dynaInfoId: "",
createBy: ""
},
{
title: "【摄影】提车娶媳妇 走上人生巅峰",
url: "http://bbs.pcauto.com.cn/topic-7677662.html",
appUrl: "pcautoclub://bbs-topic/7677662",
img: "http://img0.pcauto.com.cn/pcauto/forum/club/activeapp/1507/hunlia.jpg",
dynaInfoId: "",
createBy: ""
},
{
title: "58到家家政35元优惠券免费领",
url: "http://bbs.pcauto.com.cn/topic-7913425.html",
appUrl: "pcautoclub://bbs-topic/7913425",
img: "http://img0.pcauto.com.cn/pcauto/forum/club/shequ/home/1507/660X330.jpg",
dynaInfoId: "",
createBy: ""
}
],
discover: [ //话题推荐
{
appUrl: "pcautoclub://club-talk/2111",
title: "#宝马奔驰对撞#"
},
{
appUrl: "pcautoclub://club-talk/2101",
title: "#女司机奇葩事#"
},
{
appUrl: "pcautoclub://club-talk/2081",
title: "#解读仪表盘图标#"
},
{
appUrl: "http://www.pcauto.com.cn/forum/club/goddess/",
title: "更多精彩话题"
}
],
forumIdsByUserId: [ //用户绑定车友圈列表
{
"forumIcon": "http://img.pconline.com.cn/images/upload/upc/tx/auto5/1304/02/c5/19467254_1364888380062_270x202.jpg",
"forumId": 14674,
"forumName": "嘉年华",
"forumUrl": "http://localhost.pcauto.com.cn/bbs7/forum-14674.html",
"latestTopicContent": "正文下一个呢后面就是上传的图片了\n\n\n\n",
"todayNewPostCount": 1535
}
],
forumIdsByBanner: [ //推荐车友圈列表
{
"forumIcon": "http://img.pconline.com.cn/images/upload/upc/tx/auto5/1304/02/c5/19467254_1364888380062_270x202.jpg",
"forumId": 14674,
"forumName": "嘉年华",
"forumUrl": "http://localhost.pcauto.com.cn/bbs7/forum-14674.html",
"latestTopicContent": "正文下一个呢后面就是上传的图片了\n\n\n\n",
"todayNewPostCount": 1535
}
]
}
后端应用接口:
CMS接口:
推荐车友圈: http://www.pcauto.com.cn/forum/club/app/1505/intf6927.html
焦点图和话题 http://www.pcauto.com.cn/forum/club/activeapp/
车友会
http://rdtrac.pc.com.cn/autoclub/wiki/appapi/4.2
1.1.3 获取用户绑定的车友圈列表 /appapi/1.0/forum/listForumsByUserId.do
1.2.1 车友圈信息 接口/appapi/1/forum/findForums.do [GET]
1.2.2 车友圈基本信息 接口/appapi/1/forum/findForumsByIds.do [GET]
2.1 话题页
接口: /xsp/s/club/v4.3/topicsPage.xsp?pageNo=1&pageSize=10&subjectId=993&title=&userId=33953964
说明 : 话题详情页面
是否分页:否
是否缓存:否
是否登陆:否
返回结果:
{
"subjectHead": { //话题头部,当翻页的时候此处为空
"code": 0,
"description": "欢迎大家参与讨论!dfdfdf d<br><br>dfdf非官方个非官方<br>速度是多少",
"logo": "http://www1.pcauto.com.cn/20150323/hotTopic/img/defLogo.jpg",
"message": "操作成功",
"pvCount": 30,
"replyCount": 3,
"subjectId": 993,
"title": "#我我我#",
"version": "v1.0(latest)"
},
"subjectImages": { //话题图片,当翻页的时候此处为空
"code": 0,
"imageList": [],
"message": "操作成功",
"subjectId": 993,
"version": "v1.0(latest)"
},
"subjectTopList": { //置顶话题列表,当翻页的时候此处为空
"code": 0,
"message": "操作成功",
"subjectId": 993,
"topList": [
{
"brandLogo": "",
"content": " #我我我#",
"createAt": 1435891522000,
"createBy": 35631313,
"dynaInfoId": 1249752,
"images": [],
"isVip": 0,
"nickName": "test_th1002",
"postCount": 0,
"praiseCount": 0,
"hadPraise": 0
},
{
"brandLogo": "",
"content": " #我我我#和交换机和",
"createAt": 1435891573000,
"createBy": 35631313,
"dynaInfoId": 1249753,
"images": [],
"isVip": 0,
"nickName": "test_th1002",
"postCount": 0,
"praiseCount": 0,
"hadPraise": 0
}
],
"version": "v1.0(latest)"
},
"dynaListHot": {//最热话题列表,当翻页的时候最热和最新的都会返回数据,客户端可以把两边的数据都整理好,那切换的时候就不用再请求了
"code": 0,
"dynaList": [
{
"brandLogo": "",
"content": " #我我我#",
"createAt": 1435891263000,
"createBy": 35631313,
"dynaInfoId": 1249751,
"images": [],
"isVip": 0,
"nickName": "test_th1002",
"postCount": 0,
"praiseCount": 0,
"hadPraise": 0
}
],
"message": "操作成功",
"pageCount": 1,
"pageNo": 1,
"pageSize": 10,
"total": 1,
"version": "v1.0(latest)"
},
"dynaListNew": {//最新话题列表,当翻页的时候最热和最新的都会返回数据,客户端可以把两边的数据都整理好,那切换的时候就不用再请求了
"code": 0,
"dynaList": [
{
"brandLogo": "",
"content": " #我我我#",
"createAt": 1435891263000,
"createBy": 35631313,
"dynaInfoId": 1249751,
"images": [],
"isVip": 0,
"nickName": "test_th1002",
"postCount": 0,
"praiseCount": 0,
"hadPraise": 0
}
],
"message": "操作成功",
"pageCount": 1,
"pageNo": 1,
"pageSize": 10,
"total": 1,
"version": "v1.0(latest)"
}
}
后端应用接口:
http://rdtrac.pc.com.cn/autoclub/wiki/appapi/4.3
1.1.1 话题头部信息 接口/appapi/1.0/subject/getSubjectHead.do [GET]
1.1.2 话题导语图片列表 接口/appapi/1.0/subject/getSubjectImages.do [GET]
1.1.3 话题置顶列表 接口/appapi/1.0/subject/getSubjectTopList.do [GET]
1.1.4 话题说说列表(最热) 接口/appapi/1.0/subject/getDynaListHot.do [GET]
1.1.5 话题说说列表(最新) 接口/appapi/1.0/subject/getDynaListNew.do [GET]
阅读数加一 接口/appapi/1.0/subject/updatePv.do?subjectId=[POST]
协议参数说明:
参数名 类型 必须 说明 subjectId String Y 话题ID(如果>0,则忽略title参数) title String Y 话题标题(与话题ID至少有一个) userId String N 用户ID pageNo String N 页码 pageSize String N 页面大小
2.2 违章查询
2.2.1 查询首页
(开发已完成,测试请连开发机代理)
请求url:/xsp/s/club/v4.3/illegalQuery.xsp
HTTP请求方式:GET
是否需要登录:false
返回格式:HTML页面
缓存方式:无
缓存时间:没有
返回结果:HTML
点击提交返回协议,触发协议来请求2.2.2里面的查询结果页的到接口页的html并显示结果。
pcaction://webview_searchInf/?regionStr=%E5%8E%A6%E9%97%A8&abbrStr=%E7%B2%A4&numStr=AEOC07&engineStr=AS1234&vinStr=DF0987&telStr=15813374371&yearStr=2010&monthStr=10
协议参数说明:
参数名 类型 必须 说明 regionStr String Y 查询地区 abbrStr String Y 车牌所在的省份 numStr String N 车牌号 engineStr String N 发动机号 vinStr String N 车架号 telStr String N 电话 yearStr String N 年 monthStr String N 月
应用接口:平安接口
2.2.2 查询结果页(显示详情或查询错误页)
输入车辆信息正确、匹配
请求url:/club/pingan/illegalInf?shopSign=%E6%B2%AAK79018&voitureNo=&engineNo=006496&carType=01
HTTP请求方式:GET
是否需要登录:false
返回格式:HTML页面
缓存方式:接口缓存
缓存时间:10min
输入信息不匹配,车辆信息错误的时候
请求url:/club/pingan/illegalInf?shopSign=%E6%B2%AAK79018&voitureNo=&engineNo=006496&carType=01
HTTP请求方式:GET
是否需要登录:false
返回格式:HTML页面
缓存方式:接口缓存
缓存时间:10min
请求参数:
参数名 类型 必须 说明 shopSign String Y 车牌号码 carType String Y 车牌类别 voitureNo String N 车架号 engineNo String N 发动机号 province String N 省份 cityName String N 城市名 user_mobile String N 手机号码 buydate String N 购买日期 insuranceExpired String N 保险到期日 carSeries String N 车系 buyprice String N 购买价格 carMaker String N 购车品牌 carModel String N 车型 miles String N 行驶里数 other String N 其他参数
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)