| Version 1 (modified by wuhuixuan, 11 years ago) (diff) |
|---|
Table of Contents
1.基本约定
mrobot开发机代理:192.168.10.199 端口为 1080
mrobot测试机代理:192.168.10.198 端口为 1080
接口通用参数
req_enc=utf-8(必须放url后面)
resp_enc=utf-8(必须放url后面)
common_session_id=xxxx(以cookies中的优先)
接口URL: 接口URL
| 参数名 | 类型 | 必须 | 说明 |
说明文档参数:添加某特定参数可以直接看接口文档
是否需要登录:是|否
返回格式:json|xml|ssi,
缓存方式:接口缓存(接口中返回的响应头里面的 Cache-Control),对象缓存()
缓存时间:缓存时间
返回结果:结果可能情况
2.接口列表
2.1 资讯模块
2.1.1 资讯列表
原mrobot接口: http://mrobot.pcgames.com.cn/v3/cms/channels/{channelid}
HTTP请求方式:get
是否需要登录:false
返回格式:json
缓存方式:
缓存时间:
说明:分页返回数据,每个资讯新增informationType字段标明类型
请求参数:
| 参数名 | 类型 | 必须 | 说明 |
返回数据结构:与电脑网资讯列表保持一致: http://mrobot.pconline.com.cn/v2/cms/channels/1?pageSize=20&pageNo=1
2.1.2 文章终端页
原mrobot接口: http://mrobot.pcgames.com.cn/v3/cms/articles/4971942?size=18&template=(null)
HTTP请求方式:get
是否需要登录:false
返回格式:html
缓存方式:
缓存时间:
说明:支持设置字体和读图模式
请求参数:
| 参数名 | 类型 | 必须 | 说明 |
2.1.3 文章评论列表
原mrobot接口: http://mrobot.pcgames.com.cn/v3/cmt/topics/13509342?reverse=0&support=1
HTTP请求方式:get
是否需要登录:false
返回格式:json
缓存方式:
缓存时间:
说明:返回数据改为json,分页返回数据,支持正倒序
请求参数:
| 参数名 | 类型 | 必须 | 说明 |
返回数据结构:参考电脑网文章评论列表 http://mrobot.pconline.com.cn/v3/cmt/new_topics/13359138?pageNo=1&pageSize=20&reverse=0&articleId=6571490
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)