获取规则记录
最后更新:2024/1/8企业可通过此接口分页获取规则记录
请求方式: POST(HTTPS)
请求地址: https://open.wshoto.com/openapi/sop/rule_page
Query参数:
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
access_token | string | 是 | 调用接口凭证 |
Body参数:
{
"start_create_time": 1673346331,
"end_create_time": 1674123932,
"task_id": 1643433458374,
"rule_id": 1753438238327,
"current_index": 1,
"page_size": 20
}
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
start_create_time | long | 否 | 创建开始时间(时间戳,单位:秒) |
end_create_time | long | 否 | 创建结束时间(时间戳,单位:秒) |
task_id | long | 否 | 标准化营销任务id |
rule_id | long | 否 | 标准化营销任务规则id |
current_index | int | 否 | 页码。默认值为1 |
page_size | int | 否 | 列表返回长度。默认值为20,最大值为100 |
返回值:
{
"code": 0,
"msg": "请求成功",
"data": {
"total": 1,
"records": [
{
"rule_id": 1,
"task_id": 1,
"status": 1,
"selection_type": 1,
"selection_tag": [
{
"tag_id": "test_3d404a68bbef",
"tag_group_id": "test_fa6ecf720197"
}
],
"selection_time": 10,
"selection_time_type": 95,
"selection_hours": 9,
"selection_days": 21,
"selection_time_str": "test_0cf409467f1e",
"selection_num": 99,
"repeat": 29,
"repeat_week": "test_54dddb491807",
"repeat_end_time": 35,
"name": "test_4111817f7e24",
"task_type": 1,
"masscorp_msg_type": 1,
"task_range": {
"user_ids": [
"test_467f6d51ab23"
],
"dept_ids": [
1
],
"customer_tags": [
{
"tag_id": "test_3305af8c915e",
"tag_group_id": "test_acaddf5bd267"
}
],
"exclude_customer_tags": [
{
"tag_id": "test_a8a3ce3ee867",
"tag_group_id": "test_a50b1fcca6d2"
}
],
"group_keywords": [
"test_2b6907e18d57"
],
"user_tags": [
{
"tag_id": "test_faef5f046c25",
"tag_name": "test_533059034d8e",
"deleted": 0
}
]
},
"content": "test_e0441547145b",
"media_list": [
{
"id": 35,
"business_type": 1,
"target_id": 1,
"title": "test_4803773ccc9a",
"combination_id": "test_c2198d2bee52",
"package_config_id": "test_9e6f40f241b6"
}
],
"verbal_materials": [
{
"id": 35,
"type": 1,
"title": "test_8c58c458413a",
"combination_id": "test_7c9bf3d051ae",
"package_config_id": "test_bb5a7fab363a",
"is_poster": true,
"act_child_type": 1
}
],
"end_time": 87
}
]
}
}
参数说明:
参数 | 类型 | 说明 |
---|---|---|
code | int | 返回码 |
msg | string | 对返回码的文本描述内容 |
data | object | |
total | long | |
records | object[] | |
rule_id | long | 标准化营销任务规则id |
task_id | long | 标准化营销任务id |
status | int | 任务状态:1、进行中;2、未开始;3、已结束;4、已失效 |
selection_type | int | 触发条件 1、固定时间;2、添加好友;3、创建新群;4、群人数;5、跟进商机;6、客户标签;7、客户生日;8、自定义字段 |
selection_tag | object[] | 触发条件对应的标签组id+客户标签id |
tag_id | string | 标签ID |
tag_group_id | string | 标签组id |
selection_time | long | 选择时间 |
selection_time_type | int | 选择时间类型:-1、X分钟后触发;1、n小时后触发/n小时后下个整点触发;2、第n天HH:mm触发 |
selection_hours | int | 当选择时间类型是1时有值,小时数 |
selection_days | int | 当选择时间类型是2时有值,第几天;当选择客户生日时,代表前n天(-1表示前一天);当selection_time_type=1时(0、n小时后触发;1、n小时后下个整点触发) |
selection_time_str | string | 当选择时间类型是2时有值,时间格式:HH:mm |
selection_num | int | 群人数/商机未跟进天数/优先级:协作任务(微盛:1、一星;2、二星;3、三星;4、四星 , 其它:1、低;2、中;3、高)、跟进任务(外部企业优先级低-1/中-2/高-3;微盛企业优先级为一-4/二-5/三-6/四-7 星) |
repeat | int | 重复:1、每天;2、工作日;3、每周;4、每两周;5、每月;6、每年;7、不重复 |
repeat_week | string | 当重复类型为每周时,保存选中的周几,例:1,2,5(周一、周二、周五) |
repeat_end_time | long | 当重复类型为每周时,保存选中的周几,例:1,2,5(周一、周二、周五) |
name | string | 任务名称 |
task_type | int | 任务类型:1、群发客户;2、群发客户群;3、群发朋友圈;4、跟进提醒;5、发表朋友圈;6、协作任务;7、企业群发客户;10、跟进客户 |
masscorp_msg_type | int | 群发任务的发送方式,1:员工一键发送;2:通知员工转发 如果taskType为7,则为1:员工一键发送 如果taskType为1、2、3,则为2:通知员工转发 其它则为空 |
task_range | object | 发送范围 |
user_ids | string[] | 添加人列表 |
dept_ids | long[] | 添加部门列表 |
customer_tags | CustomerTagVO[] | 标签列表 |
tag_id | string | 标签ID |
tag_group_id | string | 标签组id |
exclude_customer_tags | CustomerTagVO[] | 剔除标签列表 |
tag_id | string | 标签ID |
tag_group_id | string | 标签组id |
group_keywords | string[] | 群关键词集合 |
user_tags | object[] | 员工标签集合 |
tag_id | string | 员工标签id |
tag_name | string | 员工标签名称 |
deleted | int | 是否删除,0-否,1-是 |
media_list | long | 发送内容 |
id | long | 素材id |
business_type | string | 素材类型 0表示正常素材,1表示任务裂变素材,2商品海报素材,3商品小程序,4优惠券海报素材,5优惠券小程序,6活动海报素材,7活动小程序,8群裂变素材 |
target_id | string | businessType=2,3时,是商品id;businessType=4,5时,是优惠券id;businessType=6,7时,是活动id |
title | string | 标题 |
combination_id | string | 关联的组合素材id |
package_config_id | string | 组合素材分类id |
verbal_materials | long | 参考话术 |
id | long | 素材id |
type | int | 素材类型 0表示正常素材,1表示任务裂变素材,2商品海报素材,3商品小程序,4优惠券海报素材,5优惠券小程序,6活动海报素材,7活动小程序,8群裂变素材 |
title | string | 标题 |
combination_id | string | 关联的组合素材id |
package_config_id | string | 组合素材分类id |
is_poster | bool | true为标识为海报图片素材 false为普通素材图片 |
act_child_type | int | 活动素材子类型 1.拼团/2.秒杀/3.抽奖 |
end_time | long | 结束时间 |