|
创意组件 | 查询组件
请求方式:
POST(HTTPS)
请求地址:
SERVER_HOST/api/v2/materialstyle/query
请求参数体:
{
"body": {
"materialIds":[1,2,3], //物料id集合
"materialTypes": [x,x], //子链类型
"status": 105, //物料审核状态
},
"header": {//
"adType": 1,//
"agentpassword": "",//
"agentusername": "",//
"apiusertype": "",//
"password": "",//
"token": "",//
"username": ""//
}
}
|
参数说明:
参数 |
必填 |
类型 |
说明 |
materialIds |
否 |
long[] |
物料id集合,不传查询全部 |
materialTypes |
是 |
int[] |
物料子链类型, 7:短子链组,9:单图,8:长子链组,11:单子链-短子链,37:单子链-长子链,18:图文组件,52:图集组件 |
status |
否 |
int |
物料状态,正常:105, 审核中:106, 拒绝:107,暂停:108 |
响应结果:
{
"data": [//
{
"accountId":1, //账号id
"materialId":1, //物料id
"deviceType":2, //设备类型
"materialType": 37, //物料类型
"content":"xx",//物料内容
"ispause": 1,//是否暂停
"status": 105 //物料状态
"materialStyleGrpList": [//绑定关系
{
"styleid":xx
"accountid":xx,
"materialId":xx,
"level":xx,
"targetId":xx,
"materialType":xxx
"deviceType":xx
}
]
"materialStyleModify ":{//影子物料,无影子则为null
"materialId":1, //物料id
"deviceType":2, //设备类型
"materialType": 37, //物料类型
"content":"xx",//物料内容
"ispause": 105,//是否暂停
"status":"xx" //物料状态
}
}
]
// 公共响应
}
|
参数说明:
参数 |
类型 |
说明 |
accountid |
Long |
账户ID |
materialId |
Long |
物料id |
deviceType |
Long |
设备类型 |
materialType |
int |
物料类型 |
content |
string |
物料内容
content格式定义 |
ispause |
int |
是否暂停 0:启用1:暂停 |
status |
int |
物料状态, 正常:105,审核中:106,拒绝:107,暂停:108 |
materialStyleModify |
|
影子物料,无影子为null |
|