获取产品详情
企业可通过此接口获取产品详情
请求方式: POST(HTTPS)
请求地址: https://open.wshoto.com/openapi/product/library/query_product_library_info
Query参数:
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
access_token | str | 调用接口凭证 |
Body参数:
{
"product_library_id": 11
}
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
product_library_id | long | 是 | 产品ID |
返回值:
{
"code": 0,
"msg": "请求成功",
"data": {
"product_library_id": 32,
"product_type_id": 24,
"product_category_id": 86,
"create_user_id": "test_17ee9f53c7bc",
"publish_status": 0,
"start_time": 123456789,
"end_time": 123456789,
"name": "test_e691a609eddf",
"product_code": "test_6446d24633db",
"choose_level": 1,
"prod_type":"link",
"app_id":"appid",
"app_path":"appPath",
"tag_ids": [
"test_cf027afde0fa"
],
"product_url": "test_4740c4312585",
"visible_dept_ids": [
"test_88b8ecdc6b91"
],
"visible_user_ids": [
"test_cf3dd4d409f4"
],
"extend_field": {},
"extension_map": {},
"description": "test_f0dbcd05e22c"
},
"sub_code": "00000"
}
参数说明:
参数 | 类型 | 说明 |
---|---|---|
code | int | 返回码 |
msg | string | 对返回码的文本描述内容 |
data | object | 响应对象 |
product_library_id | long | 产品id |
product_type_id | long | 产品类型ID |
product_category_id | long | 产品分类ID |
create_user_id | string | 创建员工ID |
publish_status | int | 有效期状态,0-长期有效,2-自定义有效时间 |
start_time | long | 有效时间-开始,格式:时间戳,精度:秒 |
end_time | long | 有效时间-结束,格式:时间戳,精度:秒 |
name | string | 产品名称 |
product_code | string | 产品编号 |
choose_level | int | 是否精选,1-非精选 2-精选 |
tag_ids | string[] | 产品标签id集合 |
product_url | string | 产品链接 |
prod_type | string | 产品链接类型。链接:link,小程序:applet。如果不传则默认为链接 |
app_id | string | 小程序的appid。app_id和app_path要么同时为空,要么同时不为空 |
app_path | string | 小程序的跳转地址。app_id和app_path要么同时为空,要么同时不为空 |
visible_dept_ids | string[] | 产品可见范围,部门ID列表 |
visible_user_ids | string[] | 产品可见范围,员工ID列表 |
extend_field | object | 自定义字段,具体自定义字段key值,参考自定义相关接口,具体使用详情请咨询产品 |
extension_map | object | 扩展字段 |
description | string | 产品介绍 |
sub_code | string | 业务异常返回码 |
extension_map参数key说明:
参数 | 类型 | 说明 |
---|---|---|
riskLevel | string | 风险等级:R1-低风险,R2-中低风险,R3-中风险,R4-中高风险,R5-高风险.若不填则默认为“R1-低风险”; 此字段仅金融版适用,非金融版请忽略此字段,否则可能会对内容的发送和客户浏览造成影响。 |
checkWhenSend | int | 在员工发送时是否需启用风险适当性匹配,0-不启用,1-启用,若不填则默认为“0-不启用” 此字段仅金融版适用,非金融版请忽略此字段,否则可能会对内容的发送造成影响。 |
checkWhenVisit | int | 在客户浏览时是否需启用风险适当性匹配,0-不启用,1-启用,若不填则默认为“0-不启用” 此字段仅金融版适用,非金融版请忽略此字段,否则可能会导致客户无法浏览内容。 |