3.4 品牌数据接口 - getBrands
优质
小牛编辑
150浏览
2023-12-01
品牌数据接口 - GetBrands
获取品牌列表 可根据名称模糊查询返回品牌列表
Request Parameters
Parameter name | Type | Description | Required |
---|---|---|---|
search_word | string | 名称模糊查询,如果为空,返回所有品牌 | No |
Response Elements
Parameter name | Type | Description |
---|---|---|
action | string | 响应动作 |
brands | array | 品牌列表,每项参数可见下面 Response Item |
total_count | int | 根据过滤条件得到的品牌数 |
Response Item
Parameter name | Type | Description |
---|---|---|
brand_id | int | 品牌id |
brand_name | string | 品牌名称 |
brand_name_first | string | 品牌名称首字母 |
示例
请求示例
http://open.syntun.cn/api/dq/GetBrands
&search_word="伊利"
&COMMON_PARAMS
响应示例
{
"code": 1000,
"msg": "OK",
"data": {
"action": "getBrands",
"brands": [
{
"brand_id": "558",
"brand_name": "伊利",
"brand_name_first": "Y"
}
],
"total_count": 1,
"page_urls": {
"first": "COMMAN_PARAMS&search_word=%E4%BC%8A%E5%88%A9&page=1",
"previous": null,
"current": "COMMAN_PARAMS&search_word=%E4%BC%8A%E5%88%A9&page=1",
"next": null,
"last": "COMMAN_PARAMS&search_word=%E4%BC%8A%E5%88%A9&page=1"
}
}
}