擷取預覽結果。
介面說明
如需使用情境管理功能,不建議使用 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"
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。