{
"jsonrpc": "2.0",
"method": "wishlist.add",
"params": {
"product_id": 1
},
"id":1
}
{
"jsonrpc": "2.0",
"result": {
"wish_id": 1
},
"id": 1
}
{
"jsonrpc": "2.0",
"method": "wishlist.add",
"params": {
"shop_product_id": 1
},
"id":1
}
{
"jsonrpc": "2.0",
"result": {
"wish_id": 1
},
"id": 1
}
{
"jsonrpc": "2.0",
"method": "wishlist.delete",
"params": {
"product_id": 1
},
"id":1
}
{
"jsonrpc": "2.0",
"result": {
"product_id": 1
},
"id": 1
}
{
"jsonrpc": "2.0",
"method": "wishlist.get",
"params": {
"user_id": 1,
"order": "price",
"order_direction": "asc",
"offset": 0,
"count": 10
},
"id":1
}
{
"jsonrpc": "2.0",
"result": {
"user_id": 1,
"total_count": 1,
"order": "price",
"order_direction": "asc",
"wishes": [
{
"id": 1,
"created_at": 1373614078,
"bought": false,
"marked_to_gift": false,
"product": {
"created_at": 1374757450,
"is_deleted": false,
"product_id": 1,
"name": "shop-shoes",
"brand": "shoes",
"photo_url": null,
"price": null,
"description": null,
"shop_id": null,
"shop_photos": null,
"shops": [
{
"user_id": null,
"rating": 0,
"shop_id": 1,
"name": "shop",
"price": 9.99,
"count": 1
}
],
"sale": null,
"category": {
"type": "top",
"category_id": 1,
"name": "shoes",
"description": "bla bla",
"thumbnail_web": null,
"thumbnail_mobile": null,
"parent": null,
"subcategories_count": 0,
"products_count": 1,
"yandex_id": null,
"mailru_id": null
},
"properties": null,
"min_price": 9.99,
"max_price": 9.99,
"photos": [],
"count": null,
"yandex_id": null,
"mailru_id": null
}
}
]
},
"id": 1
}