Authored by zhouxiang

Update 个人中心相关接口.md

... ... @@ -95,4 +95,182 @@ code为200即为成功,否则是失败。
"message": "用户ID不能为空",
"code": 401
}
```
## 2、我的回复列表##
我的回复列表(method=app.social.getMyCommentList)
#### 公共请求参数
| 参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|-----:|----:|
|client_secret|string|50|否|5ac68f20cb18efe154be||进入接口提供的参数加密信息|
|app_version|float|10|否|1||APP版本|
|os_version|string|20|否|Android4.4||系统版本+机器型号|
|client_type|string|20|否|iphone/android/ipad||手机型号(不区分大小写)|
|screen_size|string|20|否|800x900||(手机尺寸)|
#### 请求参数
| 参数名称 | 参数类型 |长度| 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|-----:|----:|
|uid|int|1-11|否|8050840||用户id|
|lastedTime|String|13|否|1467773595102||时间戳|
|limit|String|1-3|否|10||一页展示条数|
#### 接口说明
| 接口说明||
|:-------| -----:|
|请求域名|http://api.yoho.cn|
|接口名|app.social.getMyCommentList|
|接口说明|获取用户信息|
|http请求方式|POST/GET|
#### 返回错误
|错误code|错误提示|
|:-------| -----:|
|400|用户id不能为空.|
注意,通用的头部没有列出。
请求示例
http://192.168.102.205:8080/gateway/?method=app.social.getMyCommentList&uid=8050840&lastedTime=1467773595102&limit=10
### 响应
code为200即为成功,否则是失败。
响应参数,data部分
响应成功JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"list": [
{
"postInfo": {
"title": "害怕抢不到NMD?别担心,至少他们都不是你的对手!",
"type": "text"
},
"createTime": 1467189316,
"authorUid": 0,
"blocks": [
{
"commentId": 52,
"orderBy": 0,
"content": "永远的18岁!!!",
"templateKey": "text"
},
{
"commentId": 52,
"orderBy": 0,
"content": "http://img12.static.yhbimg.com/goodsimg/2016/06/06/05/02e8b4a63c0101b1a1a8f04b53d817b9d4.png",
"templateKey": "image"
},
{
"commentId": 52,
"orderBy": 1,
"content": "http://img12.static.yhbimg.com/goodsimg/2016/06/06/05/02e8b4a63c0101b1a1a8f04b53d817b9d5.png",
"templateKey": "image"
}
],
"replyTo": {
"headIcon": "http://img10.static.yhbimg.com/yhb-img01/2016/06/28/17/01b4ab5ad41e5b2d1106915828f41c4bc6.jpg",
"uid": 8050829,
"name": "petch"
},
"id": 52,
"postId": 80,
"reply": {
"headIcon": "http://img10.static.yhbimg.com/yhb-img01/2016/06/28/17/01b4ab5ad41e5b2d1106915828f41c4bc6.jpg",
"uid": 8050829,
"name": "petch"
},
"status": 0
},
{
"postInfo": {
"title": "害怕抢不到NMD?别担心,至少他们都不是你的对手!",
"type": "text"
},
"createTime": 1467189285,
"authorUid": 0,
"blocks": [
{
"commentId": 50,
"orderBy": 0,
"content": "永远的18岁!!!",
"templateKey": "text"
},
{
"commentId": 50,
"orderBy": 0,
"content": "http://img12.static.yhbimg.com/goodsimg/2016/06/06/05/02e8b4a63c0101b1a1a8f04b53d817b9d4.png",
"templateKey": "image"
},
{
"commentId": 50,
"orderBy": 1,
"content": "http://img12.static.yhbimg.com/goodsimg/2016/06/06/05/02e8b4a63c0101b1a1a8f04b53d817b9d5.png",
"templateKey": "image"
}
],
"id": 50,
"postId": 80,
"reply": {
"headIcon": "http://img10.static.yhbimg.com/yhb-img01/2016/06/28/17/01b4ab5ad41e5b2d1106915828f41c4bc6.jpg",
"uid": 8050829,
"name": "petch"
},
"status": 0
},
{
"postInfo": {
"title": "害怕抢不到NMD?别担心,至少他们都不是你的对手!",
"type": "text"
},
"createTime": 1467189270,
"authorUid": 0,
"blocks": [
{
"commentId": 48,
"orderBy": 0,
"content": "永恒的核心技术部!!!",
"templateKey": "text"
},
{
"commentId": 48,
"orderBy": 0,
"content": "http://img12.static.yhbimg.com/goodsimg/2016/06/06/05/02e8b4a63c0101b1a1a8f04b53d817b9d4.png",
"templateKey": "image"
},
{
"commentId": 48,
"orderBy": 1,
"content": "http://img12.static.yhbimg.com/goodsimg/2016/06/06/05/02e8b4a63c0101b1a1a8f04b53d817b9d5.png",
"templateKey": "image"
}
],
"id": 48,
"postId": 80,
"reply": {
"headIcon": "http://img10.static.yhbimg.com/yhb-img01/2016/06/28/17/01b4ab5ad41e5b2d1106915828f41c4bc6.jpg",
"uid": 8050829,
"name": "petch"
},
"status": 0
}
],
"lastedTime": 1467773595102,
"pageSize": 10,
"total": 0
},
"md5": "155c12860833cf913985e7c65b4329b4",
"message": "获取评论列表成功."
}
```
响应失败JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 500,
"data": [],
"md5": "6d729d4b35f10fc73531210bd7ecff91",
"message": "用户id不能为空."
}
```
\ No newline at end of file
... ...