|
|
##热搜品牌列表接口##
|
|
|
|
|
|
(method=web.brand.byDomain)
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|----:|
|
|
|
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
请求示例
|
|
|
http://devapi.yoho.cn:58078/?debug=XYZ&app_version=3.8.2&client_type=android&os_version=yohobuy%3Ah5&screen_size=720x1280&v=7&method=app.search.hotBrands
|
|
|
|
|
|
### 响应
|
|
|
code为200即为成功,否则是失败。
|
|
|
响应JSON格式如下所示:
|
|
|
```json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"list": [
|
|
|
{
|
|
|
"brandId": 1616, --品牌id
|
|
|
"brandName": "12", --品牌名
|
|
|
"createTime": 1462954166,
|
|
|
"creatorId": 2794,
|
|
|
"creatorName": "wxtest1",
|
|
|
"id": 12,
|
|
|
"modifyId": 2794,
|
|
|
"modifyName": "wxtest1",
|
|
|
"modifyTime": 1462954760,
|
|
|
"orderBy": 12123, --排序
|
|
|
"status": 0
|
|
|
},
|
|
|
{
|
|
|
"brandId": 1616,
|
|
|
"brandName": "12",
|
|
|
"createTime": 1462954132,
|
|
|
"creatorId": 2794,
|
|
|
"creatorName": "wxtest1",
|
|
|
"id": 10,
|
|
|
"modifyId": 2794,
|
|
|
"modifyName": "wxtest1",
|
|
|
"modifyTime": 1462954185,
|
|
|
"orderBy": 1123,
|
|
|
"status": 0
|
|
|
},
|
|
|
{
|
|
|
"brandId": 1632,
|
|
|
"brandName": "test1",
|
|
|
"createTime": 1462954329,
|
|
|
"creatorId": 0,
|
|
|
"id": 14,
|
|
|
"modifyId": 2794,
|
|
|
"modifyName": "wxtest1",
|
|
|
"modifyTime": 1462954765,
|
|
|
"orderBy": 122,
|
|
|
"status": 0
|
|
|
},
|
|
|
{
|
|
|
"brandId": 1654,
|
|
|
"brandName": "1",
|
|
|
"createTime": 1462953863,
|
|
|
"creatorId": 2794,
|
|
|
"creatorName": "wxtest1",
|
|
|
"id": 8,
|
|
|
"modifyId": 0,
|
|
|
"modifyTime": 0,
|
|
|
"orderBy": 2,
|
|
|
"status": 0
|
|
|
}
|
|
|
],
|
|
|
"page": 1,
|
|
|
"size": 10,
|
|
|
"total": 4,
|
|
|
"totalPage": 1
|
|
|
},
|
|
|
"md5": "d4d43382e074027624d686bc8b909a93",
|
|
|
"message": "查询品牌热搜词成功"
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
## 2、查询搜索品牌历史记录接口##
|
|
|
|
|
|
(method=web.brand.folder)
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|----:|
|
|
|
|uid|int|是|248|0|用户id|
|
|
|
|records|String[]| 否|["18923_adidas","183323_nike"]|-|状态|
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
请求示例
|
|
|
http://devapi.yoho.cn:58078/?debug=XYZ&app_version=3.8.2&client_type=android&os_version=yohobuy%3Ah5&screen_size=720x1280&v=7&method=app.search.hotBrandRecords&debug=XYZ&uid=9999&records
|
|
|
### 响应
|
|
|
code为200即为成功,否则是失败。
|
|
|
响应JSON格式如下所示:
|
|
|
```json
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": [
|
|
|
{
|
|
|
"searchTerms": "test-chen", --品牌
|
|
|
"searchTime": 1452043863 --时间戳
|
|
|
},
|
|
|
{
|
|
|
"searchTerms": "test-cc",
|
|
|
"searchTime": 1452043873
|
|
|
}
|
|
|
],
|
|
|
"md5": "e24c0c724646c486236bf24b7cb2a9a5",
|
|
|
"message": "success"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
## 3、清理品牌历史##
|
|
|
|
|
|
(method=web.brand.series)
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|----:|
|
|
|
|uid|int|是|248|0|用户id|
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
请求示例
|
|
|
http://devapi.yoho.cn:58078/?debug=XYZ&app_version=3.8.2&client_type=android&os_version=yohobuy%3Ah5&screen_size=720x1280&v=7&method=app.search.clearHotBrandRecords&debug=XYZ&uid=9999
|
|
|
### 响应
|
|
|
code为200即为成功,否则是失败。
|
|
|
响应JSON格式如下所示:
|
|
|
```json
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
|
|
|
"md5": "89445294eb4487a1233cff63b1df01e7",
|
|
|
"message": "brand info"
|
|
|
}
|
|
|
##热搜品牌列表接口##
|
|
|
|
|
|
(method=app.search.hotBrands)
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|----:|
|
|
|
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
请求示例
|
|
|
http://devapi.yoho.cn:58078/?debug=XYZ&app_version=3.8.2&client_type=android&os_version=yohobuy%3Ah5&screen_size=720x1280&v=7&method=app.search.hotBrands
|
|
|
|
|
|
### 响应
|
|
|
code为200即为成功,否则是失败。
|
|
|
响应JSON格式如下所示:
|
|
|
```json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"list": [
|
|
|
{
|
|
|
"brandId": 1616, --品牌id
|
|
|
"brandName": "12", --品牌名
|
|
|
"createTime": 1462954166,
|
|
|
"creatorId": 2794,
|
|
|
"creatorName": "wxtest1",
|
|
|
"id": 12,
|
|
|
"modifyId": 2794,
|
|
|
"modifyName": "wxtest1",
|
|
|
"modifyTime": 1462954760,
|
|
|
"orderBy": 12123, --排序
|
|
|
"status": 0
|
|
|
},
|
|
|
{
|
|
|
"brandId": 1616,
|
|
|
"brandName": "12",
|
|
|
"createTime": 1462954132,
|
|
|
"creatorId": 2794,
|
|
|
"creatorName": "wxtest1",
|
|
|
"id": 10,
|
|
|
"modifyId": 2794,
|
|
|
"modifyName": "wxtest1",
|
|
|
"modifyTime": 1462954185,
|
|
|
"orderBy": 1123,
|
|
|
"status": 0
|
|
|
},
|
|
|
{
|
|
|
"brandId": 1632,
|
|
|
"brandName": "test1",
|
|
|
"createTime": 1462954329,
|
|
|
"creatorId": 0,
|
|
|
"id": 14,
|
|
|
"modifyId": 2794,
|
|
|
"modifyName": "wxtest1",
|
|
|
"modifyTime": 1462954765,
|
|
|
"orderBy": 122,
|
|
|
"status": 0
|
|
|
},
|
|
|
{
|
|
|
"brandId": 1654,
|
|
|
"brandName": "1",
|
|
|
"createTime": 1462953863,
|
|
|
"creatorId": 2794,
|
|
|
"creatorName": "wxtest1",
|
|
|
"id": 8,
|
|
|
"modifyId": 0,
|
|
|
"modifyTime": 0,
|
|
|
"orderBy": 2,
|
|
|
"status": 0
|
|
|
}
|
|
|
],
|
|
|
"page": 1,
|
|
|
"size": 10,
|
|
|
"total": 4,
|
|
|
"totalPage": 1
|
|
|
},
|
|
|
"md5": "d4d43382e074027624d686bc8b909a93",
|
|
|
"message": "查询品牌热搜词成功"
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
## 2、查询搜索品牌历史记录接口##
|
|
|
|
|
|
(method=app.search.hotBrandRecords)
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|----:|
|
|
|
|uid|int|是|248|0|用户id|
|
|
|
|records|String[]| 否|["18923_adidas","183323_nike"]|-|状态|
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
请求示例
|
|
|
http://devapi.yoho.cn:58078/?debug=XYZ&app_version=3.8.2&client_type=android&os_version=yohobuy%3Ah5&screen_size=720x1280&v=7&method=app.search.hotBrandRecords&debug=XYZ&uid=9999&records
|
|
|
### 响应
|
|
|
code为200即为成功,否则是失败。
|
|
|
响应JSON格式如下所示:
|
|
|
```json
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": [
|
|
|
{
|
|
|
"searchTerms": "test-chen", --品牌
|
|
|
"searchTime": 1452043863 --时间戳
|
|
|
},
|
|
|
{
|
|
|
"searchTerms": "test-cc",
|
|
|
"searchTime": 1452043873
|
|
|
}
|
|
|
],
|
|
|
"md5": "e24c0c724646c486236bf24b7cb2a9a5",
|
|
|
"message": "success"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
## 3、清理品牌历史##
|
|
|
|
|
|
(method=app.search.clearHotBrandRecords)
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|----:|
|
|
|
|uid|int|是|248|0|用户id|
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
请求示例
|
|
|
http://devapi.yoho.cn:58078/?debug=XYZ&app_version=3.8.2&client_type=android&os_version=yohobuy%3Ah5&screen_size=720x1280&v=7&method=app.search.clearHotBrandRecords&debug=XYZ&uid=9999
|
|
|
### 响应
|
|
|
code为200即为成功,否则是失败。
|
|
|
响应JSON格式如下所示:
|
|
|
```json
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
|
|
|
"md5": "89445294eb4487a1233cff63b1df01e7",
|
|
|
"message": "brand info"
|
|
|
}
|
|
|
``` |
|
|
\ No newline at end of file |
...
|
...
|
|