|
|
1.查询各个体系成长等级信息及等级特权(目前仅mars与有货buy)
|
|
|
接口url:method=app.yohofamily.getVipInfo
|
|
|
入参:无
|
|
|
出参:
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"mars": { ------mars成长规则
|
|
|
"vipLevelList": [
|
|
|
{
|
|
|
"growthValue": 100, -----下一级成长值
|
|
|
"level": 0, -----当前级别
|
|
|
"levelImg": "http://img01.yohomars.com/mars/2017/01/24/d1f9cb68a1e7aae4a1a6c4eeca7b1b0e.png?imageView/{mode}/w/{width}/h/{height}", ---级别图片
|
|
|
"marsPointDiscount": 100 -----积分换购折扣率
|
|
|
},
|
|
|
{
|
|
|
"growthValue": 400,
|
|
|
"level": 1,
|
|
|
"levelImg": "http://img01.yohomars.com/mars/2017/01/24/5336ef84190a715bd221fca50a9e9e3d.png?imageView/{mode}/w/{width}/h/{height}",
|
|
|
"marsPointDiscount": 100
|
|
|
},
|
|
|
{
|
|
|
"growthValue": 1000,
|
|
|
"level": 2,
|
|
|
"levelImg": "http://img01.yohomars.com/mars/2017/01/24/1027321fcaf5311ab21963f925ecb0dd.png?imageView/{mode}/w/{width}/h/{height}",
|
|
|
"marsPointDiscount": 95,
|
|
|
"privilege": "mars points 9.5折兑换"
|
|
|
},
|
|
|
{
|
|
|
"growthValue": 2000,
|
|
|
"level": 3,
|
|
|
"levelImg": "http://img01.yohomars.com/mars/2017/01/24/e4512e2c5e78140170bf4967c4368645.png?imageView/{mode}/w/{width}/h/{height}",
|
|
|
"marsPointDiscount": 90,
|
|
|
"privilege": "mars points 9折兑换" ---特权中文描述
|
|
|
},
|
|
|
{
|
|
|
"growthValue": 5000,
|
|
|
"level": 4,
|
|
|
"levelImg": "http://img01.yohomars.com/mars/2017/01/24/312d0b334370eb8a9711065d489451ca.png?imageView/{mode}/w/{width}/h/{height}",
|
|
|
"marsPointDiscount": 85,
|
|
|
"privilege": "mars points 8.5折兑换"
|
|
|
},
|
|
|
{
|
|
|
"growthValue": 10000,
|
|
|
"level": 5,
|
|
|
"levelImg": "http://img01.yohomars.com/mars/2017/01/24/148be1f69f64ebc1872c43b5b4b7e620.png?imageView/{mode}/w/{width}/h/{height}",
|
|
|
"marsPointDiscount": 80,
|
|
|
"privilege": "mars points 8折兑换"
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
"yohobuy": {
|
|
|
"privilegeList": [ ---有货buy特权列表
|
|
|
{
|
|
|
"description": "在原折扣基础上享受VIP折上折", ---特权中文描述
|
|
|
"id": 1, ---特权ID
|
|
|
"pic": "http://static.yohobuy.com/images/app/icon_2x_zhekou.png", ---特权图片
|
|
|
"title": "银卡会员购物9.5折" ---特权说明
|
|
|
},
|
|
|
{
|
|
|
"description": "在原折扣基础上享受VIP折上折",
|
|
|
"id": 2,
|
|
|
"pic": "http://static.yohobuy.com/images/app/icon_2x_zhekou.png",
|
|
|
"title": "金卡会员购物9.0折"
|
|
|
},
|
|
|
{
|
|
|
"description": "在原折扣基础上享受VIP折上折",
|
|
|
"id": 3,
|
|
|
"pic": "http://static.yohobuy.com/images/app/icon_2x_zhekou.png",
|
|
|
"title": "白金卡会员购物8.8折"
|
|
|
},
|
|
|
{
|
|
|
"description": "年度级的sale促销活动中,VIP会员可以享受优先购买权",
|
|
|
"id": 4,
|
|
|
"pic": "http://static.yohobuy.com/images/app/icon_2x_niandu.png",
|
|
|
"title": "年度活动优惠"
|
|
|
},
|
|
|
{
|
|
|
"description": "白金卡会员的订单将采用最快速度进行免费配送,金卡会员的订单免费配送",
|
|
|
"id": 5,
|
|
|
"pic": "http://static.yohobuy.com/images/app/icon_2x_kssd.png",
|
|
|
"title": "快速送达"
|
|
|
},
|
|
|
{
|
|
|
"description": "浏览《YOHO!潮流志》、《YOHO!GIRL》电子版,最新最权威的潮流资讯尽在掌握!",
|
|
|
"id": 6,
|
|
|
"pic": "http://static.yohobuy.com/images/app/icon_2x_zzzy.png",
|
|
|
"title": "电子杂志赠阅"
|
|
|
},
|
|
|
{
|
|
|
"description": "赠送生日优惠券",
|
|
|
"id": 8,
|
|
|
"pic": "http://static.yohobuy.com/images/app/icon_2x_sryh.png",
|
|
|
"title": "生日特惠"
|
|
|
},
|
|
|
{
|
|
|
"description": "获取大量潮流新品及优惠活动的信息",
|
|
|
"id": 9,
|
|
|
"pic": "http://static.yohobuy.com/images/app/icon_2x_yhxx.png",
|
|
|
"title": "优惠信息"
|
|
|
},
|
|
|
{
|
|
|
"description": "参加\"VIP会员限定\"活动",
|
|
|
"id": 10,
|
|
|
"pic": "http://static.yohobuy.com/images/app/icon_2x_vip.png",
|
|
|
"title": "VIP活动优惠"
|
|
|
}
|
|
|
],
|
|
|
"vipLevelList": [ ----有货成长等级列表
|
|
|
{
|
|
|
"growthValue": 0, ----当前等级最低成长值
|
|
|
"level": 0,
|
|
|
"name": "普通会员", ----当前等级中文描述
|
|
|
"privilege": "" ----当前等级特权集合(对应特权id属性,多个特权时用,分割)
|
|
|
},
|
|
|
{
|
|
|
"growthValue": 600,
|
|
|
"level": 1,
|
|
|
"name": "银卡会员",
|
|
|
"privilege": "1,4,10,6,8,9"
|
|
|
},
|
|
|
{
|
|
|
"growthValue": 2000,
|
|
|
"level": 2,
|
|
|
"name": "金卡会员",
|
|
|
"privilege": "2,4,10,5,6,8,9"
|
|
|
},
|
|
|
{
|
|
|
"growthValue": 5000,
|
|
|
"level": 3,
|
|
|
"name": "白金会员",
|
|
|
"privilege": "3,4,10,5,6,8,9"
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"md5": "c4b412c1c537dda372158cdc3def5669",
|
|
|
"message": "操作成功"
|
|
|
}
|
|
|
|
|
|
|
|
|
2.查询当前用户各个体系成长等级信息及等级特权(目前仅mars与有货buy)
|
|
|
接口url:method=app.yohofamily.getUserVipInfo
|
|
|
入参:uid 用户ID
|
|
|
出参:
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"mars": { ----当前用户mars成长信息
|
|
|
"growthValue": 2000, ----当前成长值
|
|
|
"level": 4, ----当前级别
|
|
|
"nextLevel": 5, ----下一级别
|
|
|
"privilege": "mars points 8.5折兑换", ----当前等级特权
|
|
|
"valueToNextLevel": 3000 ----距离下一等级的成长值
|
|
|
},
|
|
|
"yohobuy": { ----当前有货buy用户成长信息
|
|
|
"growthValue": 1500, ----当前成长值
|
|
|
"level": 1, ----当前级别
|
|
|
"name": "银卡会员", ----当前级别中文
|
|
|
"nextLevel": 2, ----下一级别
|
|
|
"valueToNextLevel": 500, ----距离下一等级的成长值
|
|
|
"privilege": [ ----当前等级特权列表
|
|
|
{
|
|
|
"description": "在原折扣基础上享受VIP折上折",
|
|
|
"id": 1,
|
|
|
"pic": "http://static.yohobuy.com/images/app/icon_2x_zhekou.png",
|
|
|
"title": "银卡会员购物9.5折"
|
|
|
},
|
|
|
{
|
|
|
"description": "年度级的sale促销活动中,VIP会员可以享受优先购买权",
|
|
|
"id": 4,
|
|
|
"pic": "http://static.yohobuy.com/images/app/icon_2x_niandu.png",
|
|
|
"title": "年度活动优惠"
|
|
|
},
|
|
|
{
|
|
|
"description": "浏览《YOHO!潮流志》、《YOHO!GIRL》电子版,最新最权威的潮流资讯尽在掌握!",
|
|
|
"id": 6,
|
|
|
"pic": "http://static.yohobuy.com/images/app/icon_2x_zzzy.png",
|
|
|
"title": "电子杂志赠阅"
|
|
|
},
|
|
|
{
|
|
|
"description": "赠送生日优惠券",
|
|
|
"id": 8,
|
|
|
"pic": "http://static.yohobuy.com/images/app/icon_2x_sryh.png",
|
|
|
"title": "生日特惠"
|
|
|
},
|
|
|
{
|
|
|
"description": "获取大量潮流新品及优惠活动的信息",
|
|
|
"id": 9,
|
|
|
"pic": "http://static.yohobuy.com/images/app/icon_2x_yhxx.png",
|
|
|
"title": "优惠信息"
|
|
|
},
|
|
|
{
|
|
|
"description": "参加\"VIP会员限定\"活动",
|
|
|
"id": 10,
|
|
|
"pic": "http://static.yohobuy.com/images/app/icon_2x_vip.png",
|
|
|
"title": "VIP活动优惠"
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"md5": "5ad00d2feaf58e202c4dcf8a972a37d9",
|
|
|
"message": "操作成功"
|
|
|
}
|
|
|
|
|
|
|
|
|
1.按app类型查询对应积分商城商品(目前仅mars和now)
|
|
|
接口url:method=app.yohofamily.getCoinShopGoods
|
|
|
入参:type 类型mars或者now
|
|
|
uid 用户ID
|
|
|
page 分页查询当前页
|
|
|
limit 分页查询每页数量
|
|
|
出参:
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"page": 1, ---当前页
|
|
|
"pageSize": 10, ---当前每页数量
|
|
|
"total": 16, ---总数
|
|
|
"page_total": 2, ---总页数
|
|
|
"list": [ ---返回具体商品列表,mars与now返回字段有所不同,请注意区分
|
|
|
|
|
|
mars返回对象
|
|
|
{
|
|
|
"name":"50 元话费充值", ---商品名称
|
|
|
"headPic":"http://img01.yohomars.com/mars/2016/07/27/277e6c8be0de9049d37851b7da3af107.jpg?imageView/{mode}/w/{width}/h/{height}", ---商品头图
|
|
|
"points": 10000, ---需要积分
|
|
|
"num":500, ---剩余库存
|
|
|
"startTime": 1497196800, ---兑换开始时间,0表示无限制
|
|
|
"endTime": 1497196800, ---兑换结束时间,0表示无限制
|
|
|
"level": 0, ---兑换等级限制
|
|
|
"discountPoints": 9000 ---折扣后需要的积分
|
|
|
}
|
|
|
|
|
|
now返回对象
|
|
|
{
|
|
|
"name":"50 元话费充值", ---商品名称
|
|
|
"headimg":"http://img01.yohomars.com/mars/2016/07/27/277e6c8be0de9049d37851b7da3af107.jpg?imageView/{mode}/w/{width}/h/{height}", ---商品头图
|
|
|
"point": 10000, ---需要积分
|
|
|
"stock":500, ---剩余库存
|
|
|
"offlineTime": 1497196800 ---下线时间
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
"md5": "5ad00d2feaf58e202c4dcf8a972a37d9",
|
|
|
"message": "操作成功"
|
|
|
}
|
|
|
|
|
|
|
|
|
## 1、获取这个用户各个系统的登录情况##
|
|
|
获取这个用户各个系统的登录情况(app.yohofamily.geyLoginMessage)
|
|
|
|
|
|
#### 请求参数 get
|
|
|
| 参数名称 | 参数类型 |长度| 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|-----:|----:|
|
|
|
|uid|int|1-11|否|802654|||
|
|
|
|
|
|
http://192.168.103.73:8080/gateway/?method=app.yohofamily.geyLoginMessage&os_version=yohobuy%3Ah5&screen_size=720x1280&session_key=d020d2a12276c583bd11b111439eb985&uid=34&v=7&mobile=13014896244&debug=XYZ&area=86&udid=862380036648114d527735aaec58acb
|
|
|
|
|
|
响应JSON格式如下所示:
|
|
|
```json
|
|
|
{
|
|
|
code: 200,
|
|
|
message: "",
|
|
|
data: {
|
|
|
"uid": 34,
|
|
|
"yohobuy": 0,
|
|
|
"green": 1,
|
|
|
"mars": 1,
|
|
|
"now": 0,
|
|
|
"coffee": 0,
|
|
|
"life": 0
|
|
|
}
|
|
|
}
|
|
|
```
|
|
|
1代表这个uid曾经在这个app上登录过
|
|
|
|
|
|
查询当前用户有货币流水明细
|
|
|
## 查询当前用户有货币流水明细##
|
|
|
(app.yohocoin.lists)
|
|
|
|
|
|
#### 请求参数 get
|
|
|
| 参数名称 | 参数类型 |长度| 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|-----:|----:|
|
|
|
|uid|int|1-11|否|802654|||
|
|
|
|
|
|
http://127.0.0.1:8080/gateway/?method=app.yohocoin.lists&os_version=yohobuy%3Ah5&screen_size=720x1280&session_key=d020d2a12276c583bd11b111439eb985&uid=4284&v=7&mobile=13014896244&debug=XYZ&area=86&udid=862380036648114d527735aaec58acb&app_version=6.0.0
|
|
|
响应JSON格式如下所示:
|
|
|
```json
|
|
|
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"total": 2,
|
|
|
"page_total": 2,
|
|
|
"limit": 20,
|
|
|
"coinlist": [
|
|
|
{
|
|
|
"appSource": "Yoho!Buy有货",
|
|
|
"date": "2015-12-31 00:39:46",
|
|
|
"key": "2",
|
|
|
"message": "原有有货币2个,初始化变更",
|
|
|
"num": 200,
|
|
|
"type": 1
|
|
|
},
|
|
|
{
|
|
|
"appSource": "Yoho!Buy有货",
|
|
|
"date": "2015-12-21 19:18:40",
|
|
|
"key": "2",
|
|
|
"message": "原有有货币2个,初始化变更",
|
|
|
"num": 200,
|
|
|
"type": 1
|
|
|
}
|
|
|
],
|
|
|
"page": 1
|
|
|
},
|
|
|
"md5": "e80c7b9d63375acfd123fcf8eff66339",
|
|
|
"message": "yoho coin list"
|
|
|
}
|
|
|
```json
|
|
|
|
|
|
查询当前用户个人信息
|
|
|
## 3、查询当前用户个人信息##
|
|
|
|
|
|
| 参数名称 | 参数类型 |长度| 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|-----:|----:|
|
|
|
|uid|int|1-11|否|802654|||
|
|
|
|
|
|
http://127.0.0.1:8080/gateway/?method=app.passport.profile&os_version=yohobuy%3Ah5&screen_size=720x1280&session_key=d020d2a12276c583bd11b111439eb985&uid=18108189&v=7&mobile=13014896244&debug=XYZ&area=86&udid=862380036648114d527735aaec58acb&app_version=6.0.0
|
|
|
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"alipay_bind": "N",
|
|
|
"alipay_nickname": "",
|
|
|
"bind_gate": "Y",
|
|
|
"birthday": "",
|
|
|
"createTime": 0,
|
|
|
"douban_bind": "N",
|
|
|
"douban_nickname": "",
|
|
|
"gender": "",
|
|
|
"head_ico": "",
|
|
|
"height": "",
|
|
|
"mobile": "",
|
|
|
"nickname": "18108189",
|
|
|
"profile_name": "18108189",
|
|
|
"qq_bind": "N",
|
|
|
"qq_nickname": "",
|
|
|
"renren_bind": "N",
|
|
|
"renren_nickname": "",
|
|
|
"sina_bind": "N",
|
|
|
"sina_nickname": "",
|
|
|
"uid": 18108189,
|
|
|
"username": "18108189",
|
|
|
"verify_email": "",
|
|
|
"verify_mobile": "",
|
|
|
"city":"江苏 南京"
|
|
|
"vip_info": {
|
|
|
"cur_level": "0",
|
|
|
"next_level": "1",
|
|
|
"title": "普通会员",
|
|
|
"nextVipTitle": "银卡会员",
|
|
|
"is_student": 0,
|
|
|
"upgrade_need_cost_str": "再消费¥800.0即可升级为银卡会员",
|
|
|
"curYearCost": "0",
|
|
|
"nextVipNeedCost": "800.0"
|
|
|
},
|
|
|
"wechat_bind": "N",
|
|
|
"wechat_nickname": "",
|
|
|
"weight": "",
|
|
|
"yoho_currency": 5
|
|
|
},
|
|
|
"md5": "b3795fa318e65f6aaf0019228dd4fec1",
|
|
|
"message": "请求成功"
|
|
|
}
|
|
|
|
|
|
|
|
|
## 1、修改个人信息##
|
|
|
|
|
|
订阅降价通知接口(method=app.passport.modifyBase)
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|----:|
|
|
|
|uid|int|否|213|0|用户id|
|
|
|
|nick_name|string|是||0|用户昵称|
|
|
|
|gender|String|是|2|0|性别|
|
|
|
|birthday|String|是|2|0|性别|
|
|
|
|height|Integer|是|2|0|身高|
|
|
|
|weight|Integer|是|2|0|体重|
|
|
|
|city|String|是||城市|
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
请求示例
|
|
|
http://devapi.yoho.cn:58078/?app_version=3.8.2&client_type=android&os_version=yohobuy%3Ah5&screen_size=720x1280&v=7&method=app.passport.modifyBase&uid=8040274&birthday=1999-1-1
|
|
|
|
|
|
```json
|
|
|
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data"
|
|
|
"md5": "e80c7b9d63375acfd123fcf8eff66339",
|
|
|
"message":基本资料修改成功
|
|
|
}
|
|
|
```json
|
|
|
|
|
|
## 1、查询当前用户各个体系有货币汇总##
|
|
|
|
|
|
查询当前用户各个体系有货币汇总(method=app.yohofamily.yohocoin)
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|----:|
|
|
|
|uid|int|否|213|0|用户id|
|
|
|
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
请求示例
|
|
|
http://devapi.yoho.cn:58078/?app_version=3.8.2&client_type=android&os_version=yohobuy%3Ah5&screen_size=720x1280&v=7&method=app.yohofamily.yohocoin&uid=8040274&birthday=1999-1-1
|
|
|
|
|
|
```json
|
|
|
{
|
|
|
code: 200,
|
|
|
message: "",
|
|
|
data: {
|
|
|
"uid": 8040274,
|
|
|
"yohobuyNum": 230,
|
|
|
"greenNum": 0,
|
|
|
"marsNum": 10,
|
|
|
"nowNum": 20,
|
|
|
"coffeeNum": 0,
|
|
|
"lifeNum": 0
|
|
|
}
|
|
|
}
|
|
|
``` |
...
|
...
|
|