Showing
1 changed file
with
449 additions
and
4 deletions
@@ -1230,7 +1230,452 @@ code为200即为成功,否则是失败。 | @@ -1230,7 +1230,452 @@ code为200即为成功,否则是失败。 | ||
1230 | "message": "Search List." | 1230 | "message": "Search List." |
1231 | } | 1231 | } |
1232 | ``` | 1232 | ``` |
1233 | -## 7、收藏店铺接口## | 1233 | +## 7、店铺内商品筛选## |
1234 | + | ||
1235 | +(method=app.search.brand) | ||
1236 | +#### 请求参数 | ||
1237 | +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
1238 | +|:-------| -----:|-----:|-----:|-----:|----:| | ||
1239 | +|yh_channel|string|是|1|null|频道id| | ||
1240 | +|brand|string|是|649|null|品牌id| | ||
1241 | +|shop|string|是|649|null|店铺id| | ||
1242 | +|order|string|是|s_n_desc|null|排序规则| | ||
1243 | +|limit|int|是|20|20|每页数据大小| | ||
1244 | +|page|int|是|1|1|当前页| | ||
1245 | +|gender|string|是|1,3|null|性别,筛选条件| | ||
1246 | +|color|string|是|2|null|颜色,筛选条件| | ||
1247 | +|price|string|是|220,339|null|价格,筛选条件| | ||
1248 | +|size|string|是|109|null|尺码,筛选条件| | ||
1249 | +|p_d|string|是|0.4,0.699|null|折扣,筛选条件| | ||
1250 | +|sort|string|是|114,293|null|品类,筛选条件| | ||
1251 | +|tags_filter|int|是|0|0|标签过滤 1:全球购羊头品牌标签过滤| | ||
1252 | + | ||
1253 | +注意,通用的头部没有列出,其他条件同原来保持一致,如果不清楚可以参考app的请求报文。 | ||
1254 | +请求示例 | ||
1255 | +http://devapi.yoho.cn:58078/gateway/?app_version=4.1.0&brand=144&client_secret=091b04ce5de86a8b0e0143ee513f9ed2&client_type=android&color=2 | ||
1256 | +&gender=1%2C3&limit=20&method=app.search.brand&order=s_t_desc&os_version=android4.4.4%3AChe1-CL20&p_d=0.4%2C0.699&page=1&price=220%2C339 | ||
1257 | +&productSize=240x319&screen_size=720x1280&size=109&sort=114%2C293&v=7&yh_channel=1&debug=XYZ | ||
1258 | +### 响应 | ||
1259 | +code为200即为成功,否则是失败。 | ||
1260 | +响应JSON格式如下所示: | ||
1261 | +```json | ||
1262 | +{ | ||
1263 | + "alg": "SALT_MD5", | ||
1264 | + "code": 200, | ||
1265 | + "data": { | ||
1266 | + "brand": { | ||
1267 | + "brand_banner": "http://img10.static.yhbimg.com/brandBanner/2015/07/20/02/01e3a6dc767d3bcce115a98c46f8e1a5c4.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | ||
1268 | + "brand_domain": "macropus", | ||
1269 | + "brand_ico": "http://img10.static.yhbimg.com/brandLogo/2013/01/14/14/01fe59a9d032ed8a69552209c34948addb.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | ||
1270 | + "brand_name": "MACROPUS", | ||
1271 | + "id": 350 | ||
1272 | + }, | ||
1273 | + "filter": { | ||
1274 | + "brand": [ | ||
1275 | + { | ||
1276 | + "brand_alif": "M", | ||
1277 | + "brand_domain": "macropus", | ||
1278 | + "brand_ico": "http://img10.static.yhbimg.com/brandLogo/2016/02/29/18/01a64543a610586706d5957c06e9821c1d.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | ||
1279 | + "brand_keyword": "", | ||
1280 | + "brand_name": "MACROPUS", | ||
1281 | + "brand_name_cn": "", | ||
1282 | + "brand_name_en": "MACROPUS", | ||
1283 | + "hot_keyword": "", | ||
1284 | + "id": 350, | ||
1285 | + "is_hot": "Y" | ||
1286 | + } | ||
1287 | + ], | ||
1288 | + "color": [ | ||
1289 | + { | ||
1290 | + "color_code": "333333", | ||
1291 | + "color_id": 2, | ||
1292 | + "color_name": "黑色", | ||
1293 | + "color_value": "" | ||
1294 | + }, | ||
1295 | + { | ||
1296 | + "color_code": "0000fe", | ||
1297 | + "color_id": 7, | ||
1298 | + "color_name": "蓝色", | ||
1299 | + "color_value": "" | ||
1300 | + }, | ||
1301 | + { | ||
1302 | + "color_code": "b9b7af", | ||
1303 | + "color_id": 3, | ||
1304 | + "color_name": "灰色", | ||
1305 | + "color_value": "" | ||
1306 | + }, | ||
1307 | + { | ||
1308 | + "color_code": "47ba17", | ||
1309 | + "color_id": 6, | ||
1310 | + "color_name": "绿色", | ||
1311 | + "color_value": "" | ||
1312 | + }, | ||
1313 | + { | ||
1314 | + "color_code": "ee0000", | ||
1315 | + "color_id": 11, | ||
1316 | + "color_name": "红色", | ||
1317 | + "color_value": "" | ||
1318 | + }, | ||
1319 | + { | ||
1320 | + "color_code": "8b5402", | ||
1321 | + "color_id": 4, | ||
1322 | + "color_name": "棕色", | ||
1323 | + "color_value": "" | ||
1324 | + }, | ||
1325 | + { | ||
1326 | + "color_code": "FFFFFF", | ||
1327 | + "color_id": 1, | ||
1328 | + "color_name": "白色", | ||
1329 | + "color_value": "" | ||
1330 | + }, | ||
1331 | + { | ||
1332 | + "color_code": "ff5c01", | ||
1333 | + "color_id": 12, | ||
1334 | + "color_name": "橙色", | ||
1335 | + "color_value": "" | ||
1336 | + }, | ||
1337 | + { | ||
1338 | + "color_code": "710098", | ||
1339 | + "color_id": 8, | ||
1340 | + "color_name": "紫色", | ||
1341 | + "color_value": "" | ||
1342 | + }, | ||
1343 | + { | ||
1344 | + "color_code": "ffeb00", | ||
1345 | + "color_id": 9, | ||
1346 | + "color_name": "黄色", | ||
1347 | + "color_value": "" | ||
1348 | + }, | ||
1349 | + { | ||
1350 | + "color_code": "#fffff", | ||
1351 | + "color_id": 15, | ||
1352 | + "color_name": "彩色", | ||
1353 | + "color_value": "http://img02.static.yohobuy.com/adpic/2014/01/27/13/0272608508f09e2bf7eb5543bf5cc70d31.png" | ||
1354 | + }, | ||
1355 | + { | ||
1356 | + "color_code": "", | ||
1357 | + "color_id": 13, | ||
1358 | + "color_name": "银色", | ||
1359 | + "color_value": "http://static.yohobuy.com/images/color_p2.png" | ||
1360 | + }, | ||
1361 | + { | ||
1362 | + "color_code": "FFD83D", | ||
1363 | + "color_id": 14, | ||
1364 | + "color_name": "金色", | ||
1365 | + "color_value": "" | ||
1366 | + } | ||
1367 | + ], | ||
1368 | + "discount": { | ||
1369 | + "0.01,0.399": { | ||
1370 | + "count": 28, | ||
1371 | + "name": "1~3" | ||
1372 | + }, | ||
1373 | + "0.4,0.699": { | ||
1374 | + "count": 193, | ||
1375 | + "name": "4~6" | ||
1376 | + }, | ||
1377 | + "0.7,0.999": { | ||
1378 | + "count": 7, | ||
1379 | + "name": "7~9" | ||
1380 | + } | ||
1381 | + }, | ||
1382 | + "gender": { | ||
1383 | + "1,3": "BOYS", | ||
1384 | + "2,3": "GIRLS" | ||
1385 | + }, | ||
1386 | + "group_sort": [ | ||
1387 | + { | ||
1388 | + "category_id": "14", | ||
1389 | + "category_name": "包类", | ||
1390 | + "node_count": 0, | ||
1391 | + "parent_id": "1", | ||
1392 | + "relation_parameter": { | ||
1393 | + "sort": "152,153,196,238,239,240,349,157,342,156,161,300,160,233,341,340,210,339,351,195,197" | ||
1394 | + }, | ||
1395 | + "sort_ico": "http://img11.static.yhbimg.com/taobaocms/2015/09/01/14/0155e4ec81db538c58a52f3066e396aac5.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
1396 | + "sub": [ | ||
1397 | + { | ||
1398 | + "category_id": "136", | ||
1399 | + "category_name": "双肩包", | ||
1400 | + "node_count": 0, | ||
1401 | + "parent_id": "14", | ||
1402 | + "relation_parameter": { | ||
1403 | + "sort": "152" | ||
1404 | + }, | ||
1405 | + "sort_ico": "" | ||
1406 | + }, | ||
1407 | + { | ||
1408 | + "category_id": "142", | ||
1409 | + "category_name": "手拎包/单肩包", | ||
1410 | + "node_count": 0, | ||
1411 | + "parent_id": "14", | ||
1412 | + "relation_parameter": { | ||
1413 | + "sort": "195,196,153,197" | ||
1414 | + }, | ||
1415 | + "sort_ico": "" | ||
1416 | + }, | ||
1417 | + { | ||
1418 | + "category_id": "150", | ||
1419 | + "category_name": "腰包", | ||
1420 | + "node_count": 0, | ||
1421 | + "parent_id": "14", | ||
1422 | + "relation_parameter": { | ||
1423 | + "sort": "157" | ||
1424 | + }, | ||
1425 | + "sort_ico": "" | ||
1426 | + }, | ||
1427 | + { | ||
1428 | + "category_id": "160", | ||
1429 | + "category_name": "电脑包", | ||
1430 | + "node_count": 0, | ||
1431 | + "parent_id": "14", | ||
1432 | + "relation_parameter": { | ||
1433 | + "sort": "156" | ||
1434 | + }, | ||
1435 | + "sort_ico": "" | ||
1436 | + } | ||
1437 | + ] | ||
1438 | + } | ||
1439 | + ], | ||
1440 | + "priceRange": { | ||
1441 | + "0,119": "¥0-119", | ||
1442 | + "120,169": "¥120-169", | ||
1443 | + "170,269": "¥170-269", | ||
1444 | + "270,99999": "¥269以上" | ||
1445 | + }, | ||
1446 | + "size": [ | ||
1447 | + { | ||
1448 | + "size_id": 199, | ||
1449 | + "size_name": "F" | ||
1450 | + }, | ||
1451 | + { | ||
1452 | + "size_id": 203, | ||
1453 | + "size_name": "M" | ||
1454 | + }, | ||
1455 | + { | ||
1456 | + "size_id": 207, | ||
1457 | + "size_name": "S" | ||
1458 | + } | ||
1459 | + ] | ||
1460 | + }, | ||
1461 | + "page": 1, | ||
1462 | + "page_total": 14, | ||
1463 | + "product_list": [ | ||
1464 | + { | ||
1465 | + "brand_domain": "macropus", | ||
1466 | + "brand_id": 350, | ||
1467 | + "brand_name": "MACROPUS", | ||
1468 | + "cn_alphabet": "MACROPUSShuangJianBaoMCPA601BK807", | ||
1469 | + "default_images": "http://img10.static.yhbimg.com/goodsimg/2016/01/21/07/010fb0f71f0a0dce9619e097d5b9f6eb37.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | ||
1470 | + "edit_time": 1457575980, | ||
1471 | + "gender": "3", | ||
1472 | + "goods_list": [ | ||
1473 | + { | ||
1474 | + "color_code": "333333", | ||
1475 | + "color_id": "2", | ||
1476 | + "color_name": "黑色", | ||
1477 | + "color_value": "", | ||
1478 | + "cover_1": "http://img10.static.yhbimg.com/goodsimg/2016/01/21/07/010fb0f71f0a0dce9619e097d5b9f6eb37.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | ||
1479 | + "cover_2": "", | ||
1480 | + "goods_id": "404967", | ||
1481 | + "images_url": "http://img10.static.yhbimg.com/goodsimg/2016/01/04/11/018c2c3e31c131f773cd371bdeda2b8a8a.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | ||
1482 | + "is_default": "Y", | ||
1483 | + "product_skc": "306738", | ||
1484 | + "status": "1" | ||
1485 | + }, | ||
1486 | + { | ||
1487 | + "color_code": "0000fe", | ||
1488 | + "color_id": "7", | ||
1489 | + "color_name": "蓝色", | ||
1490 | + "color_value": "", | ||
1491 | + "cover_1": "", | ||
1492 | + "cover_2": "http://img13.static.yhbimg.com/goodsimg/2016/01/21/07/021eeadc25e5956078a62766de8c613902.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | ||
1493 | + "goods_id": "404969", | ||
1494 | + "images_url": "http://img12.static.yhbimg.com/goodsimg/2015/12/31/10/0242349adc8ca268b3945553c1e462440a.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | ||
1495 | + "is_default": "N", | ||
1496 | + "product_skc": "306739", | ||
1497 | + "status": "1" | ||
1498 | + }, | ||
1499 | + { | ||
1500 | + "color_code": "b9b7af", | ||
1501 | + "color_id": "3", | ||
1502 | + "color_name": "灰色", | ||
1503 | + "color_value": "", | ||
1504 | + "cover_1": "", | ||
1505 | + "cover_2": "http://img11.static.yhbimg.com/goodsimg/2016/01/21/07/017ee07092f40285d9cca35711fca60947.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | ||
1506 | + "goods_id": "404971", | ||
1507 | + "images_url": "http://img11.static.yhbimg.com/goodsimg/2016/01/04/06/015f740b62058711b47dc5a620c7a0ab97.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | ||
1508 | + "is_default": "N", | ||
1509 | + "product_skc": "306740", | ||
1510 | + "status": "1" | ||
1511 | + }, | ||
1512 | + { | ||
1513 | + "color_code": "ee0000", | ||
1514 | + "color_id": "11", | ||
1515 | + "color_name": "红色", | ||
1516 | + "color_value": "", | ||
1517 | + "cover_1": "http://img12.static.yhbimg.com/goodsimg/2016/01/21/07/022b6e53cfc1ecb42d62cc1a44a1697a7a.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | ||
1518 | + "cover_2": "", | ||
1519 | + "goods_id": "404973", | ||
1520 | + "images_url": "http://img13.static.yhbimg.com/goodsimg/2016/01/04/05/02820d9667af1de64df0dd4a3ed3489abd.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | ||
1521 | + "is_default": "N", | ||
1522 | + "product_skc": "306741", | ||
1523 | + "status": "1" | ||
1524 | + } | ||
1525 | + ], | ||
1526 | + "is_advance": "N", | ||
1527 | + "is_discount": "N", | ||
1528 | + "is_limited": "N", | ||
1529 | + "is_new": "Y", | ||
1530 | + "is_outlets": 2, | ||
1531 | + "is_promotion": 103, | ||
1532 | + "is_soon_sold_out": "N", | ||
1533 | + "is_special": "N", | ||
1534 | + "market_price": 369, | ||
1535 | + "max_sort_id": 7, | ||
1536 | + "middle_sort_id": 49, | ||
1537 | + "product_id": 314499, | ||
1538 | + "product_name": "MACROPUS 时尚军装系列 双肩包(男女通用)", | ||
1539 | + "product_skn": 51174855, | ||
1540 | + "sales_num": 0, | ||
1541 | + "sales_phrase": "", | ||
1542 | + "sales_price": 369, | ||
1543 | + "shelve_time": 1457575980, | ||
1544 | + "small_sort_id": 152, | ||
1545 | + "status": 1, | ||
1546 | + "stock_number": 1073, | ||
1547 | + "storage_num": 1073, | ||
1548 | + "tags": [ | ||
1549 | + "is_new" | ||
1550 | + ], | ||
1551 | + "vip1_price": 350.55, | ||
1552 | + "vip2_price": 332.1, | ||
1553 | + "vip3_price": 324.72, | ||
1554 | + "vip_discount_type": 4, | ||
1555 | + "vip_price": 295 | ||
1556 | + } | ||
1557 | + ], | ||
1558 | + "standard": [ | ||
1559 | + { | ||
1560 | + "standard_id": "723", | ||
1561 | + "standard_name": "电脑隔层", | ||
1562 | + "sub": [ | ||
1563 | + { | ||
1564 | + "standard_id": "3293", | ||
1565 | + "standard_name": "有" | ||
1566 | + }, | ||
1567 | + { | ||
1568 | + "standard_id": "3294", | ||
1569 | + "standard_name": "无" | ||
1570 | + } | ||
1571 | + ] | ||
1572 | + }, | ||
1573 | + { | ||
1574 | + "standard_id": "18", | ||
1575 | + "standard_name": "面料材质", | ||
1576 | + "sub": [ | ||
1577 | + { | ||
1578 | + "standard_id": "128", | ||
1579 | + "standard_name": "帆布" | ||
1580 | + }, | ||
1581 | + { | ||
1582 | + "standard_id": "3080", | ||
1583 | + "standard_name": "尼龙" | ||
1584 | + }, | ||
1585 | + { | ||
1586 | + "standard_id": "3092", | ||
1587 | + "standard_name": "涤纶" | ||
1588 | + }, | ||
1589 | + { | ||
1590 | + "standard_id": "131", | ||
1591 | + "standard_name": "呢子" | ||
1592 | + }, | ||
1593 | + { | ||
1594 | + "standard_id": "134", | ||
1595 | + "standard_name": "灯芯绒" | ||
1596 | + }, | ||
1597 | + { | ||
1598 | + "standard_id": "3091", | ||
1599 | + "standard_name": "太空棉" | ||
1600 | + }, | ||
1601 | + { | ||
1602 | + "standard_id": "132", | ||
1603 | + "standard_name": "毛线" | ||
1604 | + }, | ||
1605 | + { | ||
1606 | + "standard_id": "3279", | ||
1607 | + "standard_name": "聚酯纤维" | ||
1608 | + } | ||
1609 | + ] | ||
1610 | + }, | ||
1611 | + { | ||
1612 | + "standard_id": "15", | ||
1613 | + "standard_name": "款式细节", | ||
1614 | + "sub": [ | ||
1615 | + { | ||
1616 | + "standard_id": "104", | ||
1617 | + "standard_name": "logo图案" | ||
1618 | + }, | ||
1619 | + { | ||
1620 | + "standard_id": "106", | ||
1621 | + "standard_name": "多口袋" | ||
1622 | + }, | ||
1623 | + { | ||
1624 | + "standard_id": "100", | ||
1625 | + "standard_name": "图案印花" | ||
1626 | + }, | ||
1627 | + { | ||
1628 | + "standard_id": "107", | ||
1629 | + "standard_name": "拼色" | ||
1630 | + }, | ||
1631 | + { | ||
1632 | + "standard_id": "101", | ||
1633 | + "standard_name": "字母图案" | ||
1634 | + }, | ||
1635 | + { | ||
1636 | + "standard_id": "103", | ||
1637 | + "standard_name": "绣标" | ||
1638 | + }, | ||
1639 | + { | ||
1640 | + "standard_id": "109", | ||
1641 | + "standard_name": "纽扣装饰" | ||
1642 | + }, | ||
1643 | + { | ||
1644 | + "standard_id": "108", | ||
1645 | + "standard_name": "金属装饰" | ||
1646 | + }, | ||
1647 | + { | ||
1648 | + "standard_id": "111", | ||
1649 | + "standard_name": "贴布装饰" | ||
1650 | + } | ||
1651 | + ] | ||
1652 | + }, | ||
1653 | + { | ||
1654 | + "standard_id": "21", | ||
1655 | + "standard_name": "形状", | ||
1656 | + "sub": [ | ||
1657 | + { | ||
1658 | + "standard_id": "150", | ||
1659 | + "standard_name": "横款" | ||
1660 | + }, | ||
1661 | + { | ||
1662 | + "standard_id": "149", | ||
1663 | + "standard_name": "长款" | ||
1664 | + }, | ||
1665 | + { | ||
1666 | + "standard_id": "152", | ||
1667 | + "standard_name": "水桶形" | ||
1668 | + } | ||
1669 | + ] | ||
1670 | + } | ||
1671 | + ], | ||
1672 | + "total": 269 | ||
1673 | + }, | ||
1674 | + "md5": "d2e4119f80394b74e127b8ec3f9b8e2d", | ||
1675 | + "message": "Search List." | ||
1676 | +} | ||
1677 | +``` | ||
1678 | +## 8、收藏店铺接口## | ||
1234 | 1679 | ||
1235 | (method=app.favorite.add) | 1680 | (method=app.favorite.add) |
1236 | #### 请求参数 | 1681 | #### 请求参数 |
@@ -1256,7 +1701,7 @@ code为200即为成功,否则是失败。 | @@ -1256,7 +1701,7 @@ code为200即为成功,否则是失败。 | ||
1256 | "message": "收藏成功" | 1701 | "message": "收藏成功" |
1257 | } | 1702 | } |
1258 | ``` | 1703 | ``` |
1259 | -## 8、取消收藏店铺接口## | 1704 | +## 9、取消收藏店铺接口## |
1260 | 1705 | ||
1261 | (method=app.favorite.cancel) | 1706 | (method=app.favorite.cancel) |
1262 | #### 请求参数 | 1707 | #### 请求参数 |
@@ -1282,7 +1727,7 @@ code为200即为成功,否则是失败。 | @@ -1282,7 +1727,7 @@ code为200即为成功,否则是失败。 | ||
1282 | "message": "取消收藏成功" | 1727 | "message": "取消收藏成功" |
1283 | } | 1728 | } |
1284 | ``` | 1729 | ``` |
1285 | -## 9、查询收藏的品牌店铺列表(个人中心)接口## | 1730 | +## 10、查询收藏的品牌店铺列表(个人中心)接口## |
1286 | 1731 | ||
1287 | (method=app.favorite.brand) | 1732 | (method=app.favorite.brand) |
1288 | #### 请求参数 | 1733 | #### 请求参数 |
@@ -1299,7 +1744,7 @@ code为200即为成功,否则是失败。 | @@ -1299,7 +1744,7 @@ code为200即为成功,否则是失败。 | ||
1299 | ```json | 1744 | ```json |
1300 | 1745 | ||
1301 | ``` | 1746 | ``` |
1302 | -## 10、商品详情页进入品牌店铺接口## | 1747 | +## 11、商品详情页进入品牌店铺接口## |
1303 | 1748 | ||
1304 | (method=app.shop.queryShopsByBrandId) | 1749 | (method=app.shop.queryShopsByBrandId) |
1305 | #### 请求参数 | 1750 | #### 请求参数 |
-
Please register or login to post a comment