brand.md 10.2 KB

1、PC根据域名查询品牌接口

(method=web.brand.byDomain)

请求参数

参数名称 参数类型 可否为空 示例 默认值 备注
domain String 004 null 域名

注意,通用的头部没有列出。
请求示例 http://devapi.yoho.cn:58078/?debug=XYZ&app_version=3.8.2&client_type=android&os_version=yohobuy%3Ah5&screen_size=720x1280&v=7&method=web.brand.byDomain&domain=004

响应

code为200即为成功,否则是失败。 响应JSON格式如下所示:

{
  "alg": "SALT_MD5",
  "code": 200,
  "data": {
    "brandAlif": "0",
    "brand_banner": "http://img12.static.yhbimg.com/brandBanner/2014/09/03/03/02197fb080acea9425d32dc2402d83910c.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/90",
    "brand_domain": "004",
    "brand_ico": "http://img10.static.yhbimg.com/brandLogo/2011/06/26/19/016f21d6a39d5071e1864943253dcdefde.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/90",
    "brand_id": 1,
    "brand_name": "004",
    "brand_name_cn": "零零肆",
    "brand_name_en": "004"
  },
  "md5": "2890de38da3dc48c30246f88c257bca2",
  "message": "brand info"
}

2、PC查询品牌分类接口

(method=web.brand.folder)

请求参数

参数名称 参数类型 可否为空 示例 默认值 备注
brand_id int 248 0 品牌id
status int 1 1 状态

注意,通用的头部没有列出。
请求示例 http://devapi.yoho.cn:58078/?debug=XYZ&app_version=3.8.2&client_type=android&os_version=yohobuy%3Ah5&screen_size=720x1280&v=7&method=web.brand.folder&brand_id=248&status=2&client_secret=3f31be8d35adb60425882cbb7298afa9

响应

code为200即为成功,否则是失败。 响应JSON格式如下所示:

{
  "alg": "SALT_MD5",
  "code": 200,
  "data": [
    {
      "brand_id": 248,
      "brand_sort_ico": "http://img13.static.yhbimg.com/brandBanner/2015/04/03/10/020ca8ededdc8087357f6cadcb93f98d3f.jpg?imageView/{mode}/w/{width}/h/{height}",
      "brand_sort_name": "HUARACHE",
      "id": 1188,
      "order_by": 12,
      "parent_id": 0,
      "status": 1
    },
    {
      "brand_id": 248,
      "brand_sort_ico": "http://img11.static.yhbimg.com/brandBanner/2015/04/03/10/0162828177b1c5ecb3967df0944b2887e2.jpg?imageView/{mode}/w/{width}/h/{height}",
      "brand_sort_name": "FLIGHT",
      "id": 1176,
      "order_by": 11,
      "parent_id": 0,
      "status": 1
    },
    {
      "brand_id": 248,
      "brand_sort_ico": "http://img11.static.yhbimg.com/brandBanner/2014/04/24/06/0102a8ebab1244f71af26c1348e62fd1fb.jpg?imageView/{mode}/w/{width}/h/{height}",
      "brand_sort_name": "AIRMAX",
      "id": 260,
      "order_by": 10,
      "parent_id": 0,
      "status": 1
    },
    {
      "brand_id": 248,
      "brand_sort_ico": "http://img12.static.yhbimg.com/brandBanner/2014/04/24/07/02391a5e71663242380adb7adfed190295.jpg?imageView/{mode}/w/{width}/h/{height}",
      "brand_sort_name": "复古跑鞋",
      "id": 261,
      "order_by": 4,
      "parent_id": 0,
      "status": 1
    },
    {
      "brand_id": 248,
      "brand_sort_ico": "http://img11.static.yhbimg.com/brandBanner/2015/04/03/10/0170918b0458f3867362440ddef083c6d0.jpg?imageView/{mode}/w/{width}/h/{height}",
      "brand_sort_name": "凉拖",
      "id": 1189,
      "order_by": 2,
      "parent_id": 0,
      "status": 1
    },
    {
      "brand_id": 248,
      "brand_sort_ico": "http://img11.static.yhbimg.com/brandBanner/2014/04/24/07/01ed6baae9ca98b88fc2e32fc79bc9d54b.jpg?imageView/{mode}/w/{width}/h/{height}",
      "brand_sort_name": "OTHERS",
      "id": 38,
      "order_by": 1,
      "parent_id": 0,
      "status": 1
    }
  ],
  "md5": "e24c0c724646c486236bf24b7cb2a9a5",
  "message": "brand info"
}

