获取收集表填写数据
最后更新:2024/12/26员工分享出去的收集表, 分页获取客户填写的收集表信息。
请求方式: POST(HTTPS)
请求地址: https://open.wshoto.com/openapi/collect/detail/page?access_token=access_token
Query参数:
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
access_token | string | 是 | 调用接口凭证 |
Body参数:
{
"form_id": 1634567890987645,
"detail_status": 1,
"send_user_id": "Wang",
"start_commit_time": 1645632000,
"end_commit_time": 1645646000,
"current_index": 1,
"page_size": 10
}
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
form_id | string | 是 | 收集表的id |
send_user_id | string | 否 | 发送人id |
detail_status | int | 否 | 填写的收集表详情数据的状态 0-已查看未填写,1-已填写未提交,2-已提交 |
start_commit_time | long | 否 | 提交时间的开始时间.到秒的时间戳 |
end_commit_time | long | 否 | 提交时间的结束时间.到秒的时间戳 |
current_index | int | 是 | 当前页数 |
page_size | int | 是 | 每页大小;最大不能超过200 |
返回值:
{
"code": 0,
"msg": "请求成功",
"data": {
"total": 20,
"records": [
{
"customer_name": "幽默的魂",
"unionid": "oLRmLxAKYJ7ARsPDBss3dq1",
"external_userid": "wmDkH9EAAAMaUogKi6d5pyccVuqi1hWQ",
"detail_status": 0,
"view_time": 1645632000,
"commit_time": 1645632012,
"send_user_id": "woDkH9EAAAdsSWgIDXXjUREWuIS9Yktg",
"dept_id": 1,
"detail_data": "{\"area\":{\"code\":\"\",\"name\":\"\"},\"address\":\"\",\"cellPhoneNumber\":\"\",\"mobilePhone\":\"\",\"gender\":[],\"mf_collect_form_ddm6bj3mrxa9_51\":[{\"name\":\"865d79af8f424dd\",\"id\":\"1800356349545037315\",\"value\":\"https://pubres-test.wshoto.com/base-material-server/wpDkH9EAAAbGhTVDWDgcS9soO5YxCA3A/1800356314233230850-1718073368973.jpeg\"}],\"compellation\":\"慧琳\",\"accessCustomerChannel\":[],\"email\":\"\"}"
}
]
}
}
返回说明:
参数 | 类型 | 说明 |
---|---|---|
code | int | 出错返回码,为0表示成功,非0表示调用失败 |
msg | string | 返回码描述 |
data | File | 分页数据 |
total | int | 总量 |
records | Detail[] | 收集表详情列表 |
customer_name | string | 客户名称(如果有就返回) |
unionid | string | 客户unionid(如果有就返回) |
openid | string | 客户openid(如果有就返回) |
external_userid | string | 客户external_userid(如果有就返回) |
detail_status | int | 填写的收集表详情数据的状态 0-已查看未填写,1-已填写未提交,2-已提交 |
view_time | long | 查看时间.到秒的时间戳 |
commit_time | long | 提交时间.到秒的时间戳 |
send_user_id | string | 发送员工userid |
dept_id | int | 员工主部门id |
detail_data | string | 客户填写的收集表详情 |