Showing
1 changed file
with
22 additions
and
1737 deletions
1 | -## 1、获取文章作者信息## | ||
2 | - | ||
3 | -获取文章作者信息(/guang/service/*/author/getAuthor)(h5接口) | ||
4 | -#### 请求参数 | ||
5 | -| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
6 | -|:-------| -----:|-----:|-----:|-----:|----:| | ||
7 | -|author_id|string|否|380463|0|作者的用户id| | ||
8 | -|client_type|string|否|h5|h5|客户端类型| | ||
9 | - | ||
10 | -注意,通用的头部没有列出。 | ||
11 | -请求示例 | ||
12 | -http://192.168.102.205:8080/gateway/guang/service/*/author/getAuthor?author_id=380463&client_type=h5 | ||
13 | - | ||
14 | -### 响应 | ||
15 | -code为200即为成功,否则是失败。 | ||
16 | -响应JSON格式如下所示: | ||
17 | -```json | ||
18 | -{ | ||
19 | - "code": 200, | ||
20 | - "data": { | ||
21 | - "author_desc": "Because i'm fierce,bitch!", | ||
22 | - "avatar": "http://img12.static.yhbimg.com/yhb-img02/2015/06/12/12/02aafe4efc368f307c02b692cf1f862570.jpg?imageView/0/w/100/h/100", | ||
23 | - "name": "uncle-sam", | ||
24 | - "url": "http://guang.m.yohobuy.com/author/index?id=380463" | ||
25 | - }, | ||
26 | - "message": "author info" | ||
27 | -} | ||
28 | -``` | ||
29 | - | ||
30 | -## 2、获取逛的详情内容 ## | ||
31 | - | ||
32 | -获取逛的详情内容(/guang/service/*/article/getArticleContent)(h5接口) | ||
33 | -#### 请求参数 | ||
34 | -| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
35 | -|:-------| -----:|-----:|-----:|-----:|----:| | ||
36 | -|article_id|string|否|105|0|文章id| | ||
37 | -|client_type|string|否|h5|h5|客户端类型| | ||
38 | - | ||
39 | -注意,通用的头部没有列出。 | ||
40 | -请求示例 | ||
41 | -http://192.168.102.205:8080/gateway/guang/service/*/article/getArticleContent?article_id=105&client_type=h5 | ||
42 | - | ||
43 | -### 响应 | ||
44 | -code为200即为成功,否则是失败。 | ||
45 | -响应JSON格式如下所示: | ||
46 | -```json | ||
47 | -{ | ||
48 | - "code": 200, | ||
49 | - "data": [ | ||
50 | - { | ||
51 | - "text": { | ||
52 | - "data": { | ||
53 | - "text": "终于迎来了“潮人”的新栏目,潮人并非只是明星idol,潮人就在我们生活之中,在你的身边。最帅最潮的人都在这,不是明星也是弄潮儿,够潮就来“show”!小编每周都会选择一些“show”上的潮人在这里展现给大伙。他们并非明星,他们都是如同普普通通的你我他。" | ||
54 | - }, | ||
55 | - "template_name": "text" | ||
56 | - } | ||
57 | - }, | ||
58 | - { | ||
59 | - "singleImage": { | ||
60 | - "data": [ | ||
61 | - { | ||
62 | - "alt": "", | ||
63 | - "imgId": "0", | ||
64 | - "src": "http://img12.static.yhbimg.com/yhb-img01/2016/01/19/08/02a5a842e56b971ccf3d628cdf53f477a1.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
65 | - "title": "", | ||
66 | - "url": "" | ||
67 | - } | ||
68 | - ], | ||
69 | - "template_intro": "一张图片", | ||
70 | - "template_name": "single_image" | ||
71 | - } | ||
72 | - }, | ||
73 | - { | ||
74 | - "goodsGroup": { | ||
75 | - "data": [ | ||
76 | - { | ||
77 | - "cover": { | ||
78 | - "cover": "http://img11.static.yhbimg.com/goodsimg/2015/10/23/08/0148bbf47d50fc6c2d18bccca37d87e723.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/90", | ||
79 | - "maxSortId": "1" | ||
80 | - }, | ||
81 | - "list": [ | ||
82 | - { | ||
83 | - "id": "51148828", | ||
84 | - "maxSortId": "1", | ||
85 | - "src": "http://img11.static.yhbimg.com/goodsimg/2015/10/23/08/0148bbf47d50fc6c2d18bccca37d87e723.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/90" | ||
86 | - }, | ||
87 | - { | ||
88 | - "id": "51185633", | ||
89 | - "maxSortId": "1", | ||
90 | - "src": "http://img10.static.yhbimg.com/goodsimg/2015/12/17/05/015744f4a9021ce569bdb05eadbad8064a.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/90" | ||
91 | - } | ||
92 | - ] | ||
93 | - }, | ||
94 | - { | ||
95 | - "cover": { | ||
96 | - "cover": "http://img13.static.yhbimg.com/goodsimg/2015/09/22/09/025cd41779251e6c96e129398367cc2e75.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/90", | ||
97 | - "maxSortId": "3" | ||
98 | - }, | ||
99 | - "list": [ | ||
100 | - { | ||
101 | - "id": "51137901", | ||
102 | - "maxSortId": "3", | ||
103 | - "src": "http://img13.static.yhbimg.com/goodsimg/2015/09/22/09/025cd41779251e6c96e129398367cc2e75.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/90" | ||
104 | - }, | ||
105 | - { | ||
106 | - "id": "51121171", | ||
107 | - "maxSortId": "3", | ||
108 | - "src": "http://img11.static.yhbimg.com/goodsimg/2015/08/04/06/01250c31d99c2a8c24053a4cb472c30eac.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/90" | ||
109 | - } | ||
110 | - ] | ||
111 | - } | ||
112 | - ], | ||
113 | - "template_intro": "添加商品组", | ||
114 | - "template_name": "goods_group" | ||
115 | - } | ||
116 | - } | ||
117 | - ], | ||
118 | - "message": "get article content success" | ||
119 | -} | ||
120 | -``` | ||
121 | - | ||
122 | -## 3、获取逛明星原创品牌相关的推荐内容 ## | ||
123 | - | ||
124 | -获取逛明星原创品牌相关的推荐内容(/guang/service/*/article/getArticleByBrand)(h5接口) | ||
125 | -#### 请求参数 | ||
126 | -| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
127 | -|:-------| -----:|-----:|-----:|-----:|----:| | ||
128 | -|brand_id|int|否|138|0|品牌id| | ||
129 | -|udid|String|是|dwadadas|空字符串|udid| | ||
130 | -|limit|int|否|3|10|取推荐内容的数量| | ||
131 | -|client_type|string|否|iphone|h5|客户端类型| | ||
132 | - | ||
133 | -注意,通用的头部没有列出。 | ||
134 | -请求示例 | ||
135 | -http://192.168.102.205:8080/gateway/guang/service/*/article/getArticleByBrand?brand_id=138&udid=xxxx&limit=3&client_type=iphone | ||
136 | - | ||
137 | -### 响应 | ||
138 | -code为200即为成功,否则是失败。 | ||
139 | -响应JSON格式如下所示: | ||
140 | -```json | ||
141 | -{ | ||
142 | - "code": 200, | ||
143 | - "data": [ | ||
144 | - { | ||
145 | - "cover_image_type": "1", | ||
146 | - "id": "33464", | ||
147 | - "intro": "畏手畏脚的冬季,一件温暖的羽绒服必不可少!小编良心推荐:总有一款适合你的!这鞋百搭的款式,让你10分钟就能帅气出门!", | ||
148 | - "like": { | ||
149 | - "count": "0", | ||
150 | - "isLiked": false | ||
151 | - }, | ||
152 | - "praise_num": "0", | ||
153 | - "publish_time": "2月1日 14:32", | ||
154 | - "share_url": { | ||
155 | - "url": "http://guang.m.yohobuy.com/info/index?id=33464&openby:yohobuy={\"action\":\"go.share\",\"params\":{\"pic\":\"http://img12.static.yhbimg.com/yhb-img01/2016/01/19/09/02b766bce5c0c03e73fde89f1cf93650ea.jpg?imageView/2/w/640/h/640\",\"title\":\"百搭的御寒棉羽,谁都不嫌多!\",\"url\":\"http://guang.m.yohobuy.com/info/index?id=33464\",\"content\":\"潮流资讯,新鲜贩售,YOHO!有货【逛】不停\"}}" | ||
156 | - }, | ||
157 | - "src": "http://img12.static.yhbimg.com/yhb-img01/2016/01/19/09/02b766bce5c0c03e73fde89f1cf93650ea.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
158 | - "title": "百搭的御寒棉羽,谁都不嫌多!", | ||
159 | - "url": "http://guang.m.yohobuy.com/info/index?id=33464&openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"33464\"},\"update_flag\":\"a00334243e2c253741a0b8baacd44576\",\"shareparam\":{\"id\":33464},\"share\":\"/guang/api/v1/share/guang\",\"id\":33464,\"type\":1,\"url\":\"http://guang.m.yohobuy.com/info/index\",\"islogin\":\"N\"}}", | ||
160 | - "views_num": "6" | ||
161 | - }, | ||
162 | - { | ||
163 | - "cover_image_type": "1", | ||
164 | - "id": "32002", | ||
165 | - "intro": "喜欢军事风还要来点清新?卫衣和CAP帽是你的超好帮手!", | ||
166 | - "like": { | ||
167 | - "count": "18", | ||
168 | - "isLiked": false | ||
169 | - }, | ||
170 | - "praise_num": "18", | ||
171 | - "publish_time": "1月9日 09:40", | ||
172 | - "share_url": { | ||
173 | - "url": "http://guang.m.yohobuy.com/info/index?id=32002&openby:yohobuy={\"action\":\"go.share\",\"params\":{\"pic\":\"http://img11.static.yhbimg.com/yhb-img01/2016/01/07/13/0190eeeb3ba53c536bda8de8380f378ea4.jpg?imageView/2/w/640/h/640\",\"title\":\"WDYWT|让女生好感度UP UP最讨巧穿法!实用有型两不误\",\"url\":\"http://guang.m.yohobuy.com/info/index?id=32002\",\"content\":\"潮流资讯,新鲜贩售,YOHO!有货【逛】不停\"}}" | ||
174 | - }, | ||
175 | - "src": "http://img11.static.yhbimg.com/yhb-img01/2016/01/07/13/0190eeeb3ba53c536bda8de8380f378ea4.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
176 | - "title": "WDYWT|让女生好感度UP UP最讨巧穿法!实用有型两不误", | ||
177 | - "url": "http://guang.m.yohobuy.com/info/index?id=32002&openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"32002\"},\"update_flag\":\"407664152cd1d79829afd585fcb42857\",\"shareparam\":{\"id\":32002},\"share\":\"/guang/api/v1/share/guang\",\"id\":32002,\"type\":1,\"url\":\"http://guang.m.yohobuy.com/info/index\",\"islogin\":\"N\"}}", | ||
178 | - "views_num": "72669" | ||
179 | - }, | ||
180 | - { | ||
181 | - "cover_image_type": "1", | ||
182 | - "id": "31434", | ||
183 | - "intro": "羽绒服绝对是最能考验你穿搭功力的单品了。搭配好它让你帅气又有品味。", | ||
184 | - "like": { | ||
185 | - "count": "33", | ||
186 | - "isLiked": false | ||
187 | - }, | ||
188 | - "praise_num": "33", | ||
189 | - "publish_time": "1月5日 12:00", | ||
190 | - "share_url": { | ||
191 | - "url": "http://guang.m.yohobuy.com/info/index?id=31434&openby:yohobuy={\"action\":\"go.share\",\"params\":{\"pic\":\"http://img11.static.yhbimg.com/yhb-img01/2016/01/06/09/01965389a509da1368bb646b2e80b2b603.jpg?imageView/2/w/640/h/640\",\"title\":\"羽绒服也能搭出轻松街头感,再也不嫌弃它丑了\",\"url\":\"http://guang.m.yohobuy.com/info/index?id=31434\",\"content\":\"潮流资讯,新鲜贩售,YOHO!有货【逛】不停\"}}" | ||
192 | - }, | ||
193 | - "src": "http://img11.static.yhbimg.com/yhb-img01/2016/01/06/09/01965389a509da1368bb646b2e80b2b603.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
194 | - "title": "羽绒服也能搭出轻松街头感,再也不嫌弃它丑了", | ||
195 | - "url": "http://guang.m.yohobuy.com/info/index?id=31434&openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"31434\"},\"update_flag\":\"68fed099f2647092e12ddaa9043d374e\",\"shareparam\":{\"id\":31434},\"share\":\"/guang/api/v1/share/guang\",\"id\":31434,\"type\":1,\"url\":\"http://guang.m.yohobuy.com/info/index\",\"islogin\":\"N\"}}", | ||
196 | - "views_num": "95962" | ||
197 | - } | ||
198 | - ], | ||
199 | - "message": "get article by brand success" | ||
200 | -} | ||
201 | -``` | ||
202 | - | ||
203 | -## 4.逛明星原创品牌收藏/取消收藏 ## | ||
204 | - | ||
205 | -逛明星原创品牌收藏/取消收藏(/guang/service/*/favorite/toggleBrand)(h5接口) | ||
206 | -#### 请求参数 | ||
207 | -| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
208 | -|:-------| -----:|-----:|-----:|-----:|----:| | ||
209 | -|uid|string|否|380463|0|用户id| | ||
210 | -|brand_id|string|否|16745|0|品牌id| | ||
211 | - | ||
212 | -注意,通用的头部没有列出。 | ||
213 | -请求示例 | ||
214 | - | ||
215 | -### 响应 | ||
216 | -code为200即为成功,否则是失败。 | ||
217 | -响应JSON格式如下所示: | ||
218 | -```json | ||
219 | -{ | ||
220 | - "code": 200, | ||
221 | - "data": [], | ||
222 | - "message": "success" | ||
223 | -} | ||
224 | -``` | ||
225 | - | ||
226 | -## 5.获取逛分类列表 ## | ||
227 | - | ||
228 | -获取逛分类列表(/guang/api/*/category/get)(app接口) | ||
229 | -#### 请求参数 | ||
230 | -无 | ||
231 | - | ||
232 | -注意,通用的头部没有列出。 | ||
233 | -请求示例 | ||
234 | -http://testservice.yoho.cn:28077/guang/api/v1/category/get?app_version=4.1.0.1603120001&client_secret=885531c84852f03f8a76eb8edf896f6a&client_type=iphone&gender=1%2C2%2C3&os_version=9.2.1&screen_size=320x568&udid=258e608815a77ba2f9094da936f896ef4fd65721&v=7&yh_channel=4 | ||
235 | - | ||
236 | -### 响应 | ||
237 | -code为200即为成功,否则是失败。 | ||
238 | -响应JSON格式如下所示: | ||
239 | -```json | ||
240 | -{ | ||
241 | - "code": 200, | ||
242 | - "data": [ | ||
243 | - { | ||
244 | - "id": "0", | ||
245 | - "name": "最新" | ||
246 | - }, | ||
247 | - { | ||
248 | - "id": "1", | ||
249 | - "name": "话题" | ||
250 | - }, | ||
251 | - { | ||
252 | - "id": "2", | ||
253 | - "name": "搭配" | ||
254 | - }, | ||
255 | - { | ||
256 | - "id": "3", | ||
257 | - "name": "潮人" | ||
258 | - }, | ||
259 | - { | ||
260 | - "id": "4", | ||
261 | - "name": "潮品hh" | ||
262 | - }, | ||
263 | - { | ||
264 | - "id": "5", | ||
265 | - "name": "小贴士" | ||
266 | - } | ||
267 | - ], | ||
268 | - "message": "分类列表" | ||
269 | -} | ||
270 | -``` | ||
271 | - | ||
272 | -## 6.获取逛某一分类下资讯列表 ## | ||
273 | - | ||
274 | -获取逛某一分类下资讯列表(/guang/api/*/article/getList)(app接口) | ||
275 | -#### 请求参数 | ||
276 | -| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
277 | -|:-------| -----:|-----:|-----:|-----:|----:| | ||
278 | -|sort_id|int|是|-|0|分类id| | ||
279 | -|gender|string|是|-|emptyString|性别| | ||
280 | -|author_id|int|是|1|0|作者id| | ||
281 | -|tag|string|是|-|emptyString|标签| | ||
282 | -|uid|int|是|25|0|uid| | ||
283 | -|udid|String|是|-|emptyString|udid| | ||
284 | -|client_type|String|是|iphone|h5|客户端类型| | ||
285 | -|page|Integer|是|1|1|页码| | ||
286 | -|limit|Integer|是|10|10|分页大小| | ||
287 | - | ||
288 | -注意,通用的头部没有列出。 | ||
289 | -请求示例 | ||
290 | -http://testservice.yoho.cn:28077/guang/api/v2/article/getList?app_version=4.1.0.1603120001&client_secret=0955a436492e71767d4b9a825a367799&client_type=iphone&gender=2%2C3&limit=20&os_version=9.2.1&page=1&screen_size=320x568&sort_id=0&udid=258e608815a77ba2f9094da936f896ef4fd65721&uid=8039983&v=7&yh_channel=2 | ||
291 | - | ||
292 | -### 响应 | ||
293 | -code为200即为成功,否则是失败。 | ||
294 | -响应JSON格式如下所示: | ||
295 | -```json | ||
296 | - { | ||
297 | - "code": 200, | ||
298 | - "data": { | ||
299 | - "datetime": "1458290534", | ||
300 | - "gender": "2,3", | ||
301 | - "list": { | ||
302 | - "adlist": [ | ||
303 | - { | ||
304 | - "bgColor": "", | ||
305 | - "src": "http://img11.static.yhbimg.com/yhb-img01/2016/01/15/10/01fd86495edd6c9d051ed93f50de6bbbce.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
306 | - "title": "", | ||
307 | - "url": "http://feature.yoho.cn/0115LIXIANGXIANG/index.html?title=YOHO!BUY对话李祥祥SEAN&share_id=658&openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"share_id\":\"658\",\"title\":\"YOHO!BUY对话李祥祥SEAN\"},\"share\":\"/operations/api/v5/webshare/getShare\",\"shareparam\":{\"share_id\":\"658\"},\"title\":\"YOHO!BUY对话李祥祥SEAN\",\"url\":\"http://feature.yoho.cn/0115LIXIANGXIANG/index.html\"}}" | ||
308 | - }, | ||
309 | - { | ||
310 | - "bgColor": "", | ||
311 | - "src": "http://img12.static.yhbimg.com/yhb-img01/2016/01/15/06/028599b9ee7a7f0444bf0cbbe74be88081.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
312 | - "title": "", | ||
313 | - "url": "http://feature.yohobuy.com/0/0/774/index.html?title=大学生背包调查报告&share_id=656&openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"share_id\":\"656\",\"title\":\"大学生背包调查报告\"},\"share\":\"/operations/api/v5/webshare/getShare\",\"shareparam\":{\"share_id\":\"656\"},\"title\":\"大学生背包调查报告\",\"url\":\"http://feature.yohobuy.com/0/0/774/index.html\"}}" | ||
314 | - } | ||
315 | - ], | ||
316 | - "artList": [ | ||
317 | - { | ||
318 | - "ads_img_size": "", | ||
319 | - "article_type": "1", | ||
320 | - "author": { | ||
321 | - "author_id": "521285", | ||
322 | - "avatar": "http://img12.static.yhbimg.com/yhb-img02/2015/06/11/20/02b8e3fd4824df3ada9a87912baed658a9.jpg?imageView/0/w/100/h/100", | ||
323 | - "name": "Milk", | ||
324 | - "url": "http://guang.m.yohobuy.com/author/index?id=521285&openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"521285\"},\"share\":\"\",\"id\":521285,\"type\":0,\"islogin\":\"N\",\"url\":\"http://guang.m.yohobuy.com/author/index\"}}" | ||
325 | - }, | ||
326 | - "author_id": "521285", | ||
327 | - "category_id": "2", | ||
328 | - "category_name": "搭配", | ||
329 | - "conver_image_type": "1", | ||
330 | - "id": 33534, | ||
331 | - "intro": "是短发的司法是的发生的法师打发是否", | ||
332 | - "isFavor": "N", | ||
333 | - "isPraise": "N", | ||
334 | - "is_recommended": "0", | ||
335 | - "praiseStatus": "true", | ||
336 | - "praise_num": "1", | ||
337 | - "publish_time": "03月04日 14:05", | ||
338 | - "share": { | ||
339 | - "url": "http://guang.m.yohobuy.com/info/index?id=33534&openby:yohobuy={\"action\":\"go.share\",\"params\":{\"pic\":\"http://img11.static.yhbimg.com/yhb-img01/2016/03/04/06/012b04df3ecc1d94afddff082d139c6f15.jpg?imageView/2/w/640/h/640\",\"title\":\"测试普通文章\",\"url\":\"http://guang.m.yohobuy.com/info/index?id=33534\",\"content\":\"潮流资讯,新鲜贩售,YOHO!有货【逛】不停\"}}" | ||
340 | - }, | ||
341 | - "src": "http://img11.static.yhbimg.com/yhb-img01/2016/03/04/06/012b04df3ecc1d94afddff082d139c6f15.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
342 | - "title": "测试普通文章", | ||
343 | - "url": "http://guang.m.yohobuy.com/info/index?id=33534&openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"33534\"},\"update_flag\":\"d6a15c22bf7063e79c14d7ee92e14dc6\",\"shareparam\":{\"id\":33534},\"share\":\"/guang/api/v1/share/guang\",\"id\":33534,\"type\":1,\"url\":\"http://guang.m.yohobuy.com/info/index\",\"islogin\":\"N\"}}", | ||
344 | - "views_num": "57" | ||
345 | - }, | ||
346 | - { | ||
347 | - "ads_img_size": "", | ||
348 | - "article_type": "1", | ||
349 | - "author": { | ||
350 | - "author_id": "3997053", | ||
351 | - "avatar": "http://img13.static.yhbimg.com/yhb-img02/2015/06/12/13/02e09398fe2b9335212f798495f8a8ae6c.jpg?imageView/0/w/100/h/100", | ||
352 | - "name": "艾迪虎", | ||
353 | - "url": "http://guang.m.yohobuy.com/author/index?id=3997053&openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"3997053\"},\"share\":\"\",\"id\":3997053,\"type\":0,\"islogin\":\"N\",\"url\":\"http://guang.m.yohobuy.com/author/index\"}}" | ||
354 | - }, | ||
355 | - "author_id": "3997053", | ||
356 | - "category_id": "5", | ||
357 | - "category_name": "小贴士", | ||
358 | - "conver_image_type": "2", | ||
359 | - "id": 33508, | ||
360 | - "intro": "“ 听说穿成这样很容易把妹 ”", | ||
361 | - "isFavor": "N", | ||
362 | - "isPraise": "N", | ||
363 | - "is_recommended": "0", | ||
364 | - "praiseStatus": "true", | ||
365 | - "praise_num": "0", | ||
366 | - "publish_time": "02月01日 14:31", | ||
367 | - "share": { | ||
368 | - "url": "http://guang.m.yohobuy.com/info/index?id=33508&openby:yohobuy={\"action\":\"go.share\",\"params\":{\"pic\":\"http://img11.static.yhbimg.com/yhb-img01/2016/01/19/11/014a55114eff791041f0228674fa08a07f.gif?imageView/2/w/640/h/640\",\"title\":\"一秒变暖男 | 男生高领衫穿搭攻略!\",\"url\":\"http://guang.m.yohobuy.com/info/index?id=33508\",\"content\":\"潮流资讯,新鲜贩售,YOHO!有货【逛】不停\"}}" | ||
369 | - }, | ||
370 | - "src": "http://img11.static.yhbimg.com/yhb-img01/2016/01/19/11/014a55114eff791041f0228674fa08a07f.gif?imageView/{mode}/w/{width}/h/{height}", | ||
371 | - "title": "一秒变暖男 | 男生高领衫穿搭攻略!", | ||
372 | - "url": "http://guang.m.yohobuy.com/info/index?id=33508&openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"33508\"},\"update_flag\":\"c3481b5b2bb7d7c38385f6c096782157\",\"shareparam\":{\"id\":33508},\"share\":\"/guang/api/v1/share/guang\",\"id\":33508,\"type\":1,\"url\":\"http://guang.m.yohobuy.com/info/index\",\"islogin\":\"N\"}}", | ||
373 | - "views_num": "2" | ||
374 | - } | ||
375 | - ] | ||
376 | - }, | ||
377 | - "page": 1, | ||
378 | - "total": 9254, | ||
379 | - "totalPage": 926 | ||
380 | - }, | ||
381 | - "message": "资讯列表" | ||
382 | - } | ||
383 | -``` | ||
384 | - | ||
385 | -## 7.资讯更新数量提醒 ## | ||
386 | - | ||
387 | -资讯更新数量提醒(/guang/api/*/article/getArticleNotice)(app接口) | ||
388 | -#### 请求参数 | ||
389 | -| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
390 | -|:-------| -----:|-----:|-----:|-----:|----:| | ||
391 | -|gender|string|是|1|-|性别| | ||
392 | -|datetime|string|是|12316548|-|上次提醒时间| | ||
393 | - | ||
394 | -注意,通用的头部没有列出。 | ||
395 | -请求示例 | ||
396 | -http://testservice.yoho.cn:28077/guang/api/v1/article/getArticleNotice?app_version=4.1.0.1603120001&client_secret=39dbeae016562ae785a81e4581fe4be7&client_type=iphone&datetime=1453974260.210718&gender=1%2C2%2C3&os_version=9.2.1&screen_size=320x568&udid=258e608815a77ba2f9094da936f896ef4fd65721&v=7&yh_channel=3 | ||
397 | - | ||
398 | -### 响应 | ||
399 | -code为200即为成功,否则是失败。 | ||
400 | -响应JSON格式如下所示: | ||
401 | -```json | ||
402 | - { | ||
403 | - "code": 200, | ||
404 | - "data": { | ||
405 | - "datetime": 1458282983, | ||
406 | - "gender": "1,2,3", | ||
407 | - "total": 19 | ||
408 | - }, | ||
409 | - "message": "更新数量" | ||
410 | - } | ||
411 | -``` | ||
412 | - | ||
413 | -## 8.获取资讯内容 ## | ||
414 | - | ||
415 | -获取资讯内容(/guang/api/*/share/guang)(app接口) | ||
416 | -#### 请求参数 | ||
417 | -| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
418 | -|:-------| -----:|-----:|-----:|-----:|----:| | ||
419 | -|id|int|否|1|-|资讯id| | ||
420 | - | ||
421 | -注意,通用的头部没有列出。 | ||
422 | -请求示例 | ||
423 | -http://testservice.yoho.cn:28077/guang/api/v1/share/guang?app_version=4.1.0.1603120001&client_secret=b78c78d2cac2402e42b7b0af86b743fd&client_type=iphone&id=33533&os_version=9.2.1&screen_size=320x568&v=7&yh_channel=2 | ||
424 | - | ||
425 | -### 响应 | ||
426 | -code为200即为成功,否则是失败。 | ||
427 | -响应JSON格式如下所示: | ||
428 | -```json | ||
429 | - { | ||
430 | - "code": 200, | ||
431 | - "data": { | ||
432 | - "content": "是哈哈哈是是是是哈哈哈是是是是哈哈哈是是是是哈哈哈是是是是哈哈哈是是是是哈哈哈是是是是哈哈哈是是是是哈哈哈是是是是哈哈哈是是是是", | ||
433 | - "pic": "http://img12.static.yhbimg.com/yhb-img01/2016/03/03/06/0232f5ed5a28935ee0c5daf8ee87114629.jpg?imageView/2/w/640/h/640", | ||
434 | - "praise_num": 0, | ||
435 | - "title": "是哈哈哈是是是是哈哈哈是是是是哈哈哈是是是是哈哈哈是是是是哈哈哈是是是是哈哈哈是是是是哈哈哈是是是是哈哈哈是是是是哈哈哈是是是是", | ||
436 | - "url": "http://guang.m.yohobuy.com/info/index?id=33533" | ||
437 | - }, | ||
438 | - "message": "文章分享" | ||
439 | - } | ||
440 | -``` | ||
441 | - | ||
442 | -## 9.获取资讯内容详情 ## | ||
443 | - | ||
444 | -获取资讯内容详情(/guang/api/*/article/getArticleBaseInfo)(app接口) | ||
445 | -#### 请求参数 | ||
446 | -| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
447 | -|:-------| -----:|-----:|-----:|-----:|----:| | ||
448 | -|id|int|否|1|-|资讯id| | ||
449 | -|uid|String|是|25|-|uid| | ||
450 | -|udid|String|是|132646783|-|udid| | ||
451 | - | ||
452 | -注意,通用的头部没有列出。 | ||
453 | -请求示例 | ||
454 | -http://testservice.yoho.cn:28077/guang/api/v2/article/getArticleBaseInfo?app_version=4.1.0.1603120001&client_secret=fda947ffa036e19e63ae42d186697f95&client_type=iphone&id=33533&os_version=9.2.1&screen_size=320x568&udid=258e608815a77ba2f9094da936f896ef4fd65721&uid=8039983&v=7 | ||
455 | - | ||
456 | -### 响应 | ||
457 | -code为200即为成功,否则是失败。 | ||
458 | -响应JSON格式如下所示: | ||
459 | -```json | ||
460 | - { | ||
461 | - "code": 200, | ||
462 | - "data": { | ||
463 | - "category_id": 4, | ||
464 | - "id": 33533, | ||
465 | - "intro": "435345345345", | ||
466 | - "isFavor": "N", | ||
467 | - "isPraise": "N", | ||
468 | - "is_recommended": 1, | ||
469 | - "praise_num": 0, | ||
470 | - "publish_time": "2016-02-17 10:26:50", | ||
471 | - "src": "http://img12.static.yhbimg.com/yhb-img01/2016/03/03/06/0232f5ed5a28935ee0c5daf8ee87114629.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
472 | - "title": "是哈哈哈是是是是哈哈哈是是是是哈哈哈是是是是哈哈哈是是是是哈哈哈是是是是哈哈哈是是是是哈哈哈是是是是哈哈哈是是是是哈哈哈是是是是", | ||
473 | - "view_num": 18 | ||
474 | - }, | ||
475 | - "message": "文章分享" | ||
476 | - } | ||
477 | -``` | ||
478 | - | ||
479 | -## 10.资讯收藏 ## | ||
480 | - | ||
481 | -资讯收藏(/guang/api/*/favorite/setFavorite)(app接口) | ||
482 | -#### 请求参数 | ||
483 | -| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
484 | -|:-------| -----:|-----:|-----:|-----:|----:| | ||
485 | -|article_id|int|是|1|-|资讯id| | ||
486 | -|uid|int|是|25|-|uid| | ||
487 | - | ||
488 | -注意,通用的头部没有列出。 | ||
489 | -请求示例 | ||
490 | -http://testservice.yoho.cn:28077/guang/api/v1/favorite/setFavorite?app_version=4.1.0.1603120001&article_id=33533&client_secret=19e3b29668a36dbec33cdec015f39944&client_type=iphone&os_version=9.2.1&screen_size=320x568&udid=258e608815a77ba2f9094da936f896ef4fd65721&uid=8039983&v=7 | ||
491 | - | ||
492 | -### 响应 | ||
493 | -code为200即为成功,否则是失败。 | ||
494 | -响应JSON格式如下所示: | ||
495 | -```json | ||
496 | - { | ||
497 | - "code": 200, | ||
498 | - "data": [], | ||
499 | - "message": "收藏成功" | ||
500 | - } | ||
501 | -``` | ||
502 | - | ||
503 | -## 11.资讯取消收藏 ## | ||
504 | - | ||
505 | -资讯取消收藏(/guang/api/*/favorite/cancelFavorite)(APP接口) | ||
506 | -#### 请求参数 | ||
507 | -| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
508 | -|:-------| -----:|-----:|-----:|-----:|----:| | ||
509 | -|article_id|int|是|1|-|资讯id| | ||
510 | -|uid|int|是|25|-|uid| | ||
511 | - | ||
512 | -注意,通用的头部没有列出。 | ||
513 | -请求示例 | ||
514 | -http://testservice.yoho.cn:28077/guang/api/v1/favorite/cancelFavorite?app_version=4.1.0.1603120001&article_id=33533&client_secret=19e3b29668a36dbec33cdec015f39944&client_type=iphone&os_version=9.2.1&screen_size=320x568&udid=258e608815a77ba2f9094da936f896ef4fd65721&uid=8039983&v=7 | ||
515 | - | ||
516 | -### 响应 | ||
517 | -code为200即为成功,否则是失败。 | ||
518 | -响应JSON格式如下所示: | ||
519 | -```json | ||
520 | - { | ||
521 | - "code": 200, | ||
522 | - "data": [], | ||
523 | - "message": "取消收藏成功" | ||
524 | - } | ||
525 | -``` | ||
526 | - | ||
527 | -## 12.资讯内容点赞 ## | ||
528 | - | ||
529 | -资讯内容点赞(/guang/api/*/praise/setPraise)(app接口) | ||
530 | -#### 请求参数 | ||
531 | -| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
532 | -|:-------| -----:|-----:|-----:|-----:|----:| | ||
533 | -|article_id|int|是|1|-|资讯id| | ||
534 | -|udid|String|是|213165413|-|udid| | ||
535 | - | ||
536 | -注意,通用的头部没有列出。 | ||
537 | -请求示例 | ||
538 | -http://testservice.yoho.cn:28077/guang/api/v2/praise/setPraise?app_version=4.1.0.1603120001&article_id=33532&client_secret=a6228ce8b30093cf1d144ef7065f2239&client_type=iphone&os_version=9.2.1&screen_size=320x568&udid=258e608815a77ba2f9094da936f896ef4fd65721&v=7 | ||
539 | - | ||
540 | -### 响应 | ||
541 | -code为200即为成功,否则是失败。 | ||
542 | -响应JSON格式如下所示: | ||
543 | -```json | ||
544 | - { | ||
545 | - "code": 200, | ||
546 | - "data": 1, | ||
547 | - "message": "success" | ||
548 | - } | ||
549 | -``` | ||
550 | - | ||
551 | -## 13.资讯内容取消赞 ## | ||
552 | - | ||
553 | -资讯内容取消赞(/guang/api/*/praise/cancel)(app接口) | ||
554 | -#### 请求参数 | ||
555 | -| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
556 | -|:-------| -----:|-----:|-----:|-----:|----:| | ||
557 | -|article_id|int|是|1|-|资讯id| | ||
558 | -|udid|String|是|213165413|-|udid| | ||
559 | - | ||
560 | -注意,通用的头部没有列出。 | ||
561 | -请求示例 | ||
562 | -http://testservice.yoho.cn:28077/guang/api/v2/praise/cancel?app_version=4.1.0.1603120001&article_id=33532&client_secret=a6228ce8b30093cf1d144ef7065f2239&client_type=iphone&os_version=9.2.1&screen_size=320x568&udid=258e608815a77ba2f9094da936f896ef4fd65721&v=7 | ||
563 | - | ||
564 | -### 响应 | ||
565 | -code为200即为成功,否则是失败。 | ||
566 | -响应JSON格式如下所示: | ||
567 | -```json | ||
568 | - { | ||
569 | - "code": 200, | ||
570 | - "data": 0, | ||
571 | - "message": "success" | ||
572 | - } | ||
573 | -``` | ||
574 | - | ||
575 | -## 14.获取资讯评论列表 ## | ||
576 | - | ||
577 | -获取资讯评论列表(/guang/api/*/comments/getList)(app接口) | ||
578 | -#### 请求参数 | ||
579 | -| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
580 | -|:-------| -----:|-----:|-----:|-----:|----:| | ||
581 | -|article_id|int|否|1|-|资讯id| | ||
582 | -|page|int|是|1|1|页码| | ||
583 | -|limit|int|是|20|10|分页大小| | ||
584 | - | ||
585 | -注意,通用的头部没有列出。 | ||
586 | -请求示例 | ||
587 | -http://testservice.yoho.cn:28077/guang/api/v1/comments/getList?app_version=4.1.0.1603120001&article_id=33534&client_secret=de499548ac34cc95f2c443db34eb0bf6&client_type=iphone&limit=20&os_version=9.2.1&page=1&screen_size=320x568&udid=258e608815a77ba2f9094da936f896ef4fd65721&v=7 | ||
588 | - | ||
589 | -### 响应 | ||
590 | -code为200即为成功,否则是失败。 | ||
591 | -响应JSON格式如下所示: | ||
592 | -```json | ||
593 | - { | ||
594 | - "code": 200, | ||
595 | - "data": { | ||
596 | - "list": [ | ||
597 | - { | ||
598 | - "article_id": 33534, | ||
599 | - "avator": "http://img10.static.yhbimg.com/headimg/2013/11/28/09/01cae078abe5fe320c88cdf4c220212688.gif", | ||
600 | - "content": "哈哈", | ||
601 | - "create_time": "03月16日 15:48", | ||
602 | - "id": 23418, | ||
603 | - "username": "187****6435" | ||
604 | - }, | ||
605 | - { | ||
606 | - "article_id": 33534, | ||
607 | - "avator": "http://head.static.yhbimg.com/yhb-head/2015/11/27/10/02497688cb0268347d08ce3df52af8a23a.jpg?imageView/0/w/100/h/100", | ||
608 | - "content": "dd", | ||
609 | - "create_time": "03月09日 15:04", | ||
610 | - "id": 23416, | ||
611 | - "username": "130****3329" | ||
612 | - } | ||
613 | - ], | ||
614 | - "page": 1, | ||
615 | - "total": 3, | ||
616 | - "total_page": 1 | ||
617 | - }, | ||
618 | - "message": "Comment List!" | ||
619 | - } | ||
620 | -``` | ||
621 | - | ||
622 | -## 15.资讯添加评论 ## | ||
623 | - | ||
624 | -资讯添加评论(/guang/api/*/comments/add)(app接口) | ||
625 | -#### 请求参数 | ||
626 | -| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
627 | -|:-------| -----:|-----:|-----:|-----:|----:| | ||
628 | -|article_id|int|否|1|-|资讯id| | ||
629 | -|uid|int|否|25|-|uid| | ||
630 | -|content|String|否|哈哈|-|评论内容| | ||
631 | - | ||
632 | -注意,通用的头部没有列出。 | ||
633 | -请求示例 | ||
634 | -http://testservice.yoho.cn:28077/guang/api/v1/comments/add?app_version=4.1.0.1603120001&article_id=33534&client_secret=ca1b31872985e198f60ead593b36a96b&client_type=iphone&content=%E5%A7%91%E5%A7%91%E7%AC%AC%E5%9B%9B%E4%B8%AA%E7%AC%A8%E8%9B%8B&os_version=9.2.1&screen_size=320x568&udid=258e608815a77ba2f9094da936f896ef4fd65721&uid=8039983&v=7 | ||
635 | - | ||
636 | -### 响应 | ||
637 | -code为200即为成功,否则是失败。 | ||
638 | -响应JSON格式如下所示: | ||
639 | -```json | ||
640 | - { | ||
641 | - "code": 200, | ||
642 | - "data": {}, | ||
643 | - "message": "发表评论成功" | ||
644 | - } | ||
645 | -``` | ||
646 | - | ||
647 | -## 16.获取我的收藏资讯列表 ## | ||
648 | - | ||
649 | -获取我的收藏资讯列表(/guang/api/*/favorite/getUserFavArticleList)(app接口) | ||
650 | -#### 请求参数 | ||
651 | -| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
652 | -|:-------| -----:|-----:|-----:|-----:|----:| | ||
653 | -|uid|int|是|25|-|uid| | ||
654 | -|udid|String|是|132145631|-|udid| | ||
655 | -|client_type|String|是|iphone|h5|客户端类型| | ||
656 | -|page|int|是|哈哈|1|页码| | ||
657 | -|limit|int|是|哈哈|10|分页大小| | ||
658 | - | ||
659 | -注意,通用的头部没有列出。 | ||
660 | -请求示例 | ||
661 | -http://testservice.yoho.cn:28077/guang/api/v1/favorite/getUserFavArticleList?app_version=4.1.0.1603120001&client_secret=e062cc1edbc89d0da8d91d499173f992&client_type=iphone&limit=10&os_version=9.2.1&page=1&screen_size=320x568&udid=258e608815a77ba2f9094da936f896ef4fd65721&uid=8039983&v=7 | ||
662 | - | ||
663 | -### 响应 | ||
664 | -code为200即为成功,否则是失败。 | ||
665 | -响应JSON格式如下所示: | ||
666 | -```json | ||
667 | - { | ||
668 | - "code": 200, | ||
669 | - "data": { | ||
670 | - "data": [{ | ||
671 | - "author": { | ||
672 | - "author_id": "521285", | ||
673 | - "avatar": "http://img12.static.yhbimg.com/yhb-img02/2015/06/11/20/02b8e3fd4824df3ada9a87912baed658a9.jpg?imageView/0/w/100/h/100", | ||
674 | - "name": "Milk", | ||
675 | - "url": "http://guang.m.yohobuy.com/author/index?id=521285&openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"521285\"},\"share\":\"\",\"id\":\"521285\",\"type\":0,\"islogin\":\"N\",\"url\":\"http://guang.m.yohobuy.com/author/index\"}}" | ||
676 | - }, | ||
677 | - "category_id": 4, | ||
678 | - "category_name": "潮品hh", | ||
679 | - "conver_image_type": 1, | ||
680 | - "id": 33532, | ||
681 | - "intro": "是短发撒的发的发打发斯", | ||
682 | - "isDelete": "N", | ||
683 | - "isFavor": "Y", | ||
684 | - "isPraise": "N", | ||
685 | - "is_recommended": 1, | ||
686 | - "praise_num": 0, | ||
687 | - "publish_time": "02月05日 18:07", | ||
688 | - "src": "http://img12.static.yhbimg.com/yhb-img01/2016/02/05/10/02ba45c8f60456a672e003a875e469d0eb.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
689 | - "title": "哈哈哈是是是是哈哈哈是是是是哈哈哈是是是是哈哈", | ||
690 | - "url": "http://guang.m.yohobuy.com/info/index?id=33532&openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"33532\"},\"share\":\"/guang/api/v1/share/guang?id=33532\",\"id\":\"33532\",\"title\":\"\\u54C8\\u54C8\\u54C8\\u662F\\u662F\\u662F\\u662F\\u54C8\\u54C8\\u54C8\\u662F\\u662F\\u662F\\u662F\\u54C8\\u54C8\\u54C8\\u662F\\u662F\\u662F\\u662F\\u54C8\\u54C8\",\"type\":1,\"islogin\":\"N\",\"url\":\"http://guang.m.yohobuy.com/info/index\"}}", | ||
691 | - "views_num": 5 | ||
692 | - }, | ||
693 | - { | ||
694 | - "author": { | ||
695 | - "author_id": "521285", | ||
696 | - "avatar": "http://img12.static.yhbimg.com/yhb-img02/2015/06/11/20/02b8e3fd4824df3ada9a87912baed658a9.jpg?imageView/0/w/100/h/100", | ||
697 | - "name": "Milk", | ||
698 | - "url": "http://guang.m.yohobuy.com/author/index?id=521285&openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"521285\"},\"share\":\"\",\"id\":\"521285\",\"type\":0,\"islogin\":\"N\",\"url\":\"http://guang.m.yohobuy.com/author/index\"}}" | ||
699 | - }, | ||
700 | - "category_id": 4, | ||
701 | - "category_name": "潮品hh", | ||
702 | - "conver_image_type": 1, | ||
703 | - "id": 33533, | ||
704 | - "intro": "435345345345", | ||
705 | - "isDelete": "N", | ||
706 | - "isFavor": "Y", | ||
707 | - "isPraise": "N", | ||
708 | - "is_recommended": 1, | ||
709 | - "praise_num": 0, | ||
710 | - "publish_time": "02月17日 10:26", | ||
711 | - "src": "http://img12.static.yhbimg.com/yhb-img01/2016/03/03/06/0232f5ed5a28935ee0c5daf8ee87114629.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
712 | - "title": "是哈哈哈是是是是哈哈哈是是是是哈哈哈是是是是哈哈哈是是是是哈哈哈是是是是哈哈哈是是是是哈哈哈是是是是哈哈哈是是是是哈哈哈是是是是", | ||
713 | - "url": "http://guang.m.yohobuy.com/info/index?id=33533&openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"33533\"},\"share\":\"/guang/api/v1/share/guang?id=33533\",\"id\":\"33533\",\"title\":\"\\u662F\\u54C8\\u54C8\\u54C8\\u662F\\u662F\\u662F\\u662F\\u54C8\\u54C8\\u54C8\\u662F\\u662F\\u662F\\u662F\\u54C8\\u54C8\\u54C8\\u662F\\u662F\\u662F\\u662F\\u54C8\\u54C8\\u54C8\\u662F\\u662F\\u662F\\u662F\\u54C8\\u54C8\\u54C8\\u662F\\u662F\\u662F\\u662F\\u54C8\\u54C8\\u54C8\\u662F\\u662F\\u662F\\u662F\\u54C8\\u54C8\\u54C8\\u662F\\u662F\\u662F\\u662F\\u54C8\\u54C8\\u54C8\\u662F\\u662F\\u662F\\u662F\\u54C8\\u54C8\\u54C8\\u662F\\u662F\\u662F\\u662F\",\"type\":1,\"islogin\":\"N\",\"url\":\"http://guang.m.yohobuy.com/info/index\"}}", | ||
714 | - "views_num": 113 | ||
715 | - } | ||
716 | - ], | ||
717 | - "page": 1, | ||
718 | - "total": 4, | ||
719 | - "totalPage": 1 | ||
720 | - }, | ||
721 | - "message": "收藏列表" | ||
722 | - } | ||
723 | -``` | ||
724 | - | ||
725 | -## 17.获取明星原创(潮品/潮牌)列表 ## | ||
726 | - | ||
727 | -获取明星原创(潮品/潮牌)列表(/guang/api/*/plustar/getlist)(app接口) | ||
728 | -#### 请求参数 | ||
729 | -| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
730 | -|:-------| -----:|-----:|-----:|-----:|----:| | ||
731 | -|brand_type|int|否|1|-|类别| | ||
732 | -|gender|int|是|1|0|性别| | ||
733 | -|is_recommend|int|是|1|0|是否推荐| | ||
734 | -|client_type|String|是|iphone|app|客户端类型| | ||
735 | - | ||
736 | -注意,通用的头部没有列出。 | ||
737 | -请求示例 | ||
738 | -http://testservice.yoho.cn:28077/guang/api/v3/plustar/getlist?app_version=4.1.0.1603120001&brand_type=2&client_secret=b6b430ba25f469046bfd8ba59872863d&client_type=iphone&os_version=9.2.1&screen_size=320x568&v=7 | ||
739 | - | ||
740 | -### 响应 | ||
741 | -code为200即为成功,否则是失败。 | ||
742 | -响应JSON格式如下所示: | ||
743 | -```json | ||
744 | - { | ||
745 | - "code": 200, | ||
746 | - "data": { | ||
747 | - "brand_type": 2, | ||
748 | - "brand_type_name": "明星潮品", | ||
749 | - "data": { | ||
750 | - "foot": [], | ||
751 | - "head": [], | ||
752 | - "list": [ | ||
753 | - { | ||
754 | - "data": [ | ||
755 | - { | ||
756 | - "brand_id": "891", | ||
757 | - "brand_name": "金銀帝國", | ||
758 | - "brand_title": "", | ||
759 | - "data": [ | ||
760 | - { | ||
761 | - "src": "http://img12.static.yhbimg.com/yhb-img01/2015/09/15/07/02d0586acab715eff4e31250adba22edec.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
762 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"295\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":295},\"id\":295,\"type\":0,\"islogin\":\"N\"},\"id\":295,\"title\":\"金銀帝國\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
763 | - }, | ||
764 | - { | ||
765 | - "src": "http://img12.static.yhbimg.com/yhb-img01/2015/09/15/07/02a2139e57ebaf3bfc3dfbbfc25ab41998.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
766 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"295\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":295},\"id\":295,\"type\":0,\"islogin\":\"N\"},\"id\":295,\"title\":\"金銀帝國\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
767 | - } | ||
768 | - ], | ||
769 | - "id": "295", | ||
770 | - "sort_id": "32767" | ||
771 | - }, | ||
772 | - { | ||
773 | - "brand_id": "1102", | ||
774 | - "brand_name": "PHANTACi", | ||
775 | - "brand_title": "", | ||
776 | - "data": [ | ||
777 | - { | ||
778 | - "src": "http://img11.static.yhbimg.com/yhb-img01/2016/01/13/05/011992a28d65f3297dd46834c2093a2526.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
779 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"376\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":376},\"id\":376,\"type\":0,\"islogin\":\"N\"},\"id\":376,\"title\":\"PHANTACi\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
780 | - }, | ||
781 | - { | ||
782 | - "src": "http://img11.static.yhbimg.com/yhb-img01/2016/01/13/05/010af7ef4fd573a01841eaa14bf711dd4e.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
783 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"376\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":376},\"id\":376,\"type\":0,\"islogin\":\"N\"},\"id\":376,\"title\":\"PHANTACi\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
784 | - } | ||
785 | - ], | ||
786 | - "id": "376", | ||
787 | - "sort_id": "190" | ||
788 | - }, | ||
789 | - { | ||
790 | - "brand_id": "710", | ||
791 | - "brand_name": "MADNESS", | ||
792 | - "brand_title": "", | ||
793 | - "data": [ | ||
794 | - { | ||
795 | - "src": "http://img11.static.yhbimg.com/yhb-img01/2015/10/14/06/01cd97c920f468d9794b275c973fe294cd.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
796 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"87\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":87},\"id\":87,\"type\":0,\"islogin\":\"N\"},\"id\":87,\"title\":\"MADNESS\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
797 | - }, | ||
798 | - { | ||
799 | - "src": "http://img12.static.yhbimg.com/yhb-img01/2015/10/14/06/025323a4d3792a3744efdd2cdd47db458a.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
800 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"87\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":87},\"id\":87,\"type\":0,\"islogin\":\"N\"},\"id\":87,\"title\":\"MADNESS\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
801 | - } | ||
802 | - ], | ||
803 | - "id": "87", | ||
804 | - "sort_id": "50" | ||
805 | - }, | ||
806 | - { | ||
807 | - "brand_id": "197", | ||
808 | - "brand_name": "STAYREAL", | ||
809 | - "brand_title": "", | ||
810 | - "data": [ | ||
811 | - { | ||
812 | - "src": "http://img12.static.yhbimg.com/yhb-img01/2015/10/14/06/0274f62a3e125b2cc257e0c22fa0c15b70.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
813 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"71\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":71},\"id\":71,\"type\":0,\"islogin\":\"N\"},\"id\":71,\"title\":\"STAYREAL\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
814 | - }, | ||
815 | - { | ||
816 | - "src": "http://img12.static.yhbimg.com/yhb-img01/2015/10/14/06/02ada442188c0f3df6f461970a5c54dc73.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
817 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"71\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":71},\"id\":71,\"type\":0,\"islogin\":\"N\"},\"id\":71,\"title\":\"STAYREAL\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
818 | - } | ||
819 | - ], | ||
820 | - "id": "71", | ||
821 | - "sort_id": "48" | ||
822 | - }, | ||
823 | - { | ||
824 | - "brand_id": "614", | ||
825 | - "brand_name": "YYYOHOOD", | ||
826 | - "brand_title": "", | ||
827 | - "data": [ | ||
828 | - { | ||
829 | - "src": "http://img12.static.yhbimg.com/yhb-img01/2015/10/14/06/028a63b7dd3f38c2e38d02910cedc47c51.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
830 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"67\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":67},\"id\":67,\"type\":0,\"islogin\":\"N\"},\"id\":67,\"title\":\"YYYOHOOD\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
831 | - }, | ||
832 | - { | ||
833 | - "src": "http://img11.static.yhbimg.com/yhb-img01/2015/10/14/06/010f12a2b99bbbe1400583de2e7c708bf6.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
834 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"67\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":67},\"id\":67,\"type\":0,\"islogin\":\"N\"},\"id\":67,\"title\":\"YYYOHOOD\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
835 | - } | ||
836 | - ], | ||
837 | - "id": "67", | ||
838 | - "sort_id": "45" | ||
839 | - }, | ||
840 | - { | ||
841 | - "brand_id": "543", | ||
842 | - "brand_name": "SPLITMAN", | ||
843 | - "brand_title": "", | ||
844 | - "data": [ | ||
845 | - { | ||
846 | - "src": "http://img12.static.yhbimg.com/yhb-img01/2015/10/14/06/026615d88fea397d91990d8f729e4538b6.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
847 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"297\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":297},\"id\":297,\"type\":0,\"islogin\":\"N\"},\"id\":297,\"title\":\"SPLITMAN\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
848 | - }, | ||
849 | - { | ||
850 | - "src": "http://img11.static.yhbimg.com/yhb-img01/2015/10/14/06/014ec9ba7c5a26f14f6f8a8ea695f7bcf3.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
851 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"297\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":297},\"id\":297,\"type\":0,\"islogin\":\"N\"},\"id\":297,\"title\":\"SPLITMAN\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
852 | - } | ||
853 | - ], | ||
854 | - "id": "297", | ||
855 | - "sort_id": "40" | ||
856 | - }, | ||
857 | - { | ||
858 | - "brand_id": "228", | ||
859 | - "brand_name": "SMG", | ||
860 | - "brand_title": "", | ||
861 | - "data": [ | ||
862 | - { | ||
863 | - "src": "http://img12.static.yhbimg.com/yhb-img01/2015/10/14/06/0277302f85fbfa1a56bcfda49985c1427b.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
864 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"47\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":47},\"id\":47,\"type\":0,\"islogin\":\"N\"},\"id\":47,\"title\":\"SMG\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
865 | - }, | ||
866 | - { | ||
867 | - "src": "http://img12.static.yhbimg.com/yhb-img01/2015/10/14/06/02dbba3122cfa23010915d18d6b08ce535.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
868 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"47\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":47},\"id\":47,\"type\":0,\"islogin\":\"N\"},\"id\":47,\"title\":\"SMG\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
869 | - } | ||
870 | - ], | ||
871 | - "id": "47", | ||
872 | - "sort_id": "38" | ||
873 | - }, | ||
874 | - { | ||
875 | - "brand_id": "598", | ||
876 | - "brand_name": "DOPE PLUS K", | ||
877 | - "brand_title": "", | ||
878 | - "data": [ | ||
879 | - { | ||
880 | - "src": "http://img11.static.yhbimg.com/yhb-img01/2015/10/14/06/014399fe987fe4a5b6592124562dd413c3.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
881 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"299\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":299},\"id\":299,\"type\":0,\"islogin\":\"N\"},\"id\":299,\"title\":\"DOPE PLUS K\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
882 | - }, | ||
883 | - { | ||
884 | - "src": "http://img11.static.yhbimg.com/yhb-img01/2015/10/14/06/0170d3b6f426159e759cc51ad38bf7efb0.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
885 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"299\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":299},\"id\":299,\"type\":0,\"islogin\":\"N\"},\"id\":299,\"title\":\"DOPE PLUS K\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
886 | - } | ||
887 | - ], | ||
888 | - "id": "299", | ||
889 | - "sort_id": "35" | ||
890 | - }, | ||
891 | - { | ||
892 | - "brand_id": "108", | ||
893 | - "brand_name": "OVKLAB", | ||
894 | - "brand_title": "", | ||
895 | - "data": [ | ||
896 | - { | ||
897 | - "src": "http://img11.static.yhbimg.com/yhb-img01/2015/10/14/06/013856339bd3b1c3c4eae6772e1d1114be.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
898 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"301\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":301},\"id\":301,\"type\":0,\"islogin\":\"N\"},\"id\":301,\"title\":\"OVKLAB\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
899 | - }, | ||
900 | - { | ||
901 | - "src": "http://img12.static.yhbimg.com/yhb-img01/2015/10/14/06/025946bb7fe2bc532c37a779adda432b47.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
902 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"301\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":301},\"id\":301,\"type\":0,\"islogin\":\"N\"},\"id\":301,\"title\":\"OVKLAB\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
903 | - } | ||
904 | - ], | ||
905 | - "id": "301", | ||
906 | - "sort_id": "28" | ||
907 | - }, | ||
908 | - { | ||
909 | - "brand_id": "131", | ||
910 | - "brand_name": "STAGE", | ||
911 | - "brand_title": "", | ||
912 | - "data": [ | ||
913 | - { | ||
914 | - "src": "http://img11.static.yhbimg.com/yhb-img01/2015/05/29/16/0129fc5e63a668956e6deefc318998dfec.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
915 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"91\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":91},\"id\":91,\"type\":0,\"islogin\":\"N\"},\"id\":91,\"title\":\"STAGE\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
916 | - }, | ||
917 | - { | ||
918 | - "src": "http://img10.static.yhbimg.com/yhb-img01/2015/05/29/16/0116ec644c3eb9a6dc1ef6e8e5c36dbb4e.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
919 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"91\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":91},\"id\":91,\"type\":0,\"islogin\":\"N\"},\"id\":91,\"title\":\"STAGE\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
920 | - } | ||
921 | - ], | ||
922 | - "id": "91", | ||
923 | - "sort_id": "24" | ||
924 | - }, | ||
925 | - { | ||
926 | - "brand_id": "593", | ||
927 | - "brand_name": "Naught", | ||
928 | - "brand_title": "", | ||
929 | - "data": [ | ||
930 | - { | ||
931 | - "src": "http://img12.static.yhbimg.com/yhb-img01/2015/10/14/07/02fcdc67bb394d473b28fdf2f40e478c22.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
932 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"303\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":303},\"id\":303,\"type\":0,\"islogin\":\"N\"},\"id\":303,\"title\":\"Naught\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
933 | - }, | ||
934 | - { | ||
935 | - "src": "http://img12.static.yhbimg.com/yhb-img01/2015/10/14/07/0297ea23c909ecb42c3e8fcb8c5cb2bdcc.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
936 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"303\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":303},\"id\":303,\"type\":0,\"islogin\":\"N\"},\"id\":303,\"title\":\"Naught\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
937 | - } | ||
938 | - ], | ||
939 | - "id": "303", | ||
940 | - "sort_id": "22" | ||
941 | - }, | ||
942 | - { | ||
943 | - "brand_id": "106", | ||
944 | - "brand_name": "outerspace", | ||
945 | - "brand_title": "", | ||
946 | - "data": [ | ||
947 | - { | ||
948 | - "src": "http://img12.static.yhbimg.com/yhb-img01/2015/10/14/07/02c956ede9681afd0f0be6a448eceb114a.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
949 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"73\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":73},\"id\":73,\"type\":0,\"islogin\":\"N\"},\"id\":73,\"title\":\"outerspace\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
950 | - }, | ||
951 | - { | ||
952 | - "src": "http://img12.static.yhbimg.com/yhb-img01/2015/10/14/07/021ee7fb34ba6ce3238ba4b5e37cb6ece4.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
953 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"73\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":73},\"id\":73,\"type\":0,\"islogin\":\"N\"},\"id\":73,\"title\":\"outerspace\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
954 | - } | ||
955 | - ], | ||
956 | - "id": "73", | ||
957 | - "sort_id": "18" | ||
958 | - }, | ||
959 | - { | ||
960 | - "brand_id": "662", | ||
961 | - "brand_name": "CR7 underwear", | ||
962 | - "brand_title": "", | ||
963 | - "data": [ | ||
964 | - { | ||
965 | - "src": "http://img11.static.yhbimg.com/yhb-img01/2015/07/03/14/0179b210fc7d6c57c73acada0eadc598ae.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
966 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"25\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":25},\"id\":25,\"type\":0,\"islogin\":\"N\"},\"id\":25,\"title\":\"CR7 underwear\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
967 | - }, | ||
968 | - { | ||
969 | - "src": "http://img10.static.yhbimg.com/yhb-img01/2015/07/03/14/0124693dc5fccbb4a68436d3b05cf5cc14.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
970 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"25\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":25},\"id\":25,\"type\":0,\"islogin\":\"N\"},\"id\":25,\"title\":\"CR7 underwear\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
971 | - } | ||
972 | - ], | ||
973 | - "id": "25", | ||
974 | - "sort_id": "16" | ||
975 | - }, | ||
976 | - { | ||
977 | - "brand_id": "837", | ||
978 | - "brand_name": "YOHO! × Why So Cool", | ||
979 | - "brand_title": "", | ||
980 | - "data": [ | ||
981 | - { | ||
982 | - "src": "http://img11.static.yhbimg.com/yhb-img01/2015/10/14/07/01f6db611e992e5b3df9620bca705323c5.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
983 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"305\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":305},\"id\":305,\"type\":0,\"islogin\":\"N\"},\"id\":305,\"title\":\"YOHO! × Why So Cool\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
984 | - }, | ||
985 | - { | ||
986 | - "src": "http://img12.static.yhbimg.com/yhb-img01/2015/10/14/07/025afd2a21c34b9d71eb1962a7ca7f2bcf.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
987 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"305\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":305},\"id\":305,\"type\":0,\"islogin\":\"N\"},\"id\":305,\"title\":\"YOHO! × Why So Cool\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
988 | - } | ||
989 | - ], | ||
990 | - "id": "305", | ||
991 | - "sort_id": "15" | ||
992 | - }, | ||
993 | - { | ||
994 | - "brand_id": "735", | ||
995 | - "brand_name": "Burqa Ange 博嘉", | ||
996 | - "brand_title": "", | ||
997 | - "data": [ | ||
998 | - { | ||
999 | - "src": "http://img12.static.yhbimg.com/yhb-img01/2015/10/14/07/020a8435484d3721adcbe881f240c8e3dd.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
1000 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"219\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":219},\"id\":219,\"type\":0,\"islogin\":\"N\"},\"id\":219,\"title\":\"Burqa Ange 博嘉\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
1001 | - }, | ||
1002 | - { | ||
1003 | - "src": "http://img12.static.yhbimg.com/yhb-img01/2015/10/14/07/02f9d14bd96a5f2090f246d5e3dfd7e9be.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
1004 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"219\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":219},\"id\":219,\"type\":0,\"islogin\":\"N\"},\"id\":219,\"title\":\"Burqa Ange 博嘉\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
1005 | - } | ||
1006 | - ], | ||
1007 | - "id": "219", | ||
1008 | - "sort_id": "10" | ||
1009 | - }, | ||
1010 | - { | ||
1011 | - "brand_id": "190", | ||
1012 | - "brand_name": "begins", | ||
1013 | - "brand_title": "", | ||
1014 | - "data": [ | ||
1015 | - { | ||
1016 | - "src": "http://img10.static.yhbimg.com/yhb-img01/2015/07/03/14/01f3608861b57f82dd4658a255d2ce65d6.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
1017 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"17\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":17},\"id\":17,\"type\":0,\"islogin\":\"N\"},\"id\":17,\"title\":\"begins\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
1018 | - }, | ||
1019 | - { | ||
1020 | - "src": "http://img11.static.yhbimg.com/yhb-img01/2015/07/03/14/01d3ebaf0802e8444e0d44b1578f217707.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
1021 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"17\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":17},\"id\":17,\"type\":0,\"islogin\":\"N\"},\"id\":17,\"title\":\"begins\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
1022 | - } | ||
1023 | - ], | ||
1024 | - "id": "17", | ||
1025 | - "sort_id": "9" | ||
1026 | - }, | ||
1027 | - { | ||
1028 | - "brand_id": "95", | ||
1029 | - "brand_name": "NPC", | ||
1030 | - "brand_title": "", | ||
1031 | - "data": [ | ||
1032 | - { | ||
1033 | - "src": "http://img10.static.yhbimg.com/yhb-img01/2015/05/29/17/01817a1a380f5fd6ea6295a0fe476f2f14.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
1034 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"93\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":93},\"id\":93,\"type\":0,\"islogin\":\"N\"},\"id\":93,\"title\":\"NPC\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
1035 | - }, | ||
1036 | - { | ||
1037 | - "src": "http://img10.static.yhbimg.com/yhb-img01/2015/05/29/17/01a4a693e8b678814471dfb65b5f1d2caa.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
1038 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"93\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":93},\"id\":93,\"type\":0,\"islogin\":\"N\"},\"id\":93,\"title\":\"NPC\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
1039 | - } | ||
1040 | - ], | ||
1041 | - "id": "93", | ||
1042 | - "sort_id": "8" | ||
1043 | - }, | ||
1044 | - { | ||
1045 | - "brand_id": "682", | ||
1046 | - "brand_name": "DUEPLAY", | ||
1047 | - "brand_title": "", | ||
1048 | - "data": [ | ||
1049 | - { | ||
1050 | - "src": "http://img10.static.yhbimg.com/yhb-img01/2015/07/03/14/01748b471bb757ca43a31086ae9b52b24b.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
1051 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"33\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":33},\"id\":33,\"type\":0,\"islogin\":\"N\"},\"id\":33,\"title\":\"DUEPLAY\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
1052 | - }, | ||
1053 | - { | ||
1054 | - "src": "http://img11.static.yhbimg.com/yhb-img01/2015/07/03/14/01eecf1b3b03936dd921d0a42c9fcb6011.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
1055 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"33\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":33},\"id\":33,\"type\":0,\"islogin\":\"N\"},\"id\":33,\"title\":\"DUEPLAY\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
1056 | - } | ||
1057 | - ], | ||
1058 | - "id": "33", | ||
1059 | - "sort_id": "4" | ||
1060 | - }, | ||
1061 | - { | ||
1062 | - "brand_id": "7", | ||
1063 | - "brand_name": "adFunture", | ||
1064 | - "brand_title": "", | ||
1065 | - "data": [ | ||
1066 | - { | ||
1067 | - "src": "http://img11.static.yhbimg.com/yhb-img01/2016/01/22/07/013a48278791f1e88a9cecb13727a38d0b.png?imageView/{mode}/w/{width}/h/{height}", | ||
1068 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"426\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":426},\"id\":426,\"type\":0,\"islogin\":\"N\"},\"id\":426,\"title\":\"adFunture\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
1069 | - } | ||
1070 | - ], | ||
1071 | - "id": "426", | ||
1072 | - "sort_id": "0" | ||
1073 | - }, | ||
1074 | - { | ||
1075 | - "brand_id": "1", | ||
1076 | - "brand_name": "004", | ||
1077 | - "brand_title": "", | ||
1078 | - "data": [ | ||
1079 | - { | ||
1080 | - "src": "http://img11.static.yhbimg.com/yhb-img01/2016/01/22/07/013c8df966ea3fb54fc9156a4e69830c13.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
1081 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"425\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":425},\"id\":425,\"type\":0,\"islogin\":\"N\"},\"id\":425,\"title\":\"004\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
1082 | - } | ||
1083 | - ], | ||
1084 | - "id": "425", | ||
1085 | - "sort_id": "0" | ||
1086 | - }, | ||
1087 | - { | ||
1088 | - "brand_id": "266", | ||
1089 | - "brand_name": "Hot Heart", | ||
1090 | - "brand_title": "", | ||
1091 | - "data": [ | ||
1092 | - { | ||
1093 | - "src": "http://img11.static.yhbimg.com/yhb-img01/2015/06/23/10/01139c45917ebaa179915eb8485d5a8ee4.png?imageView/{mode}/w/{width}/h/{height}", | ||
1094 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"225\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":225},\"id\":225,\"type\":0,\"islogin\":\"N\"},\"id\":225,\"title\":\"Hot Heart\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
1095 | - }, | ||
1096 | - { | ||
1097 | - "src": "http://img10.static.yhbimg.com/yhb-img01/2015/06/23/10/01af9f1ed5a7fbb73fb223faa0c61edbb0.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
1098 | - "url": "http://guang.m.yohobuy.com/guang/plustar/brandinfo?openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"225\"},\"share\":\"/guang/api/v1/share/brandinfo\",\"shareparam\":{\"param\":{\"gender\":\"0\",\"id\":225},\"id\":225,\"type\":0,\"islogin\":\"N\"},\"id\":225,\"title\":\"Hot Heart\",\"url\":\"http://guang.m.yohobuy.com/guang/plustar/brandinfo\"}}" | ||
1099 | - } | ||
1100 | - ], | ||
1101 | - "id": "225", | ||
1102 | - "sort_id": "0" | ||
1103 | - } | ||
1104 | - ], | ||
1105 | - "template_intro": "品牌列表", | ||
1106 | - "template_name": "brand_list" | ||
1107 | - } | ||
1108 | - ] | ||
1109 | - } | ||
1110 | - }, | ||
1111 | - "message": "品牌列表" | ||
1112 | - } | ||
1113 | -``` | ||
1114 | - | ||
1115 | -## 18.获取明星原创详情 ## | ||
1116 | - | ||
1117 | -获取明星原创详情(/guang/api/*/share/brandinfo)(app接口) | ||
1118 | -#### 请求参数 | ||
1119 | -| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
1120 | -|:-------| -----:|-----:|-----:|-----:|----:| | ||
1121 | -|id|int|否|1|-|id| | ||
1122 | - | ||
1123 | -注意,通用的头部没有列出。 | ||
1124 | -请求示例 | ||
1125 | -http://testservice.yoho.cn:28077/guang/api/v1/share/brandinfo?app_version=4.1.0.1603120001&client_secret=e04bbf190f8aca4d134d965205384101&client_type=iphone&id=295&islogin=N&os_version=9.2.1¶m=%7B%20%20%20%20gender%20%3D%200%3B%20%20%20%20id%20%3D%20295%3B%7D&screen_size=320x568&type=0&v=7&yh_channel=2 | ||
1126 | - | ||
1127 | -### 响应 | ||
1128 | -code为200即为成功,否则是失败。 | ||
1129 | -响应JSON格式如下所示: | ||
1130 | -```json | ||
1131 | - { | ||
1132 | - "code": 200, | ||
1133 | - "data": { | ||
1134 | - "content": "<span style=\"font-size:14px;\"><strong>品牌故事</strong><br />\n <br />\n金銀帝國由Sunny, Ryan ,Chuck 創立於\n2010年,是一个融合了傳統中國風格與西洋街头風格设计理念,包含滑板,衝浪,藝術,以及音樂等多元化品牌精神的,獨一無二的服飾及飾品品牌。<br />\n\n<br />\n<br />\n金銀帝國是中國傳統元素的傳承也是西方教育的結晶。我們的理想是讓中西融合不再只是单纯的視覺及表象上的結合,而是由內而發的深层次的進化。我們的設計主軸以及品牌理念則是一種新型的生活方式。<br />\n\n<br />\n<br />\n金銀帝國推崇的是一種不墨守成規的生活方式與態度,我們鼓勵懷有夢想的年輕人自由地表達最真實的自我,去追隨自己的夢想,勇于探索未知,奮力捍卫自由,透過運動,穿著,藝術,音樂等來表達与众不同的自我。在展现个性的生活方式的同时,又不偏離東方核心價值的生活態度。</span>", | ||
1135 | - "pic": "http://img10.static.yhbimg.com/brandLogo/2015/12/03/16/0105644fe3dcdc081327a37b005959acbc.jpg?imageMogr2/thumbnail/166x166/extent/166x166/background/d2hpdGU=/position/center/quality/80", | ||
1136 | - "title": "金銀帝國", | ||
1137 | - "url": "http://guang.m.yohobuy.com/plustar/brandinfo?id=295" | ||
1138 | - }, | ||
1139 | - "message": "品牌详情分享" | ||
1140 | - } | ||
1141 | -``` | ||
1142 | - | ||
1143 | -## 19.我的关注## | ||
1144 | - | ||
1145 | -我的关注(/guang/api/*/attention/getlist) | ||
1146 | -#### 请求参数 | ||
1147 | -| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
1148 | -|:-------| -----:|-----:|-----:|-----:|----:| | ||
1149 | -|uid|string|是|13049463|0|用户id| | ||
1150 | -|gender|string|是|||性别| | ||
1151 | -|clientType|string|否|h5|h5|客户端类型| | ||
1152 | -|page|int|否|1|1|页码| | ||
1153 | -|limit|int|否|10|10|分页大小| | ||
1154 | - | ||
1155 | -注意,通用的头部没有列出。 | ||
1156 | -请求示例 | ||
1157 | -http://testservice.yoho.cn:28077/guang/api/v1/attention/getlist?app_version=4.0.2&client_secret=b07737e0e6e1bad7cb584d67568c1c04&client_type=android&gender=&os_version=android5.1.1%3ANX511J&page=1&screen_size=1080x1920&uid=13049463&v=7&yh_channel=1 | ||
1158 | - | ||
1159 | -### 响应 | ||
1160 | -code为200即为成功,否则是失败。 | ||
1161 | -响应JSON格式如下所示: | ||
1162 | -```json | ||
1163 | -{ | ||
1164 | - "code": "200", | ||
1165 | - "message": "关注列表", | ||
1166 | - "data": { | ||
1167 | - "page": 1, | ||
1168 | - "total_page": 10, | ||
1169 | - "total": 100, | ||
1170 | - "list": [ | ||
1171 | - { | ||
1172 | - "brand_id": "813", | ||
1173 | - "brand_name": "Android Homme", | ||
1174 | - "brand_img": "http://img11.static.yhbimg.com/brandLogo/2015/12/07/10/014bc11a29a34a4b5bbb224914f8660ec6.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/90", | ||
1175 | - "date": "1月19日", | ||
1176 | - "url": "http://androidhomme.m.yohobuy.com?openby:yohobuy={\"action\":\"go.brand\",\"params\":{\"brand_id\":\"813\"}}", | ||
1177 | - "product": [ | ||
1178 | - { | ||
1179 | - "product_id": 328773, | ||
1180 | - "product_title": "葡萄牙原产 Android Homme PROPULSION 2.5 中性高帮休闲鞋 红色", | ||
1181 | - "product_img": "http://img11.static.yhbimg.com/goodsimg/2015/12/14/08/015b3ae8f2c2346b9fd1f9cfc6220e8080.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/90", | ||
1182 | - "market_price": 2750, | ||
1183 | - "sale_price": 2750, | ||
1184 | - "url": "http://item.m.yohobuy.com/product/pro_328773_423033/ANDROIDHOMMEAHP1510020PROPULSION25.html?openby:yohobuy={\"action\":\"go.productDetail\",\"params\":{\"product_skn\":51184085}}" | ||
1185 | - }, | ||
1186 | - { | ||
1187 | - "product_id": 328775, | ||
1188 | - "product_title": "葡萄牙原产 Android Homme PROPULSION 2.5 中性高帮休闲鞋 灰色", | ||
1189 | - "product_img": "http://img10.static.yhbimg.com/goodsimg/2015/12/14/08/011e854e46f1edb3e6d09b925bedfbbc42.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/90", | ||
1190 | - "market_price": 2750, | ||
1191 | - "sale_price": 2750, | ||
1192 | - "url": "http://item.m.yohobuy.com/product/pro_328775_423035/ANDROIDHOMMEAHP1510021PROPULSION25.html?openby:yohobuy={\"action\":\"go.productDetail\",\"params\":{\"product_skn\":51184086}}" | ||
1193 | - }, | ||
1194 | - { | ||
1195 | - "product_id": 328777, | ||
1196 | - "product_title": "葡萄牙原产 Android Homme PROPULSION HI 中性高帮休闲鞋 红色", | ||
1197 | - "product_img": "http://img10.static.yhbimg.com/goodsimg/2015/12/14/08/01911a55ae0a88128358f2029683cdf908.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/90", | ||
1198 | - "market_price": 2950, | ||
1199 | - "sale_price": 2950, | ||
1200 | - "url": "http://item.m.yohobuy.com/product/pro_328777_423037/ANDROIDHOMMEAHP1510024PROPULSIONHI.html?openby:yohobuy={\"action\":\"go.productDetail\",\"params\":{\"product_skn\":51184089}}" | ||
1201 | - } | ||
1202 | - ], | ||
1203 | - "brand_type": "recommend", | ||
1204 | - "is_fav": "N" | ||
1205 | - }, | ||
1206 | - { | ||
1207 | - "brand_id": "1017", | ||
1208 | - "brand_name": "Dolce&Gabbana", | ||
1209 | - "brand_img": "http://img11.static.yhbimg.com/brandLogo/2015/12/07/11/01d11071751a3f462c28793f375f4c1ff7.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/90", | ||
1210 | - "date": "1月18日", | ||
1211 | - "url": "http://dolcegabbana.m.yohobuy.com?openby:yohobuy={\"action\":\"go.brand\",\"params\":{\"brand_id\":\"1017\"}}", | ||
1212 | - "product": [ | ||
1213 | - { | ||
1214 | - "product_id": 344769, | ||
1215 | - "product_title": "Dolce&Gabbana 三眼时尚皮革休闲男士腕表(黑色)DW0639", | ||
1216 | - "product_img": "http://img12.static.yhbimg.com/goodsimg/2016/01/14/05/02d8f444b331ad7ce9a6ee5dd627f7ebf1.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/90", | ||
1217 | - "market_price": 1960, | ||
1218 | - "sale_price": 1960, | ||
1219 | - "url": "http://item.m.yohobuy.com/product/pro_344769_441915/DGHeiSeYuanXingSanYanShiShangPiGeXiuXianNanShiWanBiaoDW0639.html?openby:yohobuy={\"action\":\"go.productDetail\",\"params\":{\"product_skn\":51192198}}" | ||
1220 | - }, | ||
1221 | - { | ||
1222 | - "product_id": 344773, | ||
1223 | - "product_title": "Dolce&Gabbana 现代爵士系列品味男士皮带腕表(棕色)DW0365", | ||
1224 | - "product_img": "http://img11.static.yhbimg.com/goodsimg/2016/01/14/03/016b6d471811a08df449327dba46ec7e31.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/90", | ||
1225 | - "market_price": 1960, | ||
1226 | - "sale_price": 1960, | ||
1227 | - "url": "http://item.m.yohobuy.com/product/pro_344773_441919/DGXianDaiJueShiXiLiePinWeiNanShiPiDaiWanBiaoDW0365DW0365.html?openby:yohobuy={\"action\":\"go.productDetail\",\"params\":{\"product_skn\":51192200}}" | ||
1228 | - }, | ||
1229 | - { | ||
1230 | - "product_id": 344775, | ||
1231 | - "product_title": "Dolce&Gabbana 石英经典复古男表(黑色)DW0628", | ||
1232 | - "product_img": "http://img11.static.yhbimg.com/goodsimg/2016/01/14/03/016dd535273cbefe6b1d9aac8f41208972.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/90", | ||
1233 | - "market_price": 2100, | ||
1234 | - "sale_price": 2100, | ||
1235 | - "url": "http://item.m.yohobuy.com/product/pro_344775_441921/DGDGShiYingJingDianFuGuNanBiaoDW0628.html?openby:yohobuy={\"action\":\"go.productDetail\",\"params\":{\"product_skn\":51192201}}" | ||
1236 | - } | ||
1237 | - ], | ||
1238 | - "brand_type": "recommend", | ||
1239 | - "is_fav": "N" | ||
1240 | - } | ||
1241 | - ] | ||
1242 | - }, | ||
1243 | - "md5": "12062cc95c00aa7b8de41c92edbeceb0" | ||
1244 | -} | ||
1245 | -``` | ||
1246 | - | ||
1247 | -## 20.获取文章相应的品牌信息 ## | ||
1248 | - | ||
1249 | -获取文章相应的品牌信息(/guang/service/*/article/getBrand)(h5接口) | ||
1250 | -#### 请求参数 | ||
1251 | -| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
1252 | -|:-------| -----:|-----:|-----:|-----:|----:| | ||
1253 | -|article_id|Integer|否|123|无|文章id| | ||
1254 | -|client_type|string|是|web|h5|客户端类型| | ||
1255 | - | ||
1256 | -注意,通用的头部没有列出。 | ||
1257 | -请求示例 | ||
1258 | - | ||
1259 | -### 响应 | ||
1260 | -code为200即为成功,否则是失败。 | ||
1261 | -响应JSON格式如下所示: | ||
1262 | -```json | ||
1263 | - { | ||
1264 | - "alg": "SALT_MD5", | ||
1265 | - "code": 200, | ||
1266 | - "data": [ | ||
1267 | - { | ||
1268 | - "id": 138, | ||
1269 | - "name": "THETHING", | ||
1270 | - "thumb": "http://img11.static.yhbimg.com/brandLogo/2015/12/09/16/018d25bf4481ed2998bf33b294673a8535.jpg?imageMogr2/thumbnail/100x100/extent/100x100/background/d2hpdGU=/position/center/quality/80", | ||
1271 | - "url": "http://thething.m.yohobuy.com" | ||
1272 | - } | ||
1273 | - ... | ||
1274 | - ], | ||
1275 | - "md5": "531101b7ffc3546bda150ac56f72772b", | ||
1276 | - "message": "文章相关品牌列表" | ||
1277 | -} | ||
1278 | -``` | ||
1279 | - | ||
1280 | -## 21.获取文章内容相关的信息 ## | ||
1281 | - | ||
1282 | -获取文章内容相关的信息(/guang/service/*/article/getOtherArticle)(h5接口) | ||
1283 | -#### 请求参数 | ||
1284 | -| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
1285 | -|:-------| -----:|-----:|-----:|-----:|----:| | ||
1286 | -|article_id|Integer|否|123|无|文章id| | ||
1287 | -|client_type|string|是|web|h5|客户端类型| | ||
1288 | -|tags|string|是|web|h5|客户端类型| | ||
1289 | -|offset|Integer|是|1|0|查询起始位置| | ||
1290 | -|limit|Integer|是|10|15|查询的数据总数| | ||
1291 | - | ||
1292 | -注意,通用的头部没有列出。 | ||
1293 | -请求示例 | ||
1294 | - | ||
1295 | -### 响应 | ||
1296 | -code为200即为成功,否则是失败。 | ||
1297 | -响应JSON格式如下所示: | ||
1298 | -```json | ||
1299 | -{ | ||
1300 | - "alg": "SALT_MD5", | ||
1301 | - "code": 200, | ||
1302 | - "data": [ | ||
1303 | - { | ||
1304 | - "cover_image_type": 0, //图片类别 | ||
1305 | - "id": 33533, //id | ||
1306 | - "publishTime": "1月1日 08:00", //发布时间 | ||
1307 | - "thumb": "http://img12.static.yhbimg.com/yhb-img01/2016/03/03/06/0232f5ed5a28935ee0c5daf8ee87114629.jpg?imageView/{mode}/w/{width}/h/{height}", //url | ||
1308 | - "title": "是哈哈哈是是是是哈哈哈是是是是哈哈哈是是是是哈哈哈是是是是哈哈哈是是是是哈哈哈是是是是哈哈哈是是是是哈哈哈是是是是哈哈哈是是是是", //标题 | ||
1309 | - "url": "http://guang.m.yohobuy.com/info/index?id=33533&openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"id\":\"33533\"},\"update_flag\":\"138c648fe64b55adb762d74e0c426afb\",\"shareparam\":{\"id\":33533},\"share\":\"/guang/api/v1/share/guang\",\"id\":33533,\"type\":1,\"url\":\"http://guang.m.yohobuy.com/info/index\",\"islogin\":\"N\"}}" | ||
1310 | - } | ||
1311 | - ... | ||
1312 | - ], | ||
1313 | - "md5": "a99fd971831bc7138e03bbef07775580", | ||
1314 | - "message": "文章相关内容列表" | ||
1315 | -} | ||
1316 | -``` | ||
1317 | - | ||
1318 | -## 22、H5查看用户是否收藏某品牌## | ||
1319 | - | ||
1320 | -查看用户是否收藏某品牌(/shops/service/*/favorite/getUidBrandFav)(H5接口) | ||
1321 | - | ||
1322 | -#### 请求参数 | ||
1323 | -| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
1324 | -|:-------| -----:|-----:|-----:|-----:|----:| | ||
1325 | -|uid|int|否|380463|无|用户id| | ||
1326 | -|brandId|int|否|44|无|此处为brand_id| | ||
1327 | - | ||
1328 | -注意,通用的头部没有列出。 | ||
1329 | -请求示例 | ||
1330 | -http://192.168.102.205:8080/gateway/shops/service/v1/favorite/getUidBrandFav?uid=3385902&brandId=44 | ||
1331 | - | ||
1332 | -### 响应 | ||
1333 | -code为200表示已收藏。 | ||
1334 | -响应JSON格式如下所示: | ||
1335 | -```json | ||
1336 | -{ | ||
1337 | - "alg": "SALT_MD5", | ||
1338 | - "code": 200, | ||
1339 | - "data": [], | ||
1340 | - "md5": "6d729d4b35f10fc73531210bd7ecff91", | ||
1341 | - "message": "favorite" | ||
1342 | -} | ||
1343 | -或者 | ||
1344 | -{ | ||
1345 | - "alg": "SALT_MD5", | ||
1346 | - "code": 404, | ||
1347 | - "data": [], | ||
1348 | - "md5": "6d729d4b35f10fc73531210bd7ecff91", | ||
1349 | - "message": "not favorite" | ||
1350 | -} | ||
1351 | -``` | ||
1352 | - | ||
1353 | -## 23、收藏商品## | ||
1354 | - | ||
1355 | -收藏商品(/shops/service/*/favorite/addUidProductFav)(H5接口) | ||
1356 | -#### 请求参数 | ||
1357 | -| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
1358 | -|:-------| -----:|-----:|-----:|-----:|----:| | ||
1359 | -|uid|int|否|3483160|无|用户id| | ||
1360 | -|productSkn|int|否|50002409|无|productSkn| | ||
1361 | - | ||
1362 | -注意,通用的头部没有列出。 | ||
1363 | -请求示例 | ||
1364 | -http://192.168.102.205:8080/gateway/shops/service/v1/favorite/addUidProductFav?uid=3483160&productSkn=22657 | ||
1365 | - | ||
1366 | -http://192.168.102.205:8080/gateway/shops/service/v1/favorite/addUidProductFav?uid=3483160&productSkn=50002409 | ||
1367 | - | ||
1368 | -### 响应 | ||
1369 | -code为200即为成功,否则是失败。 | ||
1370 | -响应JSON格式如下所示: | ||
1371 | -```json | ||
1372 | -{ | ||
1373 | - "alg": "SALT_MD5", | ||
1374 | - "code": 404, | ||
1375 | - "data": [], | ||
1376 | - "md5": "6d729d4b35f10fc73531210bd7ecff91", | ||
1377 | - "message": "product is not exist" | ||
1378 | -} | ||
1379 | -或者 | ||
1380 | -{ | ||
1381 | - "alg": "SALT_MD5", | ||
1382 | - "code": 200, | ||
1383 | - "data": 1973256, | ||
1384 | - "md5": "83998acb4bf4dc541dcb7181aefb6f32", | ||
1385 | - "message": "success" | ||
1386 | -} | ||
1387 | -或者 | ||
1388 | -{ | ||
1389 | - "alg": "SALT_MD5", | ||
1390 | - "code": 400, | ||
1391 | - "data": [], | ||
1392 | - "md5": "6d729d4b35f10fc73531210bd7ecff91", | ||
1393 | - "message": "Already the Favorite" | ||
1394 | -} | ||
1395 | - | ||
1396 | -``` | ||
1397 | - | ||
1398 | -## 24、取消商品收藏## | ||
1399 | - | ||
1400 | -取消商品收藏(/shops/service/*/favorite/delUidProductFav)(H5接口) | ||
1401 | -#### 请求参数 | ||
1402 | -| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
1403 | -|:-------| -----:|-----:|-----:|-----:|----:| | ||
1404 | -|uid|int|否|3483160|无|用户id| | ||
1405 | -|productSkn|int|否|50002409|无|productSkn| | ||
1406 | - | ||
1407 | -注意,通用的头部没有列出。 | ||
1408 | -请求示例 | ||
1409 | -http://192.168.102.205:8080/gateway/shops/service/v1/favorite/delUidProductFav?uid=3483160&productSkn=50002409 | ||
1410 | - | ||
1411 | -### 响应 | ||
1412 | -code为200即为成功,否则是失败。 | ||
1413 | -{ | ||
1414 | - "alg": "SALT_MD5", | ||
1415 | - "code": 200, | ||
1416 | - "data": [], | ||
1417 | - "md5": "6d729d4b35f10fc73531210bd7ecff91", | ||
1418 | - "message": "success" | ||
1419 | -} | ||
1420 | -``` | ||
1421 | - | ||
1422 | -## 25、获取咨询内容## | ||
1423 | - | ||
1424 | -获取咨询内容(guang/service/v2/article/getArticle) | ||
1425 | -#### 请求参数 | ||
1426 | -| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
1427 | -|:-------| -----:|-----:|-----:|-----:|----:| | ||
1428 | -|article_id|Integer|否|123|无|文章id| | ||
1429 | -|client_type|string|是|web|h5|客户端类型| | ||
1430 | - | ||
1431 | -注意,通用的头部没有列出。 | ||
1432 | -请求示例http://localhost:8080/gateway/guang/service/v2/article/getArticle?article_id=33&client_type=h5 | ||
1433 | - | ||
1434 | -### 响应 | ||
1435 | -code为200即为成功,否则是失败。 | ||
1436 | -响应JSON格式如下所示: | ||
1437 | -```json | ||
1438 | -{ | ||
1439 | - "code": 200, | ||
1440 | - "data": { | ||
1441 | - "article_gender": "1", | ||
1442 | - "article_summary": "简单不等于随意,用心搭配才能塑造帅气外形哦。", | ||
1443 | - "article_title": "极简主义可不是随便穿衣", | ||
1444 | - "article_type": 1, | ||
1445 | - "author_id": 380463, | ||
1446 | - "brand": "", | ||
1447 | - "browse": 27643, | ||
1448 | - "cover_image": "http://img10.static.yhbimg.com/yhb-img01/2015/05/21/11/01bc9a8a669fc11a3fe4f76f7212f5c8d1.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
1449 | - "cover_image_type": 1, | ||
1450 | - "create_time": 1432179360, | ||
1451 | - "id": 33, | ||
1452 | - "is_recommend": 0, | ||
1453 | - "max_sort_id": 2, | ||
1454 | - "min_sort_id": 0, | ||
1455 | - "pageViews": 27644, | ||
1456 | - "praise": 30, | ||
1457 | - "publishTime": "5月21日 14:2", | ||
1458 | - "publish_state": 1, | ||
1459 | - "publish_time": 1432188148, | ||
1460 | - "status": 1, | ||
1461 | - "tag": "街头,户外,欧美", | ||
1462 | - "tags": [ | ||
1463 | - { | ||
1464 | - "name": "街头", | ||
1465 | - "url": ".m.yohobuy.com/tags/index?query=街头" | ||
1466 | - }, | ||
1467 | - { | ||
1468 | - "name": "户外", | ||
1469 | - "url": ".m.yohobuy.com/tags/index?query=户外" | ||
1470 | - }, | ||
1471 | - { | ||
1472 | - "name": "欧美", | ||
1473 | - "url": ".m.yohobuy.com/tags/index?query=欧美" | ||
1474 | - } | ||
1475 | - ], | ||
1476 | - "update_time": 1458719631, | ||
1477 | - "url": "http://guang.m.yohobuy.com/info/index?id=33" | ||
1478 | - }, | ||
1479 | - "message": "咨询内容" | ||
1480 | -} | ||
1481 | -``` | ||
1482 | - | ||
1483 | - | ||
1484 | -## 25、获取咨询内容## | ||
1485 | - | ||
1486 | -获取咨询内容(guang/service/v2/article/getArticle) | ||
1487 | -#### 请求参数 | ||
1488 | -| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
1489 | -|:-------| -----:|-----:|-----:|-----:|----:| | ||
1490 | -|article_id|Integer|否|123|无|文章id| | ||
1491 | -|client_type|string|是|web|h5|客户端类型| | ||
1492 | - | ||
1493 | - | ||
1494 | -注意,通用的头部没有列出。 | ||
1495 | -请求示例http://localhost:8080/gateway/guang/service/v2/article/getArticle?article_id=33&client_type=h5 | ||
1496 | - | ||
1497 | -### 响应 | ||
1498 | -code为200即为成功,否则是失败。 | ||
1499 | -响应JSON格式如下所示: | ||
1500 | -```json | ||
1501 | -{ | ||
1502 | - "code": 200, | ||
1503 | - "data": { | ||
1504 | - "article_gender": "1", | ||
1505 | - "article_summary": "简单不等于随意,用心搭配才能塑造帅气外形哦。", | ||
1506 | - "article_title": "极简主义可不是随便穿衣", | ||
1507 | - "article_type": 1, | ||
1508 | - "author_id": 380463, | ||
1509 | - "brand": "", | ||
1510 | - "browse": 27643, | ||
1511 | - "cover_image": "http://img10.static.yhbimg.com/yhb-img01/2015/05/21/11/01bc9a8a669fc11a3fe4f76f7212f5c8d1.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
1512 | - "cover_image_type": 1, | ||
1513 | - "create_time": 1432179360, | ||
1514 | - "id": 33, | ||
1515 | - "is_recommend": 0, | ||
1516 | - "max_sort_id": 2, | ||
1517 | - "min_sort_id": 0, | ||
1518 | - "pageViews": 27644, | ||
1519 | - "praise": 30, | ||
1520 | - "publishTime": "5月21日 14:2", | ||
1521 | - "publish_state": 1, | ||
1522 | - "publish_time": 1432188148, | ||
1523 | - "status": 1, | ||
1524 | - "tag": "街头,户外,欧美", | ||
1525 | - "tags": [ | ||
1526 | - { | ||
1527 | - "name": "街头", | ||
1528 | - "url": ".m.yohobuy.com/tags/index?query=街头" | ||
1529 | - }, | ||
1530 | - { | ||
1531 | - "name": "户外", | ||
1532 | - "url": ".m.yohobuy.com/tags/index?query=户外" | ||
1533 | - }, | ||
1534 | - { | ||
1535 | - "name": "欧美", | ||
1536 | - "url": ".m.yohobuy.com/tags/index?query=欧美" | ||
1537 | - } | ||
1538 | - ], | ||
1539 | - "update_time": 1458719631, | ||
1540 | - "url": "http://guang.m.yohobuy.com/info/index?id=33" | ||
1541 | - }, | ||
1542 | - "message": "咨询内容" | ||
1543 | -} | ||
1544 | -``` | ||
1545 | - | ||
1546 | - | ||
1547 | -## 26、获取明星原创品牌详情## | ||
1548 | - | ||
1549 | -获取明星原创品牌详情(/guang/api/v1/plustar/getbrandinfo) | ||
1550 | -#### 请求参数 | ||
1551 | -| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
1552 | -|:-------| -----:|-----:|-----:|-----:|----:| | ||
1553 | -|uid|Integer|否|123|无|用户id| | ||
1554 | - | ||
1555 | - | ||
1556 | -注意,通用的头部没有列出。 | ||
1557 | -请求示例http://192.168.102.205:8080/gateway/guang/api/v1/plustar/getbrandinfo?uid=123 | ||
1558 | - | ||
1559 | -### 响应 | ||
1560 | -code为200即为成功,否则是失败。 | ||
1561 | -响应JSON格式如下所示: | ||
1562 | -```json | ||
1563 | -{ | ||
1564 | - "alg": "SALT_MD5", | ||
1565 | - "code": 200, | ||
1566 | - "data": { | ||
1567 | - "brand_domain": "staple", | ||
1568 | - "brand_ico": "http://img13.static.yhbimg.com/brandLogo/2014/11/27/09/02b403bdcbfb965bdc632fea5c29816746.png?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | ||
1569 | - "brand_id": 648, | ||
1570 | - "brand_intro": "<p><span style=\"font-size:18px;\">由Jeff\nStaple设计的鸽子无疑是潮流界中最为重要也最为吸金的动物之一。Jeff Staple是Jeff Ng的别名。Jeff\nStaple是设计界的天才,是绝对的潮流达人。Jeff Staple是斯泰伯设计 (STAPLE Design)、斯泰伯服饰\n(STAPLE Clothing)、瑞德空间 (Reed Space)\n的创始人,身兼图形设计、服装设计、艺术家、DJ、作家和创业者多重身份。</span></p>\n<p style=\"text-align: center;\"><img border=\"0\" src=\n\"http://img02.static.yohobuy.com/brandContentImg/2014/12/12/13/024e1e61fbea2ec112dab0954adae2e883.jpg\" /></p>\n<p> </p>\n<p><span style=\"font-size: 20px;\">1997年,Jeff Staple走进纽约The Triple\nFive Soul精品店的同时收到了他的第一个订单——12件silkscreened T恤,从此当Jeff\nStaple还是Parsons艺术学校学生的时候开始了他的限量手工T恤商品的辉煌。</span></p>\n<p><span style=\"font-size: 20px;\">在塑造这个新兴品牌的过程中,Nike于2005年聘用Jeff\nStaple担当特别限量鞋款的创意总监。STAPLE鸽子的商标被构思和植入到150双限量版DUNK PRO\nSB的设计(就算在当今也是让人垂涎欲滴)导致其主导了运动鞋的文化。</span></p>\n<p><span style=\"font-size: 20px;\">Jeff\nStaple和他的团队承担了很多著名品牌的设计工作:Nike、Burton\nSnowboards、LVMH集团、Timberland、Uniqlo、Sony\nPlaystation、Puma还有更多。1997年创建的斯泰伯设计STAPLE\nDesign,其作品可以说全球各种可以想得到的媒体形式都有。STAPLE\nClothing从男士T恤开始,如今已经扩展为全方位的服装系列。</span><br />\n </p>\n<p style=\"text-align: center;\"><span style=\n\"display: none;\"> </span><img border=\"0\" src=\n\"http://img02.static.yohobuy.com/brandContentImg/2014/12/12/13/0233d236c928bbba5331ff4ec7cd02b66f.png\" /><span style=\"display: none;\"> </span></p>\n<p><span style=\n\"font-size: 20px;\">STAPLE鸽子现在是一个世界著名的标志,代表了坚韧不拔的纽约人精神。它不仅是纽约潮流的标志还对全世界潮流界顶级零售商施加影响。STAPLE通过吸收不同的潮流元素如音乐,艺术,时尚来更完美的诠释街头文化和生活方式。</span></p>\n<p style=\"text-align: center;\"><img border=\"0\" src=\n\"http://img01.static.yohobuy.com/brandContentImg/2014/12/12/13/0179beeea32a7227b84ccbedcc02db4f99.gif\" /></p>\n<p><span style=\n\"font-size: 20px;\">相信喜欢sneaker的朋友,一定不会对这五双鞋字陌生,看到这张图时New Balance x\nSTAPLE Design\nM575白色款一时间脑海里浮现许多画面,如当时全球发售的场景、第一次见到这款鞋时的冲动!</span></p>\n<p style=\"text-align: center;\"><img border=\"0\" src=\n\"http://img02.static.yohobuy.com/brandContentImg/2014/12/12/13/0236b8d3ca657a5c318452dd036250093f.jpg\" /></p>\n<p style=\"text-align: center;\"><img border=\"0\" src=\n\"http://img02.static.yohobuy.com/brandContentImg/2014/12/12/13/0235c3b8caac10f6bc08962474e6034623.jpg\" /></p>\n<p><span style=\"font-size:20px;\">同时鸽子王Jeff\nStaple在之前也与知名玩具厂商Kidrobot推出Jeff\nStaple鸽子公仔,就连鸽子便便的设计都想到了,此款具有有话题性的公仔在全球限量800只。</span></p>\n<p style=\"text-align: center;\"><img border=\"0\" src=\n\"http://img02.static.yohobuy.com/brandContentImg/2014/12/12/14/024bb954538398a4e660ba9b04c2d71093.jpg\" /></p>\n<p><span style=\"font-size:20px;\">Jeff\nStaple将主流的廓形剪裁融入了整体造型中,获得众多潮人追捧,其中不乏大家所熟悉的林书豪、Jay-Z、BOB、Grizz\nChapman、Curren$y、Dizzy Wright、Bun B等等.</span><br />\n<span style=\"font-size: 20px;\">在闲暇时光和Jeremy\nLin一样,套上一件STAPLE卫衣少了几分球场上的生猛,却多了一些潮人的大牌范。简单而又引人注目的搭配在周末出行时,绝对是再好不过的选择。</span></p>\n<p style=\"text-align: center;\"><img border=\"0\" src=\n\"http://img02.static.yohobuy.com/brandContentImg/2014/12/12/14/02c7c4d5a3a34a4139daab607aeac62686.jpg\" /></p>\n<p><span style=\n\"font-size: 20px;\">说唱界中的里程碑,无论从歌声到穿衣打扮都是年轻人追捧和模仿的对象,每一个喜欢Rap的朋友都不可能忘却的Jay-Z,一身全黑的搭配酷劲十足,搭配STAPLE的外套更是犹如点睛之笔。</span></p>\n<p style=\"text-align: center;\"><img border=\"0\" src=\n\"http://img02.static.yohobuy.com/brandContentImg/2014/12/12/14/029d34b00646ad2addec9c3cdf3602188d.jpeg\" /></p>\n<p><span style=\n\"font-size:20px;\">BOB在演唱会时所穿着的这一身想必已经不用小编多解释什么了,简单的纯白色T恤加上STAPLE经典配色的裤装,可谓是赚足粉丝的目光,搭配舞台灯光把整体的效果发挥的玲离尽致。</span></p>\n<p style=\"text-align: center;\"><img border=\"0\" src=\n\"http://img02.static.yohobuy.com/brandContentImg/2014/12/12/14/02de6c8aa7603f9c25c137ef0c31f27137.png\" /></p>\n<p><span style=\n\"font-size:20px;\">现在“一鸽”STAPLE即将入驻YOHO!有货,引起又一阵潮流风暴,如果你也喜爱Jeff\nStaple的超凡设计,喜欢STAPLE鸽子,那么千万不要错过STAPLE\n12月15日在YOHO!有货的上线时间,同时请持续关注YOHO!有货微信,惊喜等着你~!</span></p>\n<p style=\"text-align: center;\"><img border=\"0\" src=\n\"http://img02.static.yohobuy.com/brandContentImg/2014/12/12/14/021d58f398ef5a55b8877eec4c6776d0af.jpg\" /></p>\n<p style=\"text-align: center;\"><img border=\"0\" src=\n\"http://img01.static.yohobuy.com/brandContentImg/2014/12/12/14/0199aec06fea3aa433381c8457455a909e.jpg\" /></p>\n", | ||
1571 | - "brand_name": "STAPLE", | ||
1572 | - "brand_type": 0, | ||
1573 | - "brand_type_name": "潮流经典", | ||
1574 | - "cover_img": "http://img12.static.yhbimg.com/yhb-img01/2015/10/15/09/024f83d4233fef78b395055d9543d14cb8.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
1575 | - "id": 123, | ||
1576 | - "is_different": 1, | ||
1577 | - "is_recommend": 2, | ||
1578 | - "status": 1 | ||
1579 | - }, | ||
1580 | - "md5": "df6f906456537c91141a24293794d178", | ||
1581 | - "message": "品牌详情" | ||
1582 | -} | ||
1583 | -``` | ||
1584 | - | ||
1585 | -## 27、获取逛的某篇文章## | ||
1586 | - | ||
1587 | -获取逛的某篇文章(/guang/api/v2/article/getArticle) | ||
1588 | -#### 请求参数 | ||
1589 | -| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
1590 | -|:-------| -----:|-----:|-----:|-----:|----:| | ||
1591 | -|id|Integer|否|13|无|文章id| | ||
1592 | -|client_Type|String|是|h5|h5|客户端类型| | ||
1593 | - | ||
1594 | -注意,通用的头部没有列出。 | ||
1595 | -请求示例http://127.0.0.1:8080/gateway/guang/api/v2/article/getArticle?id=13&client_Type=web | ||
1596 | - | ||
1597 | -### 响应 | ||
1598 | -code为200即为成功,否则是失败。 | ||
1599 | -响应JSON格式如下所示: | ||
1600 | -```json | ||
1601 | -{ | ||
1602 | - "code": 200, | ||
1603 | - "data": { | ||
1604 | - "browse": 8948, | ||
1605 | - "publishTime": "5月21日 13:0", | ||
1606 | - "tagsInfo": [ | ||
1607 | - { | ||
1608 | - "name": "学院", | ||
1609 | - "url": "http://guang.yohobuy.com/tags/index?query=学院" | ||
1610 | - }, | ||
1611 | - { | ||
1612 | - "name": "日系", | ||
1613 | - "url": "http://guang.yohobuy.com/tags/index?query=日系" | ||
1614 | - }, | ||
1615 | - { | ||
1616 | - "name": "中性", | ||
1617 | - "url": "http://guang.yohobuy.com/tags/index?query=中性" | ||
1618 | - } | ||
1619 | - ] | ||
1620 | - }, | ||
1621 | - "message": "操作成功" | ||
1622 | -} | ||
1623 | -``` | ||
1624 | - | ||
1625 | - | ||
1626 | -## 28、判断用户是否收藏逛的文章## | ||
1627 | - | ||
1628 | -判断用户是否收藏逛的文章(guang/service/v2/article/checkArticleFav) | ||
1629 | -#### 请求参数 | ||
1630 | -| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
1631 | -|:-------| -----:|-----:|-----:|-----:|----:| | ||
1632 | -|article_id|String|否|33|无|文章id| | ||
1633 | -|uid|String|否|5343299|否|用户id| | ||
1634 | - | ||
1635 | -注意,通用的头部没有列出。 | ||
1636 | -请求示例http://127.0.0.1:8080/gateway/guang/service/v2/article/checkArticleFav?article_id=33&uid=5343299 | ||
1637 | - | ||
1638 | -### 响应 | ||
1639 | -code为200即为成功,否则是失败。 | ||
1640 | -响应JSON格式如下所示: | ||
1641 | -```json | ||
1642 | -{ | ||
1643 | - "code": 200, | ||
1644 | - "data": false, | ||
1645 | - "message": "操作成功" | ||
1646 | -} | ||
1647 | -``` | ||
1648 | - | ||
1649 | -## 29、获取48小时内浏览最多的文章 ## | ||
1650 | - | ||
1651 | -获取48小时内浏览最多的文章(/guang/api/*/article/getArticleByViewsNum) | ||
1652 | -#### 请求参数 | ||
1653 | -| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
1654 | -|:-------| -----:|-----:|-----:|-----:|----:| | ||
1655 | -|page|int|否|1||第几页| | ||
1656 | -|limit|int|否|10||一页多少条| | ||
1657 | -|gender|String|否|1,3||性别| | ||
1658 | -|client_type|String|否|iphone||客户端类型| | ||
1659 | - | ||
1660 | -注意,通用的头部没有列出。 | ||
1661 | -请求示例 | ||
1662 | -http://192.168.102.205:8080/geteway/guang/api/*/article/getArticleByViewsNum?page=1&limit=1&gender=1,3&client_type=h5 | ||
1663 | - | ||
1664 | -### 响应 | ||
1665 | -code为200即为成功,否则是失败。 | ||
1666 | -响应参数,data部分 | ||
1667 | -响应JSON格式如下所示: | ||
1668 | -```json | ||
1669 | -{ | ||
1670 | - "alg": "SALT_MD5", | ||
1671 | - "code": 200, | ||
1672 | - "data": [ | ||
1673 | - { | ||
1674 | - "ads_img_size": "", | ||
1675 | - "article_type": 1, | ||
1676 | - "author_id": 8168229, | ||
1677 | - "category_id": 3, | ||
1678 | - "conver_image_type": 1, | ||
1679 | - "id": 33452, | ||
1680 | - "intro": "终于迎来了“潮人”的新栏目,潮人并非只是明星idol,潮人就在我们生活中,你的身边。最帅最潮的人都在这,不是明星也是弄潮儿,够潮就来“show”!", | ||
1681 | - "is_recommended": 0, | ||
1682 | - "praiseStatus": true, | ||
1683 | - "praise_num": 0, | ||
1684 | - "publish_time": "01月18日 03:58", | ||
1685 | - "share_url": { | ||
1686 | - "url": "http://guang.m.yohobuy.com/info/index?id=33452&openby:yohobuy={\"action\":\"go.share\",\"params\":{\"pic\":\"http://img11.static.yhbimg.com/yhb-img01/2016/01/19/08/01e853f0ef05dcf84dc5a316c590f4ea56.jpg?imageView/2/w/640/h/640\",\"title\":\"最帅最潮的人都在这,不是明星也是弄潮儿,够潮就来“show”!\",\"content\":\"潮流资讯,新鲜贩售,YOHO!有货【逛】不停\",\"url\":\"http://guang.m.yohobuy.com/info/index?id=33452\"}}" | ||
1687 | - }, | ||
1688 | - "src": "http://img11.static.yhbimg.com/yhb-img01/2016/01/19/08/01e853f0ef05dcf84dc5a316c590f4ea56.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
1689 | - "title": "最帅最潮的人都在这,不是明星也是弄潮儿,够潮就来“show”!", | ||
1690 | - "url": "http://guang.m.yohobuy.com/info/index?id=33452", | ||
1691 | - "views_num": 150 | ||
1692 | - } | ||
1693 | - ], | ||
1694 | - "md5": "6806c9559460f374d3cddd6a9c1d6636", | ||
1695 | - "message": "获取48小时内浏览最多的文章成功!" | ||
1696 | -} | ||
1697 | -``` | ||
1698 | - | ||
1699 | -## 30、获取逛的热门标签 ## | ||
1700 | - | ||
1701 | -获取逛的热门标签(/guang/api/*/article/getTagTop) | ||
1702 | -#### 请求参数 | ||
1703 | -| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
1704 | -|:-------| -----:|-----:|-----:|-----:|----:| | ||
1705 | -|page|int|否|1||第几页| | ||
1706 | -|limit|int|否|10||一页多少条| | ||
1707 | - | ||
1708 | -注意,通用的头部没有列出。 | ||
1709 | -请求示例 | ||
1710 | -http://192.168.102.205:8080/geteway/guang/api/*/article/getTagTop?page=1&limit=2 | ||
1711 | - | ||
1712 | -### 响应 | ||
1713 | -code为200即为成功,否则是失败。 | ||
1714 | -响应参数,data部分 | ||
1715 | -响应JSON格式如下所示: | ||
1716 | -```json | ||
1717 | -{ | ||
1718 | - "alg": "SALT_MD5", | ||
1719 | - "code": 200, | ||
1720 | - "data": [ | ||
1721 | - { | ||
1722 | - "create_time": 1436959947, | ||
1723 | - "id": 9, | ||
1724 | - "tag_name": "韩系", | ||
1725 | - "views": 96595 | ||
1726 | - }, | ||
1727 | - { | ||
1728 | - "create_time": 1436959819, | ||
1729 | - "id": 3, | ||
1730 | - "tag_name": "街头", | ||
1731 | - "views": 94789 | ||
1732 | - } | ||
1733 | - ], | ||
1734 | - "md5": "af3bb4eb83f81d0f2fc00d036f4c85ae", | ||
1735 | - "message": "获取逛的热门标签成功!" | ||
1736 | -} | ||
1737 | -``` | 1 | +## 1、可口可乐送优惠券活动## |
2 | + | ||
3 | + | ||
4 | +#### 需求概述: | ||
5 | +可口可乐微信公众号中用户输入可口可乐兑奖码,提示获得三等奖(三等奖- Yoho!Buy有货优惠券399-30 ),用户点击领取,跳转到有货H5活动页面。实现有货账号和优惠券的绑定。 | ||
6 | +1、H5流程: | ||
7 | +#### 1. 可口可乐微信公众号三等奖页面点击直接跳转有货 H5(图1) | ||
8 | +#### 2. 输入手机号码,优惠券绑定到有货账号(手机号作为有货账号) | ||
9 | +#### 3. 注册或者下载(图3) | ||
10 | +#### 4. 分享,打开分享的链接,可以下载APP客户端(图4) | ||
11 | +2、数据要求: | ||
12 | +加入我们的第三方数据监测以及大数据监测 | ||
13 | +统计数量: | ||
14 | +新注册人数领取人数&优惠券使用数量 | ||
15 | +已注册未下单领取人数&优惠券使用数量 | ||
16 | +中奖但未领取优惠券人数。 | ||
17 | +下载量 | ||
18 | +3、活动时间&领取优惠券: | ||
19 | +2016年4月7日-2016年7月7日,可以在后台配置多个优惠券。1个优惠券被领完领下一个优惠 | ||
20 | +券。 | ||
21 | + | ||
22 | + |
-
Please register or login to post a comment