Showing
1 changed file
with
190 additions
and
0 deletions
商品列表/brand.md
0 → 100644
1 | +## 1、PC根据域名查询品牌接口## | ||
2 | + | ||
3 | +(method=web.brand.byDomain) | ||
4 | +#### 请求参数 | ||
5 | +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
6 | +|:-------| -----:|-----:|-----:|-----:|----:| | ||
7 | +|domain|String|否|004|null|域名| | ||
8 | + | ||
9 | +注意,通用的头部没有列出。 | ||
10 | +请求示例 | ||
11 | +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 | ||
12 | + | ||
13 | +### 响应 | ||
14 | +code为200即为成功,否则是失败。 | ||
15 | +响应JSON格式如下所示: | ||
16 | +```json | ||
17 | +{ | ||
18 | + "alg": "SALT_MD5", | ||
19 | + "code": 200, | ||
20 | + "data": { | ||
21 | + "brandAlif": "0", | ||
22 | + "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", | ||
23 | + "brand_domain": "004", | ||
24 | + "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", | ||
25 | + "brand_id": 1, | ||
26 | + "brand_name": "004", | ||
27 | + "brand_name_cn": "零零肆", | ||
28 | + "brand_name_en": "004" | ||
29 | + }, | ||
30 | + "md5": "2890de38da3dc48c30246f88c257bca2", | ||
31 | + "message": "brand info" | ||
32 | +} | ||
33 | +``` | ||
34 | + | ||
35 | +## 2、PC查询品牌分类接口## | ||
36 | + | ||
37 | +(method=web.brand.folder) | ||
38 | +#### 请求参数 | ||
39 | +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
40 | +|:-------| -----:|-----:|-----:|-----:|----:| | ||
41 | +|brand_id|int|否|248|0|品牌id| | ||
42 | +|status|int|是|1|1|状态| | ||
43 | + | ||
44 | +注意,通用的头部没有列出。 | ||
45 | +请求示例 | ||
46 | +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 | ||
47 | +### 响应 | ||
48 | +code为200即为成功,否则是失败。 | ||
49 | +响应JSON格式如下所示: | ||
50 | +```json | ||
51 | +{ | ||
52 | + "alg": "SALT_MD5", | ||
53 | + "code": 200, | ||
54 | + "data": [ | ||
55 | + { | ||
56 | + "brand_id": 248, | ||
57 | + "brand_sort_ico": "http://img13.static.yhbimg.com/brandBanner/2015/04/03/10/020ca8ededdc8087357f6cadcb93f98d3f.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
58 | + "brand_sort_name": "HUARACHE", | ||
59 | + "id": 1188, | ||
60 | + "order_by": 12, | ||
61 | + "parent_id": 0, | ||
62 | + "status": 1 | ||
63 | + }, | ||
64 | + { | ||
65 | + "brand_id": 248, | ||
66 | + "brand_sort_ico": "http://img11.static.yhbimg.com/brandBanner/2015/04/03/10/0162828177b1c5ecb3967df0944b2887e2.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
67 | + "brand_sort_name": "FLIGHT", | ||
68 | + "id": 1176, | ||
69 | + "order_by": 11, | ||
70 | + "parent_id": 0, | ||
71 | + "status": 1 | ||
72 | + }, | ||
73 | + { | ||
74 | + "brand_id": 248, | ||
75 | + "brand_sort_ico": "http://img11.static.yhbimg.com/brandBanner/2014/04/24/06/0102a8ebab1244f71af26c1348e62fd1fb.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
76 | + "brand_sort_name": "AIRMAX", | ||
77 | + "id": 260, | ||
78 | + "order_by": 10, | ||
79 | + "parent_id": 0, | ||
80 | + "status": 1 | ||
81 | + }, | ||
82 | + { | ||
83 | + "brand_id": 248, | ||
84 | + "brand_sort_ico": "http://img12.static.yhbimg.com/brandBanner/2014/04/24/07/02391a5e71663242380adb7adfed190295.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
85 | + "brand_sort_name": "复古跑鞋", | ||
86 | + "id": 261, | ||
87 | + "order_by": 4, | ||
88 | + "parent_id": 0, | ||
89 | + "status": 1 | ||
90 | + }, | ||
91 | + { | ||
92 | + "brand_id": 248, | ||
93 | + "brand_sort_ico": "http://img11.static.yhbimg.com/brandBanner/2015/04/03/10/0170918b0458f3867362440ddef083c6d0.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
94 | + "brand_sort_name": "凉拖", | ||
95 | + "id": 1189, | ||
96 | + "order_by": 2, | ||
97 | + "parent_id": 0, | ||
98 | + "status": 1 | ||
99 | + }, | ||
100 | + { | ||
101 | + "brand_id": 248, | ||
102 | + "brand_sort_ico": "http://img11.static.yhbimg.com/brandBanner/2014/04/24/07/01ed6baae9ca98b88fc2e32fc79bc9d54b.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
103 | + "brand_sort_name": "OTHERS", | ||
104 | + "id": 38, | ||
105 | + "order_by": 1, | ||
106 | + "parent_id": 0, | ||
107 | + "status": 1 | ||
108 | + } | ||
109 | + ], | ||
110 | + "md5": "e24c0c724646c486236bf24b7cb2a9a5", | ||
111 | + "message": "brand info" | ||
112 | +} | ||
113 | +``` | ||
114 | + | ||
115 | +## 3、PC查询品牌系列接口## | ||
116 | + | ||
117 | +(method=web.brand.series) | ||
118 | +#### 请求参数 | ||
119 | +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
120 | +|:-------| -----:|-----:|-----:|-----:|----:| | ||
121 | +|brand_id|int|否|248|0|品牌id| | ||
122 | +|status|int|是|1|1|状态| | ||
123 | + | ||
124 | +注意,通用的头部没有列出。 | ||
125 | +请求示例 | ||
126 | +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 | ||
127 | +### 响应 | ||
128 | +code为200即为成功,否则是失败。 | ||
129 | +响应JSON格式如下所示: | ||
130 | +```json | ||
131 | +{ | ||
132 | + "alg": "SALT_MD5", | ||
133 | + "code": 200, | ||
134 | + "data": [ | ||
135 | + { | ||
136 | + "brand_id": 248, | ||
137 | + "id": 7, | ||
138 | + "order_by": 2, | ||
139 | + "series_banner": "http://img11.static.yhbimg.com/brandBanner/2012/04/05/17/01801f6679d23f0d48ae8efcdce17cb4a5.jpg", | ||
140 | + "series_name": "NSW", | ||
141 | + "status": 0 | ||
142 | + }, | ||
143 | + { | ||
144 | + "brand_id": 248, | ||
145 | + "id": 8, | ||
146 | + "order_by": 1, | ||
147 | + "series_banner": "http://img13.static.yhbimg.com/brandBanner/2012/08/09/18/026e278aebf5b351b34ffe2312510ea717.jpg", | ||
148 | + "series_name": "Action Sports", | ||
149 | + "status": 0 | ||
150 | + } | ||
151 | + ], | ||
152 | + "md5": "89445294eb4487a1233cff63b1df01e7", | ||
153 | + "message": "brand info" | ||
154 | +} | ||
155 | +``` | ||
156 | + | ||
157 | +## 4、PC批量查询品牌系列接口## | ||
158 | + | ||
159 | +(method=web.brand.info) | ||
160 | +#### 请求参数 | ||
161 | +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
162 | +|:-------| -----:|-----:|-----:|-----:|----:| | ||
163 | +|ids|int|否|248,187|0|品牌id列表| | ||
164 | + | ||
165 | +注意,通用的头部没有列出。 | ||
166 | +请求示例 | ||
167 | +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 | ||
168 | +### 响应 | ||
169 | +code为200即为成功,否则是失败。 | ||
170 | +响应JSON格式如下所示: | ||
171 | +```json | ||
172 | +{ | ||
173 | + "alg": "SALT_MD5", | ||
174 | + "code": 200, | ||
175 | + "data": [ | ||
176 | + { | ||
177 | + "brand_domain": "nike", | ||
178 | + "brand_id": 248, | ||
179 | + "brand_name": "Nike" | ||
180 | + }, | ||
181 | + { | ||
182 | + "brand_domain": "wan", | ||
183 | + "brand_id": 187, | ||
184 | + "brand_name": "顽" | ||
185 | + } | ||
186 | + ], | ||
187 | + "md5": "695436f6e76f1a62d9fd7f588018dd06", | ||
188 | + "message": "brand info" | ||
189 | +} | ||
190 | +``` |
-
Please register or login to post a comment