收藏夹接口
收藏夹记录添加 wjb.favorites.record.add
描述
新增顾客收藏夹添加记录
输入参数
返回结果
ID |
字段名 |
类型 |
描述 |
1 |
code |
Number |
结果代码:0 成功 |
2 |
error_message |
String |
错误信息 |
示例:
HTTP url:
http://wop.wangjubao.com/rest/favor?sign=F2DFA99A06C15A84CDA94BEC0CCB0CFA&sign_method=md5×tamp=2015-08-24+17:04:11&mobile=13032040001&v=1.0&method=wjb. favorites.record.add&app_key=120055234&format=json&access_token=JTIwMDU1MTExOTk1MTRBOTlGMDIwRUI1MDcxMkQ0NjM1M0UzOERFMDQyNzg0OTAzNjQ
Request body:
{
"favorites_record": {
"buyer_nick": "黄永远88",
"created": 1420084872000,
"item_id": "item",
"modified": 1420174872000,
"price": 19.97,
"record_id": "record",
"status": 0
}
}
Http response:
Response body:
{
"response": {
"code":81002,
"error_message":"record_id is exist"
}
}
收藏夹记录更新 wjb.favorites.record.modify
描述
更新已有的收藏夹记录
输入参数
返回结果
ID |
字段名 |
类型 |
描述 |
1 |
code |
Number |
结果代码:0 成功 |
2 |
error_message |
String |
错误信息 |
示例:
HTTP url:
http://wop.wangjubao.com/rest/favor?sign=F2DFA99A06C15A84CDA94BEC0CCB0CFA&sign_method=md5×tamp=2015-08-24+17:04:11&mobile=13032040001&v=1.0&method=wjb. favorites.record.modify&app_key=120055234&format=json&access_token=JTIwMDU1MTExOTk1MTRBOTlGMDIwRUI1MDcxMkQ0NjM1M0UzOERFMDQyNzg0OTAzNjQ
Request body:
{
"favorites_record": {
"modified": 1420174872000,
"price": 19.97,
"record_id": "record",
"status": 0
}
}
Http response:
Response body:
{
"response": {
"code":81002,
"error_message":"record_id is exist"
}
}