Changes between Version 26 and Version 27 of pcauto_bbs_1.0.0/intfs


Ignore:
Timestamp:
04/01/2013 10:29:49 AM (13 years ago)
Author:
huangwenxi
Comment:

2.11,2.12接口与4.0接口共用

Legend:

Unmodified
Added
Removed
Modified
  • pcauto_bbs_1.0.0/intfs

    v26 v27  
    377377 
    378378=== 2.11 帖子列表=== 
    379 {{{ 
    380  
    381 url:http://mrobot.pcauto.com.cn/proxy/bbs/forums/{论坛ID}?pageNo=%d&pageSize=%d&filter=%d 
    382  
    383 作用:获取某论坛下的帖子 
    384 使用范围:汽车网论坛app:pcautobbs 
    385  
    386 Http请求方式:get 
    387 是否需要登录:否 
    388 请求参数: 
    389 {论坛ID}: 分类ID 
    390 pageNo: 页数 
    391 pageSize: 每页条数 
    392 filter: 排序类型,1为按最新发表排序,2为按最新回复排序,3为按精华帖排序(则精华帖按时间排序显示),4为按置顶帖排序 
    393 //此接口为原客户端接口,filter=pick参数类型改为整型 
    394 返回参数: 
    395  
    396 { 
    397     "forum": { 
    398         "bbs": 19, 
    399         "forumId": 17025, 
    400         "name": "宝马3系论坛", 
    401         "parentId": 13372 
    402     }, 
    403     "pageNo": 1, 
    404     "pageSize": 20, 
    405     "topicList": [ 
    406         { 
    407             "author": { 
    408                 "name": "花裤衩4", 
    409                 "nickname": "花裤衩4", 
    410                 "userId": 26487730 
    411             }, 
    412             "createAt": 1352709979000, 
    413             "flag": "图", 
    414             "lastPoster": { 
    415                 "name": "qz26600953", 
    416                 "nickname": "宁静致远", 
    417                 "userId": 26600953 
    418             }, 
    419             "replyCount": 131, 
    420             "title": "冬天来了,小马换新衣了", 
    421             "topicId": 3402828, 
    422             "uri": "http://bbs.pcauto.com.cn/topic-3402828.html", 
    423             "view": 8750 
    424         }, 
    425         { 
    426             "author": { 
    427                 "name": "落寞的街角", 
    428                 "nickname": "落寞的街角", 
    429                 "userId": 26065969 
    430             }, 
    431             "createAt": 1352968263000, 
    432             "flag": "精", 
    433             "lastPoster": { 
    434                 "name": "不知道小姐kk", 
    435                 "nickname": "不知道小姐kk", 
    436                 "userId": 27731469 
    437             }, 
    438             "replyCount": 28, 
    439             "title": "开335一年感受!以及一些小小的变化!", 
    440             "topicId": 3408290, 
    441             "uri": "http://bbs.pcauto.com.cn/topic-3408290.html", 
    442             "view": 2088 
    443         } 
    444     ], 
    445     "total": 7080 
    446 } 
    447  
    448 }}} 
     379url:与客户端4.0共用接口,详细参考接口2.9:[http://trac.pc.com.cn/iphone/wiki/pcauto_pconline_4.0.0/intf#a2.9论坛的帖子列表重构][[BR]] 
     380作用:获取某论坛下的帖子[[BR]] 
     381使用范围:汽车网论坛app:pcautobbs 
     382 
    449383 
    450384=== 2.12 帖子终端页=== 
    451 {{{ 
    452  
    453 url:http://mrobot.pcauto.com.cn/v2/bbs/topics/{帖子ID}?pageNo=%d&pageSize=%d&filter=%d 
    454  
    455 作用:获取精选页面的分类 
    456 使用范围:汽车网论坛app:pcautobbs 
    457  
    458 Http请求方式:get 
    459 是否需要登录:否 
    460 请求参数: 
    461 {帖子ID}: 帖子Id,即topicId 
    462 pageNo:页数 
    463 pageSize:每页条数 
    464 filter:1为查看帖子,2为只看楼主 (新增参数) 
    465 返回参数:帖子页面,与客户端一样 
    466  
    467 }}} 
     385url:与客户端4.0共用接口,详细参考接口2.10:[http://trac.pc.com.cn/iphone/wiki/pcauto_pconline_4.0.0/intf#a2.10帖子页][[BR]] 
     386作用:获取精选页面的分类[[BR]] 
     387使用范围:汽车网论坛app:pcautobbs