Changes between Version 3 and Version 4 of pconline_4.2.0/interface


Ignore:
Timestamp:
07/27/2015 02:20:36 PM (11 years ago)
Author:
luzhentao
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • pconline_4.2.0/interface

    v3 v4  
    2323{{{ 
    2424 
    25 1)mrobot接口url: 
    26           http://mrobot.pconline.com.cn/v3/ad 
     25 1)mrobot接口url: http://mrobot.pconline.com.cn/v3/ad 
    2726 2)后端接口: 
    2827  HTTP请求方式:get 
     
    7170=== 2.2 [=#point202 首页文章列表特型展示] === 
    7271{{{ 
    73    URL: http://mrobot.pconline.com.cn/v2/cms/channels/1?pageSize=20&pageNo=1 
    74        请求方式:HTTP GET 
    75        说明:首页资讯列表 - 头条 
    76 返回(json格式): 
    77 普通文章类型: 
    78  
     72备注:首页资讯列表 - 头条 
     73 1)mrobot接口url:http://mrobot.pconline.com.cn/v2/cms/channels/1?pageSize=20&pageNo=1 
     74 2)后端接口: 
     75  HTTP请求方式:get 
     76  是否需要登录:否 
     77  返回格式:JSON 
     78  是否有缓存:有 
     79  缓存时间:5分钟 
     80  请求参数: 
     81返回参数: 
     82{ 
     83"articleList”: 
     84 [ 
     85   //普通文章类型 
     86 { 
     87 "bigImage": “http://img0.pconline.com.cn/pconline/c_thumb.jpg”, 
     88 "cmtCount": 0, 
     89 "id": “1234567”, 
     90"image": “http://img0.xxx/123.jpg”,  //兼容旧版,原字段保留 
     91"imageHor": “http://img0.xxx/1.jpg”, //横图情况,若没有横图这个字段去掉 
     92 "informationType": 1, 
     93 "pubDate": "2015-7-22”, 
     94"title": "标题标题标题”, 
     95 "url": “http://ivy.pconline.com.cn/xxxxx.html”, 
     96 }, 
     97//图集类型 
    7998   { 
    80  
    81         "bigImage": “http://img0.pconline.com.cn/pconline/c_thumb.jpg", 
    82  
    83         "cmtCount": 0, 
    84  
    85         "id": “1234567”, 
    86  
     99        "image": “http://imgxxx/c_thumb.jpg”, //兼容旧版,原字段保留 
     100        “imgUrls”: [ 
     101                       “http://imgxxx/c_thumb1.jpg”, 
     102                        “http://imgxxx/c_thumb2.jpg”,   //图集三张缩略图情况 
     103                        “http://imgxxx/c_thumb3.jpg” 
     104                         ], 
     105          "imgCount": 15, 
     106       "informationType": 1, 
     107       "isExtend": “0”, 
     108       "preView": “文字文字文字”, 
     109       "pubDate": “2015-7-22”, 
     110       "seq": 7, 
     111       "title": "文字文字文字”, 
     112       “to-uri": “pconlinebrowser://album-photo/14686”, 
     113       "updateAt": 1437494400000 
     114  }, 
     115//直播类型 
     116 { 
     117       "cmtCount": 333, 
     118       "id": “471”, 
    87119        "image": “http://img0.xxx/123.jpg”,  //兼容旧版,原字段保留 
    88  
    89         "imageHor": “http://img0.xxx/1.jpg”, //横图情况,若没有横图这个字段去掉 
    90  
    91        "informationType": 1, 
    92  
    93         "pubDate": "2015-7-22", 
    94  
    95         "title": "标题标题标题", 
    96  
    97         "url": “http://ivy.pconline.com.cn/xxxxx.html", 
    98  
     120        "imageHor": “http://img0.xxx/1.jpg”, //横图 
     121        "informationType": 4, 
     122        "seq": 7, 
     123        "pubTime": “2015年6月2日至6日”, 
     124        "status": "直播已结束”, 
     125        "title": "标题标题标题”, 
     126        "url": “http://ivy.pconline.com.cn/xxxxx.html”, 
     127   }, 
     128//专题类型 
     129 { 
     130        "image": “http://imgxxx/c_thumb.jpg”, //兼容旧版,原字段保留 
     131        "imageHor": “http://img0.xxx/1.jpg”, //横图情况 
     132       "informationType": 5, 
     133        "isExtend": “0”, 
     134        "preView": “文字文字文字”, 
     135        "pubDate": “2015-7-22”, 
     136        "seq": 7, 
     137        "title": "文字文字文字”, 
     138        “to-uri": “pconlinebrowser://album-photo/14686”, 
     139        "updateAt": 1437494400000 
    99140   } 
    100  
    101  
    102  
    103  
    104  
    105 图集类型: 
    106  
    107    { 
    108  
    109         "image": “http://imgxxx/c_thumb.jpg”, //兼容旧版,原字段保留 
    110  
    111         “imgUrls”: [ 
    112  
    113                     “http://imgxxx/c_thumb1.jpg”, 
    114  
    115                     “http://imgxxx/c_thumb2.jpg”,   //图集三张缩略图情况 
    116  
    117                     “http://imgxxx/c_thumb3.jpg” 
    118  
    119                    ], 
    120  
    121         "imgCount": 15, 
    122  
    123         "informationType": 1, 
    124  
    125         "isExtend": “0”, 
    126  
    127         "preView": “文字文字文字”, 
    128  
    129         "pubDate": “2015-7-22", 
    130  
    131         "seq": 7, 
    132  
    133         "title": "文字文字文字", 
    134  
    135         “to-uri": “pconlinebrowser://album-photo/14686”, 
    136  
    137         "updateAt": 1437494400000 
    138  
    139    } 
    140  
    141  
    142  
    143 直播类型: 
    144  
    145    { 
    146  
    147        "cmtCount": 333, 
    148  
    149         "id": “471”, 
    150  
    151         "image": “http://img0.xxx/123.jpg”,  //兼容旧版,原字段保留 
    152  
    153         "imageHor": “http://img0.xxx/1.jpg”, //横图 
    154  
    155         "informationType": 4, 
    156  
    157         "seq": 7, 
    158  
    159         "pubTime": “2015年6月2日至6日", 
    160  
    161         "status": "直播已结束", 
    162  
    163         "title": "标题标题标题", 
    164  
    165         "url": “http://ivy.pconline.com.cn/xxxxx.html", 
    166  
    167    } 
    168  
    169  
    170  
    171 专题类型: 
    172  
    173    { 
    174  
    175         "image": “http://imgxxx/c_thumb.jpg”, //兼容旧版,原字段保留 
    176  
    177         "imageHor": “http://img0.xxx/1.jpg”, //横图情况 
    178  
    179        "informationType": 5, 
    180  
    181         "isExtend": “0”, 
    182  
    183         "preView": “文字文字文字”, 
    184  
    185         "pubDate": “2015-7-22", 
    186  
    187         "seq": 7, 
    188  
    189         "title": "文字文字文字", 
    190  
    191         “to-uri": “pconlinebrowser://album-photo/14686”, 
    192  
    193         "updateAt": 1437494400000 
    194  
    195    } 
    196  
     141 ], 
     142"focus": 
     143[], 
     144"pageNo": 
     1451, 
     146"pageSize": 
     14720, 
     148"topArticle": 
     149[], 
     150"topFocus": 
     151[], 
     152"total": 
     153200 
     154} 
    197155}}} 
    198156 
    199157=== 2.3 [=#point203 产品库 - 排行榜列表] === 
    200158{{{ 
    201 URI: 
    202         请求方式:HTTP GET 
    203         说明:产品库 - 排行榜列表 
    204        返回(json格式) 
     159备注:产品库 - 排行榜列表 
     160 1)mrobot接口url: 
     161 2)后端接口: 
     162  HTTP请求方式:get 
     163  是否需要登录:否 
     164  返回格式:JSON 
     165  是否有缓存:有 
     166  缓存时间:30分钟 
     167  请求参数: 
     168返回参数: 
    205169{ 
    206 "data": 
    207 [{ 
    208       "id":576986,                                 //产品id 
     170"data":[ 
     171{ 
     172      "id":576986,                                                                                                         //产品id 
    209173      "idxPic":"http://img.pconline.com.cn/images/product/5769/576986/q_cn.jpg”,   //图片 
    210       "price":5288,                                 //价格 
    211       "shortName":"三星Galaxy S6”,     //名称 
    212       "commentScore”:90,                     //评分 
    213       “cmtNum”:12”,                              //评价数 
     174      "price":5288,                                                                                                       //价格 
     175      "shortName":"三星Galaxy S6”,                                                                            //名称 
     176      "commentScore”:90,                                                                                           //评分 
     177      “cmtNum”:12”,                                                                                                    //评价数 
    214178} 
    215179] 
     
    217181 
    218182读取数据: 
    219  
    220  手机排行:http://product.pconline.com.cn/hot/mobile/ 
    221  
     183手机排行:http://product.pconline.com.cn/hot/mobile/ 
    222184相机排行:http://product.pconline.com.cn/hot/dc/ 
    223  
    224185笔记本排行:http://product.pconline.com.cn/hot/notebook/ 
    225  
    226186超极本排行:http://product.pconline.com.cn/hot/notebook/c12087/ 
    227  
    228187平板排行:http://product.pconline.com.cn/hot/tabletpc/ 
    229188 
    230  
    231  
    232189不需要分页,一次性获取排行榜列表。列表参数参考普通产品列表页,去掉详细参数,改成评价数。 
    233  
    234190}}} 
    235191 
    236192=== 2.4 [=#point204 栏目列表] === 
    237193{{{ 
    238    iOS: http://mrobot.pconline.com.cn/configs/pconline_v7_cms_iphone_channel_tree 
    239        请求方式:HTTP GET 
    240        说明:获取栏目列表 
    241        返回(json格式) 
    242        { 
    243  "news": 
    244 [ 
     194备注:获取栏目列表 
     195 1)mrobot接口url 
     196    iOS:http://mrobot.pconline.com.cn/configs/pconline_v7_cms_iphone_channel_tree 
     197Android:http://mrobot.pconline.com.cn/configs/pconline_v7_cms_android_channel_tree 
     198 HTTP请求方式:get 
     199是否需要登录:否 
     200返回格式:JSON 
     201是否有缓存:无 
     202请求参数:无 
     203返回参数(iOS):   
     204 { 
     205 "news":[ 
    245206      ["1","头条","609”], 
    246207      ["5","Apple","610”], 
     
    263224      ["3","导购","616"], 
    264225], 
    265   "events": 
    266   [], 
    267  "product": 
    268   [], 
    269  "area": 
    270   [ 
     226  "events":  [], 
     227 "product":  [], 
     228 "area":  [ 
    271229      ["100000", "全国", "6978"], 
    272230      ["110000", "北京", "6978"], 
     
    303261} 
    304262安卓: 
    305  
    306263安卓端默认定制排序: 
    307  
    308264 头条 新闻 评测  图赏 手机 直播 视听(新增)  
    309  
    310265 安卓端备选定制排序: 
    311  
    312266 笔记本 平板 DIY外设(改名) 相机 无人机(新增) 家电 智能科技(新增) 软件 企业圈(新增) 网络圈(新增) 导购 
    313  
    314267iOS: 
    315  
    316268iOS端默认定制排序: 
    317  
    318269 头条  Apple 新闻 评测  图赏 手机 直播  视听(新增)  
    319  
    320270iOS端备选定制排序: 
    321  
    322271笔记本 平板 DIY外设(改名) 相机 无人机(新增) 家电 智能科技(新增) 软件(iOS端新增) 企业圈(新增) 网络圈(新增) 导购 
    323  
    324272删除: 
    325  
    326273需要删除的: 
    327  
    328274 行情、超级本、电视、摄像机、MID、企业 
    329  
    330 }}} 
     275}}}