product_good.md 11.6 KB

1、指定vip跳转,银卡、金卡、白金卡

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

请求参数

参数名称 参数类型 可否为空 示例 默认值 备注
user_vip_level Integer 1 1 vip级别,1:银卡会员 2:金卡会员 3:白金卡会员

注意,通用的头部没有列出。
请求示例 http://dev-api.yohops.com:9999/?app_version=4.9.2&debug=XYZ&client_secret=7b9ec13d4fdaeac331a9a0ddfbeac257&client_type=android&method=app.product.vip&os_version=android4.4.4%3AChe1-CL20&limit=10&page=1&gender=1&screen_size=720x1280&session_key=c7e4525e9e7608a24c5b0dce094ab091&uid=9963947&v=7&yh_channel=1&user_vip_level=1

响应

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

{
    "alg": "SALT_MD5",
    "code": 200,
    "data": {
        "standard": [
            {
                "standard_id": "826",
                "sub": [
                    {
                        "standard_id": "4628",
                        "standard_name": "正常"
                    },
                    {
                        "standard_id": "4629",
                        "standard_name": "宽松"
                    },
                    {
                        "standard_id": "4627",
                        "standard_name": "修身"
                    }
                ],
                "standard_name": "版型"
            }
        ],
        "filter": {
            "gender": {
                "1,3": "BOYS"
            },
            "color": [
                {
                    "color_id": 2,
                    "color_name": "黑色",
                    "color_value": "",
                    "color_code": "68EE68"
                }
            ],
            "limited": "Y",
            "discount": {
                "0.01,0.399": {
                    "name": "1~3",
                    "count": 52760
                },
                "0.7,0.999": {
                    "name": "7~9",
                    "count": 194
                },
                "0.4,0.699": {
                    "name": "4~6",
                    "count": 277
                }
            },
            "ageLevel": [
                {
                    "product_count": 51841,
                    "name": "成人",
                    "id": "1"
                },
                {
                    "product_count": 966,
                    "name": "大童(11-15岁)",
                    "id": "2"
                },
                {
                    "product_count": 1325,
                    "name": "中童(7-10岁)",
                    "id": "4"
                },
                {
                    "product_count": 1374,
                    "name": "小童(2-6岁)",
                    "id": "3"
                },
                {
                    "product_count": 791,
                    "name": "婴童(0-12个月)",
                    "id": "5"
                }
            ]
            "priceRange": {
                "200,429": "¥200-429",
                "430,799": "¥430-799",
                "800,99999": "¥799以上",
                "0,199": "¥0-199"
            }
        },
        "total": 53264,
        "page_total": 5327,
        "page": 1,
        "product_list": [
            {
                "vip1_price": 10.45,
                "first_shelve_time": 1458029862,
                "is_outlets": 2,
                "brand_domain": "jnbybyjnby",
                "is_special": "N",
                "goods_list": [
                    {
                        "color_id": "11",
                        "storage_num": 3,
                        "product_skc": 295811,
                        "cover_1": "",
                        "goods_id": "382743",
                        "images_url": "http://img13.static.yhbimg.com/goodsimg/2015/10/31/03/02ba5cd854ca31decf38477a1a787473b8.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": "ee0000",
                        "status": "1"
                    }
                ],
                "product_id": 298837,
                "is_advance": "N",
                "is_student_rebate": "N",
                "cn_alphabet": "1F070029",
                "is_deposit_advance": "N",
                "is_student_price": "N",
                "edit_time": 1446637173,
                "is_new": "N",
                "brand_name": "jnby by  JNBY",
                "max_sort_id": 365,
                "product_name": "jnby by JNBY 潮童大红可爱带帽羽绒服(白鸭绒 充绒量90%)",
                "brand_id": 1028,
                "tags": [],
                "default_images": "http://img13.static.yhbimg.com/goodsimg/2015/10/31/03/02ba5cd854ca31decf38477a1a787473b8.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
                "shop_id": 21,
                "stock_number": 3,
                "is_soon_sold_out": "N",
                "market_price": 795,
                "vip_price": 11,
                "country_id": 2,
                "status": 1,
                "small_sort_id": 432,
                "is_seckill": "N",
                "gender": "2",
                "vip3_price": 9.68,
                "is_global": "N",
                "is_discount": "Y",
                "tbl_plane": "N",
                "vip_discount_type": 1,
                "sales_num": 200,
                "sales_phrase": "",
                "product_skn": 51167185,
                "shelve_time": 1458029862,
                "vip2_price": 9.9,
                "age_level": "3,4",
                "is_limited": "N",
                "skn_default_img": "/2011/06/16/07/0299961b31b3c1fb8f4d2861a9619a39a466.JPG",
                "storage_num": 3,
                "middle_sort_id": 430,
                "sales_price": 11,
                "is_promotion": 108,
                "is_limitbuy": "N"
            }
        ],
        "page_size": 10
    },
    "md5": "8d503ff101109ffb4f94f6cde95bc19c",
    "message": "vip Search List."
}

