- API调用指南
- 鉴权(访问令牌)
- 素材
- 联动打标
- 素材组
- 元数据(Metadata)
- 内容分发
- 01 分发看板
- 02 内容中心
- 03 私域中心
- 04社媒分发
- 消息
- 租户基础信息
- 用户信息
- 埋点
- 审批中心
- 规则引擎
- 冷库归档
- 客户端开放接口
- 历史版本(不推荐)
- 日常测试
- 测试POST
01 素材组检索
POST
/open-api/standard/v2/asset/collection/search
素材组检索
对应素材库 -> 全部素材组界面中的各个tab
如果只需要在某个素材组内检索,则需要该素材组id作为限定条件
获取素材组封面图时可根据需要是否获取永久链接
{
"code":"",
"type":""
}
请求参数
Header 参数
Access-token
string
必需
示例值:
ca9adf46-e134-4fbe-b5a7-07ea220278a5
Token-type
string
必需
示例值:
bearer
x-open-api-user
string
必需
示例值:
xxx@tezign.com
Content-Type
string
必需
示例值:
application/json
x-asm-prefer-tag
string
可选
默认值:
version-env-07
Body 参数application/json
token
string
必需
param
object
必需
keywordList
array[string]
关键词列表
keywordScope
array[string]
关键字检索范围
scope
integer
检索范围
sort
object
排序规则
field-排序字段-可选值:
sort-排序规则-可选值:
parentCollectionId
integer
父级素材组ID
pageNum
integer
页码
pageSize
integer
每页的数量
permalink
boolean
是否获取永久链接
示例
{
"token": "9b56f87f-06f0-4812-adb0-5df7d9e14bda",
"param": {
"keywordList": ["B"],
"scope": 0,
"sort": {
"field": "default",
"sort": "desc"
},
"parentCollectionId": 292630,
"pageNum": 1,
"pageSize": 10
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://open-auth.tezign.com/open-api/standard/v2/asset/collection/search' \
--header 'Access-token: ca9adf46-e134-4fbe-b5a7-07ea220278a5' \
--header 'Token-type: bearer' \
--header 'x-open-api-user: xxx@tezign.com' \
--header 'x-asm-prefer-tag: version-env-07' \
--header 'Content-Type: application/json' \
--data-raw '{
"token": "9b56f87f-06f0-4812-adb0-5df7d9e14bda",
"param": {
"keywordList": ["B"],
"scope": 0,
"sort": {
"field": "default",
"sort": "desc"
},
"parentCollectionId": 292630,
"pageNum": 1,
"pageSize": 10
}
}'
返回响应
🟢200成功
application/json
Body
code
string
必需
message
string
必需
result
object
必需
totalCount
integer
素材组总数
list
array [object {14}]
素材组列表
示例
{
"code": "0",
"message": "success",
"result": {
"totalCount": 194,
"list": [
{
"id": 292631,
"collectionName": "B",
"itemCount": 0,
"collectionCount": 1,
"belongId": 1,
"description": null,
"parentCollectionId": 292630,
"rootId": 292630,
"thunders": null,
"hasCollected": false,
"createTime": 1679988188000,
"createUser": 1,
"updateTime": 1679988270000,
"updateUser": 1
},
{
"id": 112828,
"collectionName": "B37957",
"itemCount": 0,
"collectionCount": 0,
"belongId": 1,
"description": null,
"parentCollectionId": 292630,
"rootId": 292630,
"thunders": null,
"hasCollected": false,
"createTime": 1677150275000,
"createUser": 1,
"updateTime": 1680031712000,
"updateUser": 1
},
{
"id": 112827,
"collectionName": "BA8775",
"itemCount": 0,
"collectionCount": 0,
"belongId": 1,
"description": null,
"parentCollectionId": 292630,
"rootId": 292630,
"thunders": null,
"hasCollected": false,
"createTime": 1677150275000,
"createUser": 1,
"updateTime": 1680031712000,
"updateUser": 1
},
{
"id": 112826,
"collectionName": "B37958",
"itemCount": 0,
"collectionCount": 0,
"belongId": 1,
"description": null,
"parentCollectionId": 292630,
"rootId": 292630,
"thunders": null,
"hasCollected": false,
"createTime": 1677150275000,
"createUser": 1,
"updateTime": 1680031712000,
"updateUser": 1
},
{
"id": 112825,
"collectionName": "B44751",
"itemCount": 0,
"collectionCount": 0,
"belongId": 1,
"description": null,
"parentCollectionId": 292630,
"rootId": 292630,
"thunders": null,
"hasCollected": false,
"createTime": 1677150275000,
"createUser": 1,
"updateTime": 1680031712000,
"updateUser": 1
},
{
"id": 112824,
"collectionName": "B44750",
"itemCount": 0,
"collectionCount": 0,
"belongId": 1,
"description": null,
"parentCollectionId": 292630,
"rootId": 292630,
"thunders": null,
"hasCollected": false,
"createTime": 1677150275000,
"createUser": 1,
"updateTime": 1680031712000,
"updateUser": 1
},
{
"id": 112823,
"collectionName": "AB6066",
"itemCount": 0,
"collectionCount": 0,
"belongId": 1,
"description": null,
"parentCollectionId": 292630,
"rootId": 292630,
"thunders": null,
"hasCollected": false,
"createTime": 1677150275000,
"createUser": 1,
"updateTime": 1680031712000,
"updateUser": 1
},
{
"id": 112822,
"collectionName": "B41765",
"itemCount": 0,
"collectionCount": 0,
"belongId": 1,
"description": null,
"parentCollectionId": 292630,
"rootId": 292630,
"thunders": null,
"hasCollected": false,
"createTime": 1677150275000,
"createUser": 1,
"updateTime": 1680031712000,
"updateUser": 1
},
{
"id": 112821,
"collectionName": "AI7286",
"itemCount": 0,
"collectionCount": 0,
"belongId": 1,
"description": null,
"parentCollectionId": 292630,
"rootId": 292630,
"thunders": null,
"hasCollected": false,
"createTime": 1677150275000,
"createUser": 1,
"updateTime": 1680031712000,
"updateUser": 1
},
{
"id": 112820,
"collectionName": "B41766",
"itemCount": 0,
"collectionCount": 0,
"belongId": 1,
"description": null,
"parentCollectionId": 292630,
"rootId": 292630,
"thunders": null,
"hasCollected": false,
"createTime": 1677150275000,
"createUser": 1,
"updateTime": 1680031712000,
"updateUser": 1
}
]
}
}
修改于 2024-05-23 01:44:33