Changes between Version 1 and Version 2 of baby2.3_developers/interface


Ignore:
Timestamp:
05/24/2015 04:32:52 PM (11 years ago)
Author:
lianchijin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • baby2.3_developers/interface

    v1 v2  
    2929 
    3030== 二.接口列表 == 
    31 === 1.0 个人中心 === 
    32 ==== 1.1 问答回复数  ==== 
     31=== 1.0怀孕首页 === 
    3332{{{ 
    34   备注:获取新的未读问答回复数(接口已完成,使用请连开发机代理) 
    35   (参考接口:http://trac.pc.com.cn/kuaiwen_baby/ticket/54) 
    36   接口开发:吴全贵,陈子洋 
    37   mrobot接口url:http://mrobot.pcbaby.com.cn/s/qzbd/kuaiwen/myQuestionReplyNums.xsp(已放在192.168.75.40开发机) 
    38   后端url:http://kuaiwen.pcbaby.com.cn/intf/app/my_question_reply_nums.jsp(已在线上) 
     33  备注:怀孕首页接口(只针对怀孕首页的数据,备孕、育儿首页接口参照v2.2.0不变) 
     34  说明:v2.2.0首页接口 http://trac.pc.com.cn/iphone/wiki/baby2.2_developers/interface#a6.0首页 
     35   
     36  1)mrobot接口url: 
     37     备孕首页:http://mrobot.pcbaby.com.cn/v2/qzbd/home/1?v=230 
     38     怀孕首页:http://mrobot.pcbaby.com.cn/v2/qzbd/home/2?v=230&lemmaId=281 
     39     育儿首页:http://mrobot.pcbaby.com.cn/v2/qzbd/home/3?v=230 
     40  2)后端接口: 
     41     怀孕首页:http://www.pcbaby.com.cn/app/qzbd2/hysy/ 
     42     每日知识接口:http://baike.pcbaby.com.cn/intf/app/2.0/timeline_content_list_301.jsp?lemmaId=31 
    3943 
    4044  HTTP请求方式:get 
    4145  是否需要登录:否 
    4246  返回格式:JSON 
    43   是否有缓存: 
     47  是否有缓存: 
    4448  缓存时间: 
    4549  请求参数: 
    46   设置header  Cookie = "common_session_id=xxxx"; 
    47   v = 220  //版本号 
    48  
    49   返回参数 
    50 { 
    51     "ret": 0, //返回状态,0=成功,非0=失败 
    52     "questionsCount": 10,  //问答回复数 
    53     "desc": "提示信息" //错误提示信息 
    54 } 
    55  
     50     {id}        //栏目id 
     51     v = 230   //版本号 
     52     lemmaId=281  //时间轴id 
     53   
     54  返回参数: 
     55  { 
     56   focus:[  //焦点图数据 
     57     { 
     58       id:  //  id:"articleId=234&expertId=112&num=111"(  推“专栏详情”的推广时id为文章id&专家id&专栏期数id) 
     59       image: 
     60       title: 
     61       type:论坛(1列表、2终端);亲子学院(3列表、4终端);活动(5列表、6终端);工具(7终端);食谱(8终端);资讯(9终端); 
     62            问答(10终端);百科(11终端);崔玉涛视频(12视频文章终端);专栏详情(13) 
     63       url:(活动、工具终端打开需要url,不需要时为空字符串) 
     64     } 
     65   ], 
     66  "timeline": [ //每日知识内容 
     67      { 
     68            "section": [ //发育指标 
     69                { 
     70                    "description": "胎长约38.5cm,胎重约1600g。这时候他已有4个佛手柑那么重了。现在,你的体重可能已经增加了8.5kg。小腹更加突出了。", 
     71                    "id": 245, 
     72                    "image": "http://img.pcbaby.com.cn/images/upload/upc/tx/baby_baike/1408/01/c0/36948482_1406875934412.jpg", 
     73                    "title": "胎儿发育和妈妈变化", 
     74                    "type": "11" 
     75                } 
     76            ], 
     77            "sectionListCount": 1, 
     78            "title": "发育指标" 
     79      }, 
     80     { 
     81            "section": [ //知识点概括 
     82                { 
     83                    "description": "进入孕后期,你可能会感到尿频和总有尿不完的感觉。这个阶段有将近80%的孕妇为尿频困扰,很多孕妈妈在夜间需要更频繁地起床跑厕所。", 
     84                    "id": 511, 
     85                    "title": "孕妇尿频", 
     86                    "type": "11" 
     87                }, 
     88                { 
     89                    "description": "孕期气短通常没有什么大碍,也很正常。在日常生活中把节奏放慢一些,活动或运动的时候,不要太勉强自己。", 
     90                    "id": 633, 
     91                    "title": "孕妇气短", 
     92                    "type": "11" 
     93                } 
     94            ], 
     95            "sectionListCount": 4, 
     96            "title": "准爸准妈必读" 
     97      } 
     98   ], 
     99   recommendChannel:[    //热门栏目(增加家庭育儿) 
     100    { 
     101      title:  //根据栏目名称跳转至对应模块 
     102      type:  //热门栏目类型(type=5表示家庭育儿) 
     103             //type=1 阅读,type=2 百科,type=3 交流圈,type=4 每日知识,type=5 家庭育儿,type=6 问答,type=7 活动,type=8 工具,type=9 每日食谱     
     104    } 
     105   ], 
     106  recommendContent:  //内容维护区(这里列出了所有内容类型的数据,接口实际只会返回其中的一种类型) 
     107  [  
     108    { 
     109      type:1 //类型:图集;内容类型(type=1 图集,type=2 视频,type=3 专家视点,type=4 问答专栏,type=5 精彩活动,type=6 资讯文章,type=7 百科文章,type=8 生活圈帖子,type=9 私密圈帖子,type=10 html页) 
     110      image: //图片url 
     111      title: //标题 
     112      imageCount:13 //图集总数 
     113      albumsId:  //图集id 
     114    }, 
     115    { 
     116      type:2 //类型:视频 
     117      image: //图片url 
     118      title: //标题 
     119      preview:"孩子经常发烧" //简介  
     120      articleId: "2042246", //文章id 
     121      videoId: "2006", //视频id 
     122    }, 
     123    { 
     124      type:3 //类型:专家视点 
     125      image: //图片url 
     126      title: //标题 
     127      articleId:  //文章id 
     128      expertName: //专家名 
     129      position:"副主任医师" //职位 
     130      department: "儿科", //科室 
     131    }, 
     132    { 
     133      type:4 //类型:问答专栏 
     134      image: "http://www1.pcbaby.com.cn/03daodu.jpg", 
     135      title: "孩子经常发烧怎么办?", 
     136      preview:"孩子经常发烧" //简介 
     137      articleId: "2042246", //文章id 
     138      num: "3",     //专栏期数id  
     139      expertId: "29003920" //专家id 
     140    }, 
     141    { 
     142      type:5 //类型:精彩活动 
     143      image: "http://www1.pcbaby.com.cn/03daodu.jpg", 
     144      url:// 活动页面url 
     145    }, 
     146    { 
     147      type:6 //类型:资讯文章 
     148      image: "http://www1.pcbaby.com.cn/03daodu.jpg", 
     149      title: "孩子经常发烧怎么办?", 
     150      preview:"孩子经常发烧" //简介 
     151      articleId: "2042246" //文章id  
     152    }, 
     153    { 
     154      type:7 //类型:百科文章 
     155      image: "http://www1.pcbaby.com.cn/03daodu.jpg", 
     156      title: "孩子经常发烧怎么办?", 
     157      preview:"孩子经常发烧" //简介 
     158      url: "http://baike.pcbaby.com.cn/app/zsd/1190.html" //百科文章url 
     159    }, 
     160    { 
     161      type:8 //类型:生活圈帖子 
     162      image: "http://www1.pcbaby.com.cn/03daodu.jpg", 
     163      title: "孩子经常发烧怎么办?", 
     164      preview:"孩子经常发烧" //简介 
     165      topicId: 2155710, //帖子ID 
     166    },  
     167    { 
     168      type:9 //类型:私密圈帖子 
     169      image: "http://www1.pcbaby.com.cn/03daodu.jpg",//私密贴icon 
     170      title: "孩子经常发烧怎么办?", 
     171      preview:"孩子经常发烧" //简介 
     172      topicId: 2155710, //帖子ID 
     173    },          
     174    { 
     175      type:9 //类型:html页 
     176      image: "http://www1.pcbaby.com.cn/03daodu.jpg", 
     177      title: "孩子经常发烧怎么办?", 
     178      preview:"孩子经常发烧" //简介 
     179      url: "http://baike.pcbaby.com.cn/app/zsd/1190.html" //html页面url 
     180    },            
     181  } 
     182  ], 
     183  topFocus: [ //焦点图广告 
     184    { 
     185      cc-uri: "", 
     186      image: "http://www1.pcbaby.com.cn/appguanggao/1.jpg?IVY_LEVEL_1?481456_307375", 
     187      seq: 1, 
     188      title: "广告", 
     189      to-uri: "http://ivy.pconline.com.cn/adpuba/click?adid=307375&id=test.gjz.zicong.", 
     190      updateAt: 1408678837215, 
     191      vc-uri: "none" 
     192    } 
     193   ] 
     194  } 
    56195}}} 
    57