2、年度活动优惠

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

请求参数

参数名称 参数类型 可否为空 示例 默认值 备注
select_gender Integer 1 null 用户选择的性别,1:男生,2:女生
limit Integer 12 12 每页显示商品数量
page Integer 1 1 页数

注意,通用的头部没有列出。
请求示例 http://api.gray.yohops.com/?app_version=5.4.1&client_secret=a4988195ddc2294febb7496228543919&client_type=android&fromPage=aFP_DiscountProList&limit=20&method=app.search.sales&order=&os_version=android4.4.4%3AChe1-CL20&page=1&physical_channel=1&productSize=240x319&screen_size=720x1280&session_key=7f79caf9e43a2d713e21a8647eeba7ca&udid=867102020789521988090c62952acc1&uid=9963947&v=7&yh_channel=1

响应

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

{

}

3、首页个性化-新品到着大数据推荐商品列表

(method=app.firstpage.recproduct) 请求方式:get

请求参数

参数名称 参数类型 可否为空 示例 默认值 备注
uid String 8050496 null 用户id
udid String 15bb9a72e92b13a2181579a27556c9522bc723d9 null 用户app标识码
yh_channel String 1 1 频道
client_type String h5 null 页数

注意,通用的头部没有列出。
请求示例 http://127.0.0.1:8086/gateway/?method=app.firstpage.recproduct&uid=8050496&debug=XYZ&client_type=h5### 响应 code为200即为成功且只会返回200,每次都会有响应结果。 响应JSON格式如下所示: 1.无数据

{
    "alg": "SALT_MD5",
    "code": 200,
    "data": {},
    "md5": "f4a7a490bb6666b005008d795ed14e5d",
    "message": "product list."
}

2.有数据

{
    "alg": "SALT_MD5",
    "code": 200,
    "data": {
        "total": 199,
        "page_total": 1,
        "page": 1,
        "product_list": [
            {
                "vip1_price": 5,
                "product_price_plan_list": [
                    {
                        "vip1_price": 5,
                        "create_time": 1488319281,
                        "vip_discount_type": 3,
                        "end_time": 0,
                        "vip3_price": 5,
                        "current_saleprice": 5,
                        "vip2_price": 5,
                        "plan_id": 1488297600,
                        "effect_time": 1488297600
                    }
                ],
                "first_shelve_time": 0,
                "is_outlets": 2,
                "brand_domain": "5cm",
                "is_special": "N",
                "goods_list": [
                    {
                        "color_id": "37",
                        "storage_num": 97,
                        "product_skc": 679850,
                        "cover_1": "",
                        "goods_id": "670678",
                        "images_url": "http://img10.static.yhbimg.com/goodsimg/2017/02/27/15/01f4a5eb1b4efbb9a7844253ca2000b434.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": "0000fe",
                        "status": "1"
                    }
                ],
                "product_id": 508102,
                "is_advance": "N",
                "is_student_rebate": "N",
                "cn_alphabet": "5CMnanzhangxiuTxu",
                "is_deposit_advance": "N",
                "is_student_price": "N",
                "edit_time": 1488182082,
                "is_new": "N",
                "brand_name": "5CM",
                "max_sort_id": 1,
                "product_name": "5CM男长袖T恤",
                "brand_id": 4,
                "tags": [],
                "default_images": "http://img10.static.yhbimg.com/goodsimg/2017/02/27/15/01f4a5eb1b4efbb9a7844253ca2000b434.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
                "shop_id": 834,
                "stock_number": 97,
                "is_soon_sold_out": "N",
                "market_price": 10,
                "vip_price": 0,
                "country_id": 2,
                "status": 1,
                "small_sort_id": 293,
                "is_seckill": "N",
                "gender": "1",
                "vip3_price": 5,
                "is_global": "N",
                "is_discount": "Y",
                "tbl_plane": "N",
                "vip_discount_type": 3,
                "sales_num": 0,
                "sales_phrase": "",
                "product_skn": 512587406,
                "shelve_time": 0,
                "vip2_price": 5,
                "age_level": "1",
                "is_limited": "N",
                "skn_default_img": "",
                "storage_num": 97,
                "middle_sort_id": 11,
                "sales_price": 5,
                "is_promotion": 0,
                "is_limitbuy": "N"
            }
        ],
        "page_size": 500
    },
    "md5": "43422282ff989de697fa82c0393b3246",
    "message": "product list."
}