3、PC查询品牌系列接口

(method=web.brand.series)

请求参数

参数名称 参数类型 可否为空 示例 默认值 备注
brand_id int 248 0 品牌id
status int 1 1 状态

注意,通用的头部没有列出。
请求示例 http://devapi.yoho.cn:58078/?debug=XYZ&app_version=3.8.2&client_type=android&os_version=yohobuy%3Ah5&screen_size=720x1280&v=7&method=web.brand.series&brand_id=248&status=2&client_secret=3f31be8d35adb60425882cbb7298afa9

响应

code为200即为成功,否则是失败。 响应JSON格式如下所示:

{
  "alg": "SALT_MD5",
  "code": 200,
  "data": [
    {
      "brand_id": 248,
      "id": 7,
      "order_by": 2,
      "series_banner": "http://img11.static.yhbimg.com/brandBanner/2012/04/05/17/01801f6679d23f0d48ae8efcdce17cb4a5.jpg",
      "series_name": "NSW",
      "status": 0
    },
    {
      "brand_id": 248,
      "id": 8,
      "order_by": 1,
      "series_banner": "http://img13.static.yhbimg.com/brandBanner/2012/08/09/18/026e278aebf5b351b34ffe2312510ea717.jpg",
      "series_name": "Action Sports",
      "status": 0
    }
  ],
  "md5": "89445294eb4487a1233cff63b1df01e7",
  "message": "brand info"
}

4、PC批量查询品牌系列接口

(method=web.brand.info)

请求参数

参数名称 参数类型 可否为空 示例 默认值 备注
ids int 248,187 0 品牌id列表

注意,通用的头部没有列出。
请求示例 http://devapi.yoho.cn:58078/?debug=XYZ&app_version=3.8.2&client_type=android&os_version=yohobuy%3Ah5&screen_size=720x1280&v=7&method=web.brand.info&ids=248,187&client_secret=3f31be8d35adb60425882cbb7298afa9

响应

code为200即为成功,否则是失败。 响应JSON格式如下所示:

{
  "alg": "SALT_MD5",
  "code": 200,
  "data": [
    {
      "brand_domain": "nike",
      "brand_id": 248,
      "brand_name": "Nike"
    },
    {
      "brand_domain": "wan",
      "brand_id": 187,
      "brand_name": "顽"
    }
  ],
  "md5": "695436f6e76f1a62d9fd7f588018dd06",
  "message": "brand info"
}

5、PC查询所有品牌列表接口

(method=web.brand.all)

请求参数

参数名称 参数类型 可否为空 示例 默认值 备注
type String json jsonp
callback String callback

注意,通用的头部没有列出。
请求示例 http://devapi.yoho.cn:58078/?debug=XYZ&app_version=3.8.2&client_type=android&os_version=yohobuy%3Ah5&screen_size=720x1280&v=7&method=web.brand.all&type=json&client_secret=3f31be8d35adb60425882cbb7298afa9

响应

code为200即为成功,否则是失败。 响应JSON格式如下所示:

