|
|
## 1、查询用户是否首次登陆##
|
|
|
|
|
|
(method=app.passport.checkFirstLogin)
|
|
|
请求方式:get
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|----:|
|
|
|
|uid|Integer| 否| 123456|null|用户id|
|
|
|
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
请求示例
|
|
|
http://dev-api.yohops.com:9999/?app_version=4.9.2&debug=XYZ&client_secret=7b9ec13d4fdaeac331a9a0ddfbeac257&client_type=android&gender=&method=app.passport.checkFirstLogin&os_version=android4.4.4%3AChe1-CL20&screen_size=720x1280&session_key=c7e4525e9e7608a24c5b0dce094ab091&uid=13517&v=7&yh_channel=1
|
|
|
### 响应
|
|
|
code为200即为成功且只会返回200,每次都会有响应结果。
|
|
|
响应JSON格式如下所示:
|
|
|
```json
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": "1", 0:不是首次登陆,1:是首次登陆
|
|
|
"md5": "c13a1ace2c5883be18643551bd17ebcd",
|
|
|
"message": "请求成功"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
## 2、推荐的商品列表##
|
|
|
|
|
|
(method=app.newuser.recommend)
|
|
|
请求方式:get
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|----:|
|
|
|
|select_gender|Integer| 否| 1|null|用户选择的性别,1:男生,2:女生|
|
|
|
|limit|Integer| 是| 12|12|每页显示商品数量|
|
|
|
|page|Integer| 是| 1|1|页数|
|
|
|
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
请求示例
|
|
|
http://dev-api.yohops.com:9999/?app_version=4.9.2&debug=XYZ&client_secret=7b9ec13d4fdaeac331a9a0ddfbeac257&client_type=android&gender=&method=app.newuser.recommend&os_version=android4.4.4%3AChe1-CL20&limit=10&page=1&gender=1&screen_size=720x1280&session_key=c7e4525e9e7608a24c5b0dce094ab091&uid=9963947&v=7&yh_channel=1
|
|
|
### 响应
|
|
|
code为200即为成功且只会返回200,每次都会有响应结果。
|
|
|
响应JSON格式如下所示:
|
|
|
```json
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"total": 13,
|
|
|
"page_total": 2,
|
|
|
"page": 1,
|
|
|
"product_list": [
|
|
|
{
|
|
|
"default_images": "http://img10.static.yhbimg.com/goodsimg/2015/09/15/03/01f7c8352b5fce15df4b347403b714fa95.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"product_skn": 51145431,
|
|
|
"brand_name": "Aape"
|
|
|
},
|
|
|
{
|
|
|
"default_images": "http://img12.static.yhbimg.com/goodsimg/2014/11/14/01/0295ab80932bec9e2ebf4fc4a9ac402a39.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"product_skn": 51079944,
|
|
|
"brand_name": "Casterwear"
|
|
|
},
|
|
|
{
|
|
|
"default_images": "http://img10.static.yhbimg.com/goodsimg/2015/12/25/05/0146220898d04140206f4da9ffc48a3792.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"product_skn": 51183961,
|
|
|
"brand_name": "Bouquet Fever"
|
|
|
},
|
|
|
{
|
|
|
"default_images": "http://img11.static.yhbimg.com/goodsimg/2015/12/02/08/013858eb23e1cba1c9b2cff97c1f09d440.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"product_skn": 51178108,
|
|
|
"brand_name": "Bravospark"
|
|
|
},
|
|
|
{
|
|
|
"default_images": "http://img11.static.yhbimg.com/goodsimg/2015/11/02/09/015d52cc53236159f543a363543b36da77.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"product_skn": 51163207,
|
|
|
"brand_name": "BACK BONE"
|
|
|
},
|
|
|
{
|
|
|
"default_images": "http://img10.static.yhbimg.com/goodsimg/2015/11/30/10/0147006e5c997984001cf1ee89d9abd96e.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"product_skn": 51150773,
|
|
|
"brand_name": "Artanky"
|
|
|
},
|
|
|
{
|
|
|
"default_images": "http://img12.static.yhbimg.com/goodsimg/2015/08/28/08/02d58f43cac7d60478f1a92a6d6f021aca.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"product_skn": 51122824,
|
|
|
"brand_name": "BURTON"
|
|
|
},
|
|
|
{
|
|
|
"default_images": "http://img13.static.yhbimg.com/goodsimg/2016/01/07/06/0256a62c882afcd1d2b9322f00b40b2d04.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"product_skn": 51175023,
|
|
|
"brand_name": "adidas Originals"
|
|
|
},
|
|
|
{
|
|
|
"default_images": "http://img13.static.yhbimg.com/goodsimg/2015/12/01/08/023f13af17536b39cae923134687065db8.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"product_skn": 51177466,
|
|
|
"brand_name": "BURANDO ENO"
|
|
|
},
|
|
|
{
|
|
|
"default_images": "http://img11.static.yhbimg.com/goodsimg/2015/11/23/02/01496beadcb1cdae27f667253640819335.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"product_skn": 51170405,
|
|
|
"brand_name": "BEASTS"
|
|
|
}
|
|
|
],
|
|
|
"page_size": 10
|
|
|
},
|
|
|
"md5": "74f6a2a686abd5cb0b89d90049b83024",
|
|
|
"message": "newUser recommend product list"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
...
|
...
|
|