ListSceneItems - 获取预览结果
获取预览结果。
接口说明
如需使用场景管理功能,不建议使用 API 进行操作。请使用控制台中“场景管理”功能,使用详情见官方文档:通过选投策略配置,快速搭建推荐场景
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
GET /v2/openapi/instances/{instanceId}/scenes/{sceneId}/items HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| instanceId |
string |
是 |
实例 id |
airec-cn-o400whm78004 |
| sceneId |
string |
是 |
场景 id |
testid |
| operationRuleId |
string |
否 |
运营规则 id |
1 |
| selectionRuleId |
string |
否 |
选品规则 id |
1 |
| page |
integer |
否 |
指定页码,默认为:1 |
1 |
| size |
integer |
否 |
指定每页展示条数,默认为 10,限制:[1-50] |
10 |
| previewType |
string |
否 |
预览类型: PREVIEW_ITEM 单独预览选品规则预览结果 PREVIEW_QUERY 预览整体配置结果 |
PREVIEW_ITEM |
| queryCount |
integer |
否 |
查询数量 |
20 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| result |
object |
返回详情结果 |
|
| total |
object |
统计 |
|
| totalCount |
integer |
实例中 item 总数 |
1000 |
| sceneWeightItem |
integer |
当前场景加权的 item 数 |
1000 |
| sceneRecommendItem |
integer |
当前场景下可推荐的 item 数 |
1000 |
| weightItem |
integer |
实例中加权的 item 数 |
1000 |
| instanceRecommendItem |
integer |
当前实例可推荐的 item 数 |
1000 |
| detail |
array<object> |
详情 |
|
|
object |
|||
| title |
string |
标题 |
title |
| categoryPath |
string |
类目路径 |
12_34 |
| itemId |
string |
item_id |
123 |
| itemType |
string |
item_type |
video |
| status |
string |
是否可推荐,1 为可推荐,0 为不可推荐 |
1 |
| brandId |
string |
品牌 id |
123 |
| shopId |
string |
店铺 id |
123 |
| pubTime |
string |
发布时间 |
1612687809 |
| channel |
string |
频道 |
娱乐 |
| duration |
string |
停留时长 |
300 |
| author |
string |
作者 |
zhangsan |
| expireTime |
string |
失效时间 |
1612687809 |
| code |
string |
错误码 |
InternalServerError |
| requestId |
string |
请求 id |
8F81A922-6C81-46D6-B78C-CC35E16B1691 |
| message |
string |
错误详情 |
An internal server error occurred |
示例
正常返回示例
JSON格式
{
"result": {
"total": {
"totalCount": 1000,
"sceneWeightItem": 1000,
"sceneRecommendItem": 1000,
"weightItem": 1000,
"instanceRecommendItem": 1000
},
"detail": [
{
"title": "title",
"categoryPath": "12_34",
"itemId": "123",
"itemType": "video",
"status": "1",
"brandId": "123",
"shopId": "123",
"pubTime": "1612687809",
"channel": "娱乐",
"duration": "300",
"author": "zhangsan",
"expireTime": "1612687809"
}
]
},
"code": "InternalServerError",
"requestId": "8F81A922-6C81-46D6-B78C-CC35E16B1691",
"message": "An internal server error occurred"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。