Changes between Version 106 and Version 107 of baby/interface
- Timestamp:
- 07/31/2014 09:10:44 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
baby/interface
v106 v107 1268 1268 {{{ 1269 1269 备注:是否已收藏 1270 接口开发:吴全贵 1271 请求URL: 1272 HTTP请求方式:get 1270 接口开发:谢思华 1271 请求URL:http://baike.pcbaby.com.cn/intf/app/2.0/favor_iscollect_104.jsp 1272 HTTP请求方式:get 1273 是否需要登录:否 1274 返回格式:JSON 1275 缓存方式:无 1276 缓存时间:无 1277 请求参数: 1278 设置header Cookie = "common_session_id=xxxx" 1279 type:收藏对象类型(0文章;5帖子;1百科;6问答;7课程;8食谱) 1280 id:收藏对象标识码,可以是ID也可以是URL 1281 返回参数 1282 { 1283 msg: //提示信息 “已收藏”、“未收藏” 1284 result: //状态码 1:正常返回 ; 0: 返回错误 1285 } 1286 结果示例: 1287 { 1288 "msg":"已收藏", 1289 "result":"1" 1290 } 1291 { 1292 "msg":"未收藏", 1293 "result":"1" 1294 } 1295 }}} 1296 1297 ==== 6.6删除收藏 ==== 1298 {{{ 1299 备注:删除收藏 1300 接口开发:谢思华 1301 请求URL:http://baike.pcbaby.com.cn/intf/app/2.0/favor_uncollect_103.jsp 1302 HTTP请求方式:post 1273 1303 是否需要登录:否 1274 1304 返回格式:JSON … … 1283 1313 { 1284 1314 msg: //提示信息 1285 result: // 1286 } 1287 }}} 1288 1289 ==== 6. 6删除收藏 ====1290 {{{ 1291 备注: 删除收藏1315 result: //1:取消收藏成功; 0:该文章不存在或已取消收藏 1316 } 1317 }}} 1318 1319 ==== 6.7添加收藏 ==== 1320 {{{ 1321 备注:添加收藏 1292 1322 接口开发:谢思华 1293 请求URL:http://baike.pcbaby.com.cn/intf/app/2.0/favor_ uncollect_103.jsp1323 请求URL:http://baike.pcbaby.com.cn/intf/app/2.0/favor_collect_102.jsp 1294 1324 HTTP请求方式:post 1295 1325 是否需要登录:否 … … 1298 1328 缓存时间:无 1299 1329 请求参数: 1330 设置header Cookie = "common_session_id=xxxx" 1300 1331 type:收藏对象类型(0文章;5帖子;1百科;6问答;7课程;8食谱) 1301 common_session_id:登录用户id1302 1332 token:设备唯一号 1303 1333 id:收藏对象标识码,可以是ID也可以是URL 1304 返回参数 1305 { 1306 msg: //提示信息 1307 result: //1:取消收藏成功; 0:该文章不存在或已取消收藏 1308 } 1309 }}} 1310 1311 ==== 6.7添加收藏 ==== 1312 {{{ 1313 备注:添加收藏 1314 接口开发:吴全贵 1315 请求URL: 1316 HTTP请求方式:post 1317 是否需要登录:否 1318 返回格式:JSON 1319 缓存方式:无 1320 缓存时间:无 1321 请求参数: 1322 设置header Cookie = "common_session_id=xxxx"; 1323 token:设备唯一号 1324 id: 1325 type:1文章 2帖子 3百科 4问答 5课程 6食谱 1326 title: 1327 返回参数 1328 { 1329 msg: 1330 result: 1334 title:文章标题 1335 返回参数:JSON 1336 { 1337 "msg":"提示信息", 1338 "result":"1/0" 1339 } 1340 结果示例: 1341 { 1342 "msg":"收藏成功", 1343 "result":"1" 1344 } 1345 1346 { 1347 "msg":"用户已收藏该文章", 1348 "result":"0" 1331 1349 } 1332 1350 }}}
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)