ShopCart API
ShopCart record add -wjb.shopcart.record.add
Descrition
add the shopcart added record
input params
| ID | Name | Type | Description | Required |
|---|---|---|---|---|
| 1 | shopCartRecord | ShopCartRecord | shopcart record | Y |
result
| ID | Name | Type | Description |
|---|---|---|---|
| 1 | code | Number | result code : 0 success |
| 2 | error_message | String | error message |
Example: 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": 2 } } Http response: Response body: { "response": { "code":81002, "error_message":"record_id is exist" } } ...
shopcart record update -wjb.shopcart.record.modify
Descrition
update shopcart record
input record
| ID | Name | Type | Description | Required |
|---|---|---|---|---|
| 1 | shopCartRecord | ShopCartRecord | shopcart record | Y |
result
| ID | Name | Type | Description |
|---|---|---|---|
| 1 | code | Number | result code:0 success |
| 2 | error_message | String | error message |