获取营销内容分类
POST
/api/v3/category/list
信息
请求参数
Header 参数
appId
string
应用 appId
默认值:
{{appId}}
timestamp
string
请求时间戳
默认值:
{{timestamp}}
sign
string
请求消息签名值
默认值:
{{sign}}
appKey
string
应用 appKey
默认值:
{{appKey}}
Body 参数application/json
type
integer
内容类型编码
示例
{"type":13}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v3/category/list' \
--header 'appId;' \
--header 'timestamp;' \
--header 'sign;' \
--header 'appKey: {{appKey}}' \
--header 'Content-Type: application/json' \
--data-raw '{"type":13}'
返回响应
🟢200成功
application/json
Body
code
integer
响应码
message
string
必需
data
array [object {5}]
返回体
id
string
分类id
name
string
分类名称
childCategory
array [object {5}]
子分类列表
parentId
string
父分类id
seq
integer
排序字段
示例
{
"code": 0,
"message": "success",
"data": [
{
"id": "13-ww9c5530210a0d5116",
"name": "未分类",
"parentId": "",
"seq": 0,
"childCategory": null
},
{
"id": "a13639b2ae3411eb86d800163e106b20",
"name": "测试",
"parentId": "",
"seq": 1,
"childCategory": null
},
{
"id": "21e52b11ae4711eb9d1100163e106b20",
"name": "测试环境",
"parentId": "",
"seq": 2,
"childCategory": null
},
{
"id": "b92f4b3bd26b11eba98500163e106b20",
"name": "ty111",
"parentId": "",
"seq": 3,
"childCategory": null
},
{
"id": "d557c124d34e11ebb4b100163e106b20",
"name": "zyn",
"parentId": "",
"seq": 4,
"childCategory": [
{
"id": "e3490bed801111ecae2d00163e106b20",
"name": "2",
"parentId": "d557c124d34e11ebb4b100163e106b20",
"seq": 6,
"childCategory": [
{
"id": "e7c03c3b801111ecae2d00163e106b20",
"name": "3",
"parentId": "e3490bed801111ecae2d00163e106b20",
"seq": 5,
"childCategory": null
}
]
}
]
}
]
}
修改于 2023-02-11 02:35:47