[[TOC]] = 电脑网4.3.0接口文档 = >mrobot代理环境说明: 192.168.22.242:8888[[BR]] ---------- == 1.基本约定 == {{{ 接口通用参数 req_enc=utf-8(必须放url后面) resp_enc=utf-8(必须放url后面) common_session_id=xxxx(以cookies中的优先) 接口URL: 接口URL 必填参数:参数名=xxx(多种情况用括号解析) 非必填参数:参数名=xxx(多种情况用括号解析) 说明文档参数:添加某特定参数可以直接看接口文档 是否需要登录:是,否 返回格式:json,ssi,xml 缓存方式:接口缓存,对象缓存 缓存时间:缓存时间 返回结果:结果可能情况 }}} == 2.接口列表 == === 2.1首页头条文章列表增加自媒体和视听文章类型=== {{{ 备注:产品库 - 排行榜列表。不需要分页,一次性获取排行榜列表。列表参数参考普通产品列表页,去掉详细参数,改成评价数。 数据来源: 手机排行:http://product.pconline.com.cn/hot/mobile/ 相机排行:http://product.pconline.com.cn/hot/dc/ 笔记本排行:http://product.pconline.com.cn/hot/notebook/ 超极本排行:http://product.pconline.com.cn/hot/notebook/c12087/ 平板排行:http://product.pconline.com.cn/hot/tabletpc/ 1)mrobot接口url:http://mrobot.pconline.com.cn/v3/product/rankList 2)后端接口:http://mrobot.pconline.com.cn/v3/product/rankList?rlid=701 HTTP请求方式:get 是否需要登录:否 返回格式:JSON 是否有缓存:有 缓存时间:1小时 请求参数: rlid:分类id,手机701,相机696,笔记本702,超级本697,平板703 返回参数: { "articleList": [ { "bigImage": "http://img0.pconline.com.cn/pconline/c_thumb.jpg", "cmtCount": 0, "id": "1234567", "image": "http://img0.xxx/123.jpg", "imageHor": "http://img0.xxx/1.jpg", "informationType": 8, //8为自媒体 "pubDate": "2015-7-22", "title": "标题标题标题", "url": "http://ivy.pconline.com.cn/xxxxx.html" } ], "focus": [], "pageNo": 1, "pageSize": 20, "topArticle": [ { "image": "http://img.pconline.com.cn/images/8257.jpg", "informationType": 9, //9为视听 "isExtend": "0", "seq": 1, "title": “标题标题标题", //标题 "host": “主播人:唐伯虎", //主播名 "to-uri": "http://g.pconline.com.cn/x/notebook/nbnews/ITnews/nbITnews/?FromApp&type=zt&browser=commonWebView&showShareButton=1", "updateAt": 1442851200000 } ], "topFocus": [], "total": 200 } }}} ----------