| Version 11 (modified by pangchongyang, 15 years ago) (diff) |
|---|
获取指定话题的所有帖子;
获取指定话题里某用户的所有帖子。
| URL | 开发环境 http://dev85.pcauto.com.cn/proxy/bbs/topics/$topic_ID 生产环境: http://mrobot.pcauto.com.cn/proxy/bbs/topics/$topic_ID |
| response MIME | text/html |
Params
| name | required | desc |
| pageNo | n | 分页第几页 |
| pageSize | n | |
| authorId | n | 只查看某 author ID 发表的所有帖子 |
Note
response MIME 为 text/html ,不是 application/json ;分页信息隐含在 response headers 里。
example
http://dev85.pcauto.com.cn/v2/bbs/topics/2100735 curl http://dev85.pcauto.com.cn/v2/bbs/topics/2100735 -D /tmp/foo-header.txt cat /tmp/foo-header.txt
HTTP/1.1 200 OK Server: nginx/0.8.42 Date: Wed, 04 May 2011 10:19:44 GMT Content-Type: text/html; charset=UTF-8 Transfer-Encoding: chunked Connection: keep-alive X-Page: 1,91
| X-Page | 当前第几页,共多少页 |
Example
curl http://dev85.pcauto.com.cn/proxy/bbs/topics/2479944 curl http://dev85.pcauto.com.cn/proxy/bbs/topics/2479944?pageNo=2&pageSize=5 curl http://dev85.pcauto.com.cn/proxy/bbs/topics/2479944?authorId=32726
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)