product_good.md 14.4 KB

1、发现好货列表

(method=app.search.good) 请求方式:get

请求参数

参数名称 参数类型 可否为空 示例 默认值 备注
uid String 9963947 uid别
limit Integer 2 20 每页显示条数
page Integer 1 1 第几页
yh_channel String 1 null 频道(1或2)
gender String 2 null 性别 1-男 2-女 3-通用
app_type int null null 客户端类型 0:有货 1:BLK

注意,通用的头部没有列出。
请求示例 http://dev-api.yohops.com:9999/?page=1&limit=20&debug=XYZ&app_version=5.4.0&client_secret=29d6a38b6b24ff19cb87ae7e3e5e3ea7&client_type=iphone&fromPage=iFP_MineBrowseHistory&method=app.search.good&os_version=10.2.1&physical_channel=1&screen_size=375x667&udid=ec378a9426b76b53f43912bb804e7146c4975a08&uid=8050572&v=7

响应

code为200即为成功且只会返回200,每次都会有响应结果。 响应JSON格式如下所示:

{
    "alg": "SALT_MD5",
    "code": 200,
    "data": {
        "total": 48967,
        "page_total": 2449,
        "page": 1,
        "product_list": [
            {
                "vip1_price": 699,
                "product_price_plan_list": [
                    {
                        "vip1_price": 699,
                        "create_time": 1481104317,
                        "vip_discount_type": 5,
                        "end_time": 0,
                        "vip3_price": 732,
                        "current_saleprice": 732,
                        "vip_price": 0,
                        "vip2_price": 599,
                        "plan_id": 180,
                        "effect_time": 1481104260
                    }
                ],
                "first_shelve_time": 1478586529,
                "is_outlets": 2,
                "brand_domain": "5cm",
                "is_special": "N",
                "goods_list": [
                    {
                        "color_id": "2",
                        "storage_num": 10,
                        "product_skc": 307584,
                        "cover_1": "http://img13.static.yhbimg.com/goodsimg/2015/12/11/07/02fe14d7dbd25aa33ee3eab3e39a83e22b.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
                        "goods_id": "406597",
                        "images_url": "http://img10.static.yhbimg.com/goodsimg/2017/02/16/11/018bd3680db8905635ccc55b6996419faf.png?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
                        "color_name": "黑色",
                        "cover_2": "",
                        "is_default": "N",
                        "color_value": "",
                        "color_code": "68EE68",
                        "status": "1"
                    },
                    {
                        "color_id": "1",
                        "storage_num": 7,
                        "product_skc": 307585,
                        "cover_1": "http://img13.static.yhbimg.com/goodsimg/2017/02/16/10/0219c700428ee71aea48058d3b7a26f406.png?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
                        "goods_id": "406599",
                        "images_url": "",
                        "color_name": "白色",
                        "cover_2": "",
                        "is_default": "N",
                        "color_value": "",
                        "color_code": "68EE68",
                        "status": "1"
                    }
                ],
                "product_id": 316017,
                "is_advance": "N",
                "is_student_rebate": "N",
                "cn_alphabet": "5CMWeiYi5CXSWF3130W55",
                "is_deposit_advance": "N",
                "is_student_price": "N",
                "edit_time": 1478586529,
                "is_new": "N",
                "brand_name": "5CM",
                "max_sort_id": 1,
                "product_name": "5CM 十字架印花圆领卫衣",
                "brand_id": 4,
                "tags": [],
                "default_images": "http://img13.static.yhbimg.com/goodsimg/2015/12/11/07/02fe14d7dbd25aa33ee3eab3e39a83e22b.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
                "shop_id": 0,
                "stock_number": 17,
                "is_soon_sold_out": "N",
                "phrase": "phrase for test 324242342343",
                "market_price": 739,
                "vip_price": 0,
                "country_id": 2,
                "status": 1,
                "small_sort_id": 119,
                "is_seckill": "N",
                "gender": "1",
                "vip3_price": 732,
                "is_global": "N",
                "is_discount": "Y",
                "tbl_plane": "N",
                "vip_discount_type": 5,
                "sales_num": 0,
                "sales_phrase": "",
                "product_skn": 51175645,
                "shelve_time": 1478586529,
                "vip2_price": 599,
                "age_level": "1",
                "is_limited": "N",
                "skn_default_img": "",
                "storage_num": 17,
                "middle_sort_id": 16,
                "sales_price": 732,
                "is_promotion": 0,
                "is_limitbuy": "N"
            },
            {
                "vip1_price": 10.45,
                "first_shelve_time": 1478585075,
                "is_outlets": 2,
                "brand_domain": "5cm",
                "is_special": "N",
                "goods_list": [
                    {
                        "color_id": "2",
                        "storage_num": 7,
                        "product_skc": 264909,
                        "cover_1": "http://img11.static.yhbimg.com/goodsimg/2015/12/11/03/01f8827f3731575dbbcc1c225f945e0fda.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
                        "goods_id": "326783",
                        "images_url": "http://img13.static.yhbimg.com/goodsimg/2015/09/08/10/0235773aad689974e9762d1c507d489794.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
                        "color_name": "黑色",
                        "cover_2": "",
                        "is_default": "N",
                        "color_value": "",
                        "color_code": "68EE68",
                        "status": "1"
                    }
                ],
                "product_id": 250575,
                "is_advance": "N",
                "is_student_rebate": "N",
                "cn_alphabet": "5CM5CXJKT7112F55JiaKe",
                "is_deposit_advance": "N",
                "is_student_price": "N",
                "edit_time": 1478585075,
                "is_new": "N",
                "brand_name": "5CM",
                "max_sort_id": 1,
                "product_name": "5CM 花呢拼接夹克",
                "brand_id": 4,
                "tags": [],
                "default_images": "http://img11.static.yhbimg.com/goodsimg/2015/12/11/03/01f8827f3731575dbbcc1c225f945e0fda.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
                "shop_id": 0,
                "stock_number": 7,
                "is_soon_sold_out": "N",
                "phrase": "5CM 花呢拼接夹克,此款采用花呢与黑色拼接,展现不一样的夹克风格,低调而不失丰富的细节,瞬间变潮衣。",
                "market_price": 2399,
                "vip_price": 11,
                "country_id": 2,
                "status": 1,
                "small_sort_id": 124,
                "is_seckill": "N",
                "gender": "1",
                "vip3_price": 9.68,
                "is_global": "N",
                "is_discount": "Y",
                "tbl_plane": "N",
                "vip_discount_type": 1,
                "sales_num": 0,
                "sales_phrase": "5CM花呢拼接夹克,此款采用花呢与黑色拼接,展现不一样的夹克风格,低调而不失丰富的细节,瞬间变潮衣。",
                "product_skn": 51140296,
                "shelve_time": 1478585075,
                "vip2_price": 9.9,
                "age_level": "1",
                "is_limited": "N",
                "skn_default_img": "",
                "storage_num": 7,
                "middle_sort_id": 21,
                "sales_price": 11,
                "is_promotion": 101,
                "is_limitbuy": "N"
            }
        ],
        "page_size": 20
    },
    "md5": "409ee236edd7921362b7c70f5e46fdff",
    "message": "Search List."
}

