接口简介

  • 分类信息全部分类

接口请求说明

请求方式

GET https://{hostname}.qianfanapi.com/openapi/fenlei/categories

请求示例

# GET请求
curl -X GET  'https://{hostname}.qianfanapi.com/openapi/fenlei/categories' \
  -H 'Authorization: Bearer 5d39164d1f281' \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json'

接口响应说明

响应示例

{
    "code": 0,
"text": "",
"data": [
    {
    "id": "167",
    "name": "建材",
    "logo": "https://qiance.qianfanyun.com/1565071864541830.jpg?imageslim|imageView2/1/w/200/h/200",
    "allow_link": 2,
    "link": "",
    "children": [
        {
        "id": "180",
        "name": "家政服务",
        "logo": "http://qiance.qianfanyun.com/?imageslim|imageView2/1/w/200/h/200",
        "allow_link": 2,
        "link": "",
        "allow_info_modify": 1
        }
    ],
    "allow_info_modify": 1
    },
    {
    "id": "92",
    "name": "相亲交友",
    "logo": "https://qiance.qianfanyun.com/1569400500873985.jpg?imageslim|imageView2/1/w/200/h/200",
    "allow_link": 2,
    "link": "",
    "children": [],
    "allow_info_modify": 1
    },
],
"time": 1574839829
}

响应结果说明

字段名 类型 说明
id int 分类ID
name str 分类名
logo str 分类LOGO
allow_link int 是否跳转 1跳转外链,2不跳转
link str 跳转链接
children array 分类下的子分类
allow_info_modify int 1允许修改内容 2不允许修改内容
文档更新时间: 2019-11-27 15:41   作者:张旭