{
  "alg": "SALT_MD5",
  "code": 200,
  "data": "\n<ul  >\n<li  ><a title=\"\" href=\n\"http://www.yohobuy.com/product/pro_15982_22381/PLUTOKaFeiSeZiSeXueBingTuAnMinZuFengVLingKaiShan.html\"\ntarget=\"_blank\"  ><img alt=\"卡西欧\" src=\n\"http://img01.static.yohobuy.com/cms/2012/03/27/14/012c01a6f9aa6dca891b98527553fd700e.jpg\" /></a></li>\n</ul>\n\n<ul  >\n<li  ><a title=\"\" href=\n\"http://www.yohobuy.com/product/pro_14704_20667/INSIGHT111143GAHIGHBROWDuanXiuTXu.html\"\ntarget=\"_blank\"  ><img alt=\n\"http://www.yohobuy.com/product/pro_10591_16026/PAULREEDMENSSWEATER1105PRSWS22.html\"\nsrc=\n\"http://img02.static.yohobuy.com/cms/2012/03/27/14/0289e31f6e2dfc58466636b3d3fc0dba47.jpg\" /></a></li>\n</ul>\n\n<ul  >\n<li  ><a title=\"\" href=\n\"http://www.yohobuy.com/product/pro_15669_21930/IZZUEIZXTEZB1172XBGRXDEEPVSLIMTEE.html\"\ntarget=\"_blank\"  ><img alt=\"LOMO\" src=\n\"http://img02.static.yohobuy.com/cms/2012/03/27/14/02a2e243341ba04b6b5e90f96925644658.jpg\" /></a></li>\n</ul>\n\n<ul  >\n<li  ><a title=\"\" href=\n\"http://www.yohobuy.com/product/pro_14743_20732/SUPREMEBEINGSBMTBLAOWSBMTBLAOWLanSeDuanXiuTXu.html\"\ntarget=\"_blank\"  ><img alt=\"民族\" src=\n\"http://img01.static.yohobuy.com/cms/2012/03/27/14/01ecd666ba2906e41998e21042591bbd5d.jpg\" /></a></li>\n</ul>\n\n<ul  >\n<li  ><a title=\"\" href=\n\"http://www.yohobuy.com/product/pro_14334_20114/CORADEROCKDuanXiuTEE.html\"\ntarget=\"_blank\"  ><img alt=\"民族\" src=\n\"http://img02.static.yohobuy.com/cms/2012/03/27/14/02c588121a4dbf9181879b2b66a2edfefe.jpg\" /></a></li>\n</ul>\n\n<ul  >\n<li  ><a title=\"\" href=\n\"http://vans.yohobuy.com/\" target=\"_blank\"  sizset=\n\"5\"><img alt=\"卡西欧\" src=\n\"http://img01.static.yohobuy.com/cms/2012/03/27/13/011a2c46cc36e7fb61507dc7a9337c7cfe.jpg\" /></a></li>\n</ul>\n\n<ul  >\n<li  ><a title=\"\" href=\n\"http://lacoste.yohobuy.com/\" target=\"_blank\"  sizset=\n\"6\"><img alt=\"swissvoice\" src=\n\"http://img01.static.yohobuy.com/cms/2012/03/27/13/01e05b20a8bdd85e5366d9e440b19a0642.jpg\" /></a></li>\n</ul>\n\n<ul  >\n<li  ><a title=\"\" href=\n\"http://www.yohobuy.com/product/pro_14674_20621/THETHINGC.html\"\ntarget=\"_blank\"  ><img alt=\"B·DUCK\" src=\n\"http://img02.static.yohobuy.com/cms/2012/03/27/13/023c65f9b2e9792880f97ce6c847735e46.jpg\" /></a></li>\n</ul>\n\n<ul  >\n<li  ><a title=\"\" href=\n\"http://hipanda.yohobuy.com/?msort=3&amp;misort=27&amp;sort=130\"\ntarget=\"_blank\"  ><img alt=\"卡西欧\" src=\n\"http://img02.static.yohobuy.com/cms/2012/03/27/13/02d786f7baea3aea946a913bc18a19fdab.jpg\" /></a></li>\n</ul>\n\n<ul  >\n<li  ><a title=\"\" href=\n\"http://magicstar.yohobuy.com/?msort=7\" target=\"_blank\" sizcache=\n\"0\" ><img alt=\"卡西欧\" src=\n\"http://img01.static.yohobuy.com/cms/2012/03/26/17/014509e19e113085f13983d2700e58e8b7.jpg\" /></a></li>\n</ul>\n\n<ul  >\n<li  ><a title=\"\" href=\n\"http://b-duck.yohobuy.com/\" target=\"_blank\"  sizset=\n\"0\"><img alt=\"卡西欧\" src=\n\"http://img01.static.yohobuy.com/cms/2012/03/26/17/015f78272d91f444025901a2bc4b28e30f.jpg\" /></a></li>\n</ul>\n\n<ul  >\n<li  ><a title=\"Rip curl\" href=\n\"http://www.yohobuy.com/product/pro_14692_20647/RIPCURLBWUNBMKOMODOWALLET.html\"\ntarget=\"_blank\"  ><img alt=\"Rip curl\" src=\n\"http://img02.static.yohobuy.com/cms/2012/03/27/13/02da6ecfdba85e649fec429abc7964cfb5.jpg\" /></a></li>\n</ul>\n",
  "md5": "946825cc8ddf2344f2fcbff59ba876ff",
  "message": "html content"
}