Changes between Version 5 and Version 6 of 2ndchild/interface


Ignore:
Timestamp:
12/06/2013 05:30:50 PM (12 years ago)
Author:
hejingdong
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • 2ndchild/interface

    v5 v6  
    3535{{{ 
    3636URL: 
     37作用: 
    3738提交方式:GET 
    3839参数:无 
    3940返回结果:JSON 
     41[ 
     42    { 
     43        "id":1, 
     44        "img":"http://img0.pcauto.com.cn/pcauto/1310/16/3233041_Img388290093_thumb.jpg", 
     45        "title":"首页资讯", 
     46        "view":"information-home/", 
     47        "url":"http://www.baidu.com" 
     48    }, 
     49    { 
     50        "id":2, 
     51        "img":"http://img0.pcauto.com.cn/pcauto/1310/16/3233041_Img388290093_thumb.jpg", 
     52        "title":"二胎政策", 
     53        "view":"more/", 
     54        "url":"http://www.baidu.com" 
     55    }, 
     56    { 
     57        "id":3, 
     58        "img":"http://img0.pcauto.com.cn/pcauto/1310/16/3233041_Img388290093_thumb.jpg", 
     59        "title":"二胎百科", 
     60        "view":"more/", 
     61        "url":"http://www.baidu.com" 
     62    }, 
     63    { 
     64        "id":4, 
     65        "img":"http://img0.pcauto.com.cn/pcauto/1310/16/3233041_Img388290093_thumb.jpg", 
     66        "title":"活动专区", 
     67        "view":"more/", 
     68        "url":"http://www.baidu.com" 
     69    }, 
     70    { 
     71        "id":5, 
     72        "img":"http://img0.pcauto.com.cn/pcauto/1310/16/3233041_Img388290093_thumb.jpg", 
     73        "title":"收藏", 
     74        "view":"more/", 
     75        "url":"http://www.baidu.com" 
     76    }, 
     77    { 
     78        "id":6, 
     79        "img":"http://img0.pcauto.com.cn/pcauto/1310/16/3233041_Img388290093_thumb.jpg", 
     80        "title":"设置", 
     81        "view":"more/", 
     82        "url":"http://www.baidu.com" 
     83    } 
     84] 
    4085 
    4186}}} 
     
    4388{{{ 
    4489URL: 
     90作用: 
    4591提交方式:GET 
    4692参数:无 
    4793返回结果:JSON 
    48  
     94{ 
     95    "channels": [ 
     96        { 
     97            "channelId": 22479, 
     98            "name": "备孕"//栏目名称 
     99        }, 
     100        { 
     101            "channelId": 22478, 
     102            "name": "高龄产妇"//栏目名称 
     103        } 
     104    ] 
     105} 
    49106}}} 
    50107=== 3.资讯文章列表接口 === 
    51108{{{ 
    52109URL: 
     110作用: 
    53111提交方式:GET 
    54112参数: 
    55113  channelId-栏目id 
    56114返回结果:JSON 
    57  
     115{ 
     116  "data": [ 
     117    { 
     118      "id": "3473048", 
     119      "image": "http://img0.pcauto.com.cn/pcauto/1311/25/g_3473048_1385345794838_240x160.jpg", 
     120      "pubDate": "2013-11-25", 
     121      "title": "标题", 
     122      "type": 1, 
     123      "url": "http://www.pcauto.com.cn/nation/347/3473048.html" 
     124    }, 
     125    { 
     126      "id": "3473181", 
     127      "image": "http://img0.pcauto.com.cn/pcauto/1311/25/g_3473181_1385343847663_240x160.jpg", 
     128      "pubDate": "2013-11-25", 
     129      "title": "标题", 
     130      "type": 1, 
     131      "url": "http://www.pcauto.com.cn/nation/347/3473181.html" 
     132    } 
     133  ], 
     134  "focus": [ 
     135    { 
     136      "id": "3469260", 
     137      "image": "http://img0.pcauto.com.cn/pcauto/guangzhou/2013/jsjx/1311/11243.jpg", 
     138      "pubDate": "2013-11-25", 
     139      "title": "标题", 
     140      "topicUrl": "http://www.pcauto.com.cn/guangzhou/346/3469260.html", 
     141      "url": "http://www.pcauto.com.cn/guangzhou/346/3469260.html" 
     142    } 
     143  ], 
     144  "pageNo": 1, 
     145  "pageSize": 20, 
     146  "topData": [ 
     147    { 
     148      "id": "4245514", 
     149      "image": "http://img0.pcauto.com.cn/pcauto/1311/25/3463325_chezhan.jpg", 
     150      "pubDate": "2013-11-25", 
     151      "seq": 4, 
     152      "title": "标题", 
     153      "to-uri": "pcautobrowser://bbs-topic/4245514", 
     154      "type": 2 
     155    } 
     156  ], 
     157  "topFocus": [ 
     158    { 
     159      "cc-uri": "", 
     160      "image": "http://imgad0.pcauto.com.cn/ivy/image/201311/7/13837866234700.jpg", 
     161      "seq": 3, 
     162      "title": "广告", 
     163      "to-uri": "http://ivy.pcauto.com.cn/adpuba/click?adid=291573&id=auto.khd.zx.syjdt.", 
     164      "vc-uri": "http://ivy.pcauto.com.cn/adpuba/show?adid=291573&id=auto.khd.zx.syjdt.&media=js" 
     165    } 
     166  ], 
     167  "pageNo": 1, 
     168  "pageSize": 20, 
     169  "total": 298 
     170} 
    58171}}} 
    59172=== 4.资讯文章终端接口 === 
    60173{{{ 
    61174URL: 
     175作用:获取文章内容 
    62176提交方式:GET 
    63177参数: 
    64178  articleId-文章id 
    65179返回结果:HTML页面 
     180同时在html源代码中加入以下内容,此为附加信息 
     181<!--  
     182/*@_HTML_META_START_     
     183{"url":"http://best.pconline.com.cn/discovery_art.jsp?topicId=3064","title":"东芝 3TB DT01ACA300 7200转 64M SATA3 台式机硬盘","firstPic":"http://img.pconline.com.cn/images/upload/upc/tx/pc_best/1309/02/c0/25177373_1378101718895_350x350.jpg"} 
     184_HTML_META_END_@*/ 
     185 --> 
     186url:用于获取评论的url 
     187title:文章的标题 
     188firstPic:用于分享,文章终端的第一张图 
    66189}}} 
    67190 
     
    69192{{{ 
    70193URL: 
    71 提交方式:GET 
    72 参数: 
    73 返回结果:JSON 
     194作用: 
     195提交方式:GET 
     196参数: 
     197返回结果:JSON 
     198{ 
     199  "comments": [ 
     200    {  //没有引用其他评论的评论 
     201      "1": { //表达其引用关系的key 
     202        "id":"24991904",//帖子id 
     203        "name": "不是网易的江苏省盐城市网友&nbsp;帅气飞扬: ",  //用户名称 
     204        "floor": "1737",  //楼层 
     205        "time": "2013-01-05 09:05:40",  //时间 
     206        "content": "内容过于暴力,已和谐" //内容 
     207      }, 
     208      "current":"1",               //当前最外层引用标识 
     209      "support":"10086"       //"顶"数量 
     210      "expand":false  //判断是否展开,默认为false 
     211    }, 
     212    { 
     213      "3": { 
     214        "id":"24991804",//帖子id 
     215        "name": "不是网易的江苏省盐城市网友&nbsp;帅气飞扬: ", 
     216        "floor": "1737", 
     217        "time": "2013-01-05 09:05:40", 
     218        "content": "内容过于暴力,已和谐" 
     219      }, 
     220      "2": { 
     221        "id":"24941904",//帖子id 
     222        "name": "不是网易的江苏省盐城市网友&nbsp;帅气飞扬: ", 
     223        "floor": "1737", 
     224        "time": "2013-01-05 09:05:40", 
     225        "content": "内容过于暴力,已和谐" 
     226      }, 
     227      "1": { 
     228        "id":"24491904",//帖子id 
     229        "name": "不是网易的江苏省盐城市网友&nbsp;帅气飞扬: ", 
     230        "floor": "1737", 
     231        "time": "2013-01-05 09:05:40", 
     232        "content": "内容过于暴力,已和谐" 
     233      }, 
     234      "4": { 
     235        "id":"24993904",//帖子id 
     236        "name": "不是网易的江苏省盐城市网友&nbsp;帅气飞扬: ", 
     237        "floor": "1737", 
     238        "time": "2013-01-05 09:05:40", 
     239        "content": "内容过于暴力,已和谐" 
     240      }, 
     241      "current":"4", 
     242      "support":"10086" //顶数 
     243      "expand":false  //判断是否展开,默认为false 
     244    } 
     245  ], 
     246  "hot-comments": [ 
     247    {  //没有引用其他评论的评论 
     248      "1": { //表达其引用关系的key 
     249        "id":"24691904",//帖子id 
     250        "name": "不是网易的江苏省盐城市网友&nbsp;帅气飞扬: ",  //用户名称 
     251        "floor": "1737",  //楼层 
     252        "time": "2013-01-05 09:05:40",  //时间 
     253        "content": "内容过于暴力,已和谐" //内容 
     254      }, 
     255      "current":"1" 
     256      "support":"10086" //顶数 
     257      "expand":false  //判断是否展开,默认为false 
     258    } 
     259  ] 
     260} 
    74261 
    75262}}} 
     
    78265{{{ 
    79266URL: 
     267作用: 
    80268提交方式:GET 
    81269参数: 
     
    86274{{{ 
    87275URL: 
     276作用: 
    88277提交方式:GET 
    89278参数: 
     
    94283{{{ 
    95284URL: 
     285作用: 
    96286提交方式:GET 
    97287参数: 
     
    102292{{{ 
    103293URL: 
     294作用: 
    104295提交方式:POST 
    105296参数: 
     
    110301{{{ 
    111302URL: 
     303作用: 
    112304提交方式:POST 
    113305参数: 
     
    118310{{{ 
    119311URL: 
     312作用: 
    120313提交方式:GET 
    121314参数: 
     
    126319{{{ 
    127320URL: 
     321作用: 
    128322提交方式:POST 
    129323参数: 
     
    134328{{{ 
    135329URL: 
     330作用: 
    136331提交方式:GET 
    137332参数: 
     
    142337{{{ 
    143338URL: 
     339作用: 
    144340提交方式:GET 
    145341参数: 
     
    150346{{{ 
    151347URL: 
     348作用: 
    152349提交方式:GET 
    153350参数: 
     
    158355{{{ 
    159356URL: 
     357作用: 
    160358提交方式:GET 
    161359参数: 
     
    168366{{{ 
    169367URL: 
    170 提交方式:POST 
    171 参数: 
    172 返回结果:JSON 
     368作用: 
     369提交方式:POST 
     370参数: 
     371  二进制的压缩包 
     372返回结果:JSON 
     373  HTTPSQS_PUT_ERROR:接收错误 
     374  HTTPSQS_PUT_OK:接收正常 
     375PS:参照接口http://youpin.pchouse.com.cn/jsp/intf/update_user_token.jsp(许建有) 
    173376 
    174377}}} 
     
    177380{{{ 
    178381URL: 
    179 提交方式:POST 
    180 参数: 
    181 返回结果:JSON 
    182  
    183 }}} 
     382作用: 
     383提交方式:POST 
     384  username:用户名 
     385  password:密码 
     386参数: 
     387返回结果:JSON 
     388{ 
     389    "status": 0, 
     390    "message": "ok", 
     391    "session": "123456", 
     392    "userId": 25520497, 
     393    "common_session_id": "123456" 
     394} 
     395}}}