根据素材id查素材详情
1、 已经被删除的素材,会返回空;
2、只支持查看本店铺的素材
请求URL:
POST https://kf.fw199.com/gateway/dd/material/querymaterialdetail
公共参数
参数名称 | 参数类型 | 是否必须 | 示例值 | 参数描述 |
---|---|---|---|---|
appid | String | 是 | 合作伙伴AppId | |
timestamp | String | 是 | 1657525936 | 当前Unix时间戳,秒 |
seller_nick | String | 是 | 38173182 | 抖店的账号,对应蜂巢授权返回doudianseller字段 |
sign | String | 是 |
业务参数
参数名称 | 参数类型 | 是否必须 | 示例值 | 参数描述 |
---|---|---|---|---|
material_id | String | 是 | 70031975314170022840250 | 素材id;可使用【/material/batch/upload/image/sync】【/material/upload/image/sync】【/material/search/material 】接口获取 |
2. 请求示例代码(Java)
请求示例代码
@Test
public void DDMaterialQueryMaterialDetail() throws Exception {
Map<String, Object> data = new HashMap<String, Object>();
data.put("appid", Config.AppId);
Long timestamp = System.currentTimeMillis() / 1000;
data.put("timestamp", timestamp.toString());
data.put("seller_nick", Config.DDSellerNick);
data.put("material_id","73697813761677233040425" );
data.put("sign", Sign(data,Config.AppSecret));
// 调用服务API
String resp = doHttpRequest(Config.DDMaterialQueryMaterialDetail, data);
System.out.println(resp);
}
3. 返回结果如下:
{
"code": 0,
"message": "ok",
"data": {
"material_info": {
"audit_reject_desc": "",
"audit_status": 3,
"byte_url": "https://p3-aio.ecombdimg.com/obj/ecom-shop-material/ZfkBZpcR_m_7b0c5176542b6228bd6cb9b26b0b6e02_sx_10411_www339-350",
"create_time": "2024-05-17 09:55:41",
"delete_time": "2024-05-20 10:59:28",
"folder_id": "-1",
"material_id": "73697813761677233040425",
"material_type": "photo",
"materil_name": "test1.jpg",
"operate_status": 4,
"origin_url": "https://www.cheeli.com.cn/wp-content/themes/stratusx-child/img/product/productA1.jpg",
"photo_info": {
"format": "jpeg",
"height": 350,
"width": 339
},
"size": 11264,
"update_time": "2024-05-20 10:59:28"
}
}
}
说明: code为0表示成功,非0为失败,message会包含失败原因。返回字段说明见文档
https://op.jinritemai.com/docs/api-docs/69/1145
文档更新时间: 2024-12-11 20:08 作者:JSL