Changes between Version 52 and Version 53 of baby2.2_developers/interface
- Timestamp:
- 03/27/2015 02:37:36 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
baby2.2_developers/interface
v52 v53 542 542 543 543 接口开发:丁健勇 544 mrobot接口URL: 545 后端接口URL: 544 后端接口URL:http://bbs.pcbaby.com.cn/rest/topics.jsp 546 545 HTTP请求方式:post 547 是否需要登录:否 548 返回格式:JSON 549 缓存方式:无 550 缓存时间: 551 请求参数: 552 topicId:主题ID 553 title:主题标题 554 message:内容 555 replyToId:回复楼层的id 556 anonymous:是否匿名 0(V2.2.0版本都为不匿名) 557 agent:终端类型(WAP:1、iOS:2、ANDROID:3) 558 type:1 //判断来自哪里的回楼、回帖 1:私密圈 2:生活圈 559 v = 220 //版本号 546 是否需要登录:是 547 返回格式:JSON 548 缓存方式:无 549 缓存时间: 550 请求参数: 551 topicId: 主题ID 552 type: 1=私密圈回帖,2=生活圈回帖 553 anonymous: 是否匿名,1为匿名,0为不匿名,默认为0 554 agent: 终端类型(亲子宝典ios:2、亲子宝典android:3) 555 message: 回帖内容 556 replyToId: 回复楼层的帖子id 560 557 设置header Cookie = "common_session_id=xxxx" 561 558 562 559 返回参数: 563 发帖成功,返回HTTP响应头为201,即内容创建成功560 发帖成功,返回HTTP响应头为201,即内容创建成功 564 561 { 565 562 "Location": "http://bbs.pcbaby.com.cn/post-2156187_39095567.html" 566 563 } 567 564 568 私密圈返回参数 565 私密圈返回参数(新增) 569 566 { 570 "ret": 0, //返回状态,0=成功,非0 =失败 571 "desc": "此贴太火爆,快去其他帖子参与互动吧" //提示信息 572 } 567 "message": "此贴太火爆,快去其他帖子参与互动吧" //提示信息 568 } 573 569 }}} 574 570
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)