2、好货详情

(method=app.product.goodDetail) 请求方式:get

请求参数

参数名称 参数类型 可否为空 示例 默认值 备注
product_skn Integer 51038503 null 商品skn

注意,通用的头部没有列出。
请求示例 http://dev-api.yohops.com:9999/?product_skn=51148345&debug=XYZ&app_version=5.4.0&client_secret=29d6a38b6b24ff19cb87ae7e3e5e3ea7&client_type=iphone&fromPage=iFP_MineBrowseHistory&method=app.product.goodDetail&os_version=10.2.1&screen_size=375x667&udid=ec378a9426b76b53f43912bb804e7146c4975a08&uid=15545752&v=7

响应

code为200即为成功且只会返回200,每次都会有响应结果。 响应JSON格式如下所示:

{
    "alg": "SALT_MD5",
    "code": 200,
    "data": {
        "advance_shelve_time": 0,
        "attribute": 1,
        "brand_id": 444,
        "brand_info": {
            "brand_domain": "evildoer",
            "brand_ico": "http://img12.static.yhbimg.com/brandLogo/2015/12/03/15/0266c8e46764959ef4fb7f34cb894017a6.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
            "brand_id": 444,
            "brand_intro": "<span style=\"font-size:12px;\">&nbsp; &nbsp; &nbsp; &nbsp;\n&nbsp;E.V.D.成军于2013年,品牌最初名为EVILDOER,其实为一个新的英文单字,EVIL指邪恶,DOER指行为者,意指做坏事的人,我们能把其解释为\"贯彻邪恶思想的人\"。现在改名为缩写形式的“E.V.D.”。<br />\n\n&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />\n&nbsp; &nbsp; &nbsp;\n&nbsp;&nbsp;Evildoer要表达的就是那种与众不同,不愿墨守成规的反叛感觉&nbsp;而E.V.D.品牌主要的风格承袭了日式机车品牌的风格走向,都是以源自70年代80年代的摇滚骑士风格,以西海岸硬派外型为主,佐以时下其他多元的元素再加以搓合。</span><br />\n&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />\n&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style=\n\"font-size:12px;\">设计上在许多图文的编制与颜色配置上大胆,精准地抓住每个风格中的经典元素,推出众多令人惊艳的商品,主张强烈的设计风格之外,E.V.D.也能表现轻松的休闲的外型,也运用了MILATRAY(军事)\nOUTDOOR(户外) CASUAL(美式休闲)等较柔软的元素来相配合。</span>通过不同元素的呈现,E.V.D.成功地营造出街头造型上夺目的强烈冲击,更象征E.V.D.团队除了坚持到底的硬派风格主轴之外,而不断追求进化的品牌视野。希望能让消费者们细心体会并感受E.V.D.品牌的独到魅力!<br />\n<br />\n&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />",
            "brand_name": "EVD"
        },
        "bundle_type": 1,
        "cn_alphabet": "EVILDOERPiYiEVDA504LJ40",
        "goods_list": [
            {
                "color_code": "68EE68",
                "color_id": 2,
                "color_image": "http://img11.static.yhbimg.com/goodsimg/2015/11/10/06/01b607ceadd565ad20a8a9d9d4d739fa14.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
                "color_name": "黑色",
                "color_value": "",
                "factory_goods_name": "黑色",
                "goods_id": 344329,
                "images_list": [
                    {
                        "image_url": "http://img11.static.yhbimg.com/goodsimg/2015/11/10/06/01b607ceadd565ad20a8a9d9d4d739fa14.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
                    },
                    {
                        "image_url": "http://img12.static.yhbimg.com/goodsimg/2015/09/30/06/02d0e0a2b926b0a624af7ab61354741b8c.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
                    },
                    {
                        "image_url": "http://img13.static.yhbimg.com/goodsimg/2015/09/30/06/02735d13258cd15238df8122aac1b4aab5.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
                    }
                ],
                "is_default": "N",
                "product_skc": 274247,
                "size_list": [],
                "status": 1
            }
        ],
        "instalmentId": "",
        "isInstalment": "0",
        "isLimitBuy": false,
        "is_advance": "N",
        "is_collect": "",
        "is_deposit_advance": "N",
        "is_outlets": "N",
        "is_secKill": "N",
        "is_supplyed": "",
        "limitProductCode": "",
        "market_phrase": "",
        "maxSortId": 1,
        "middleSortId": 172,
        "middle_sort_name": "mini包",
        "phrase": "来自国内的潮流品牌EVD 展现出来纯熟的设计风格却令人惊讶。造型的灵感较多汲取于机车文化以及军事文化,同时,EVD 也十分崇尚里原宿文化与美式服装文化。",
        "product_id": 266051,
        "product_name": "EVD 纯色棒球皮衣 ",
        "product_skn": 51148345,
        "product_url": "http://m.yohobuy.com/product/pro_266051_344329/EVILDOERPiYiEVDA504LJ40.html",
        "saleStatus": 0,
        "sales_phrase": "来自国内的潮流品牌EVD展现出来纯熟的设计风格却令人惊讶。造型的灵感较多汲取于机车文化以及军事文化,同时,EVD也十分崇尚里原宿文化与美式服装文化。",
        "shop_id": 0,
        "showStatus": 0,
        "smallSortId": 173,
        "status": 1,
        "storage_sum": 0
    },
    "md5": "dd1090d4992f70a8535f3a58e1e3df72",
    "message": "product info"
}