Changes between Version 73 and Version 74 of baby/interface
- Timestamp:
- 07/18/2014 09:41:09 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
baby/interface
v73 v74 1035 1035 {{{ 1036 1036 备注:我的收藏 1037 接口开发:吴全贵 1038 请求URL: 1039 HTTP请求方式:get 1040 是否需要登录:否 1041 返回格式:JSON 1042 缓存方式:无 1043 缓存时间:无 1044 请求参数: 1045 type:1文章 2帖子 3百科 4问答 5课程 6食谱 1046 设置header Cookie = "common_session_id=xxxx"; 1047 pageNo 1048 pageSize 1049 返回参数 1050 { 1037 接口开发:谢思华 1038 请求URL:http://baike.pcbaby.com.cn/intf/app/2.0/favor_list_101.jsp 1039 HTTP请求方式:get 1040 是否需要登录:是 1041 返回格式:JSON 1042 缓存方式:无 1043 缓存时间:无 1044 请求参数: 1045 type:收藏对象类型(0文章;5帖子;1百科;6问答;7课程;8食谱) 1046 common_session_id:登录用户id 1047 pageNo:第几页 1048 pageSize:每页显示最大数量 1049 返回参数 1050 示例1:有收藏数据 1051 { 1052 "RESPONSE_STATUS" = 200;//200 网络正常; 500 网络错误 1051 1053 collections:[ 1052 1054 { 1053 id: 1054 title: 1055 des: 1056 } 1057 ] 1058 } 1055 id:收藏对象标识码,可以是ID也可以是URL 1056 title:文章标题 1057 } 1058 pageNo = 1; 1059 pageSize = 10; 1060 total = 1; 1061 ] 1062 } 1063 示例2:无收藏 1064 { 1065 "RESPONSE_STATUS" = 200; 1066 msg = " "找不到已收藏的列表"; 1067 result = 0; 1068 } 1069 示例3:错误请求 1070 { 1071 "RESPONSE_STATUS": 500, 1072 "error-desc": "internal accountId,type", 1073 "uri": "intf/app/2.0/favor_list_101.jsp", 1074 "user-notice": "参数为空或不合法,或未登录" 1075 } 1059 1076 }}} 1060 1077
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)