接口简介

  • 本接口主要用于请求特殊标签列表
  • 本接口支持page分页

接口请求说明

请求方式

GET https://{hostname}.qianfanapi.com/openapi/feed/special-tag-list

请求参数

参数名 类型 是否必须 说明
page int 普通分页 1开始
perPage int 分页个数 默认20条
name string 名称查询
color string 颜色查询 例:#E7B300

请求示例

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

接口响应说明

响应示例

{
    "code": 0,
    "text": "",
    "data": {
        "total": "16",
        "list": [
            {
                "id": "1",
                "type": 1,
                "name": "投票",
                "color": "#E7B300"
            },
            {
                "id": "2",
                "type": 1,
                "name": "商品",
                "color": "#FF8328"
            },
            {
                "id": "3",
                "type": 1,
                "name": "悬赏",
                "color": "#DAA53E"
            },
            {
                "id": "4",
                "type": 1,
                "name": "报名",
                "color": "#51BC77"
            },
            {
                "id": "5",
                "type": 1,
                "name": "辩论",
                "color": "#70B235"
            },
            {
                "id": "6",
                "type": 2,
                "name": "新闻",
                "color": "#F12E2E"
            },
            {
                "id": "11",
                "type": 1,
                "name": "专题",
                "color": "#2B72E2"
            },
            {
                "id": "12",
                "type": 1,
                "name": "活动",
                "color": "#D44437"
            },
            {
                "id": "13",
                "type": 1,
                "name": "话题",
                "color": "#23B0F1"
            },
            {
                "id": "14",
                "type": 2,
                "name": "爆料",
                "color": "#FD4F2D"
            },
            {
                "id": "21",
                "type": 2,
                "name": "广告",
                "color": "#9C9C9C"
            },
            {
                "id": "22",
                "type": 2,
                "name": "置顶",
                "color": "#34538B"
            },
            {
                "id": "23",
                "type": 2,
                "name": "分类信息",
                "color": ""
            },
            {
                "id": "10000",
                "type": 1,
                "name": "123asd",
                "color": "123123"
            },
            {
                "id": "10001",
                "type": 1,
                "name": "123asd",
                "color": "123123"
            },
            {
                "id": "10002",
                "type": 1,
                "name": "123asd",
                "color": "3123"
            }
        ]
    },
    "time": 1601431903
}

响应结果说明

字段名 类型 说明
id int id 小于10000的是论坛帖子默认的标签 不支持修改
name string 名称
type int 样式类型 自定义暂时只支持1
color string 颜色
文档更新时间: 2020-09-30 10:18   作者:毛成