请求方式:POST(HTTPS)
请求地址:https://qyapi.weixin.qq.com/cgi-bin/report/sitecode/get_report_answer?access_token=ACCESS_TOKEN
请求包体:
{
"siteid": "siteid",
"date": "2020-03-27",
"cursor": "cursor",
"limit": 100
}
参数说明:
参数 | 必须 | 说明 |
---|---|---|
access_token | 是 | 调用接口凭证 |
siteid | 是 | 场所码ID |
date | 是 | 具体某天任务的填写答案 |
cursor | 否 | 上一次调用时返回的next_cursor,初次调用可以不填 |
limit | 否 | 拉取的数据量 |
权限说明:
返回结果:
{
"errcode": 0,
"errmsg": "ok",
"answers":[
{
"report_time": 123456789,
"report_values": [
{
"question_id": 1,
"single_choice": 2
},
{
"question_id": 2,
"text": "广东省广州市"
},
{
"question_id": 3,
"multi_choice": [
1, 3
]
}
]
},
{
"report_time": 123456789,
"report_values":[
{
"question_id": 1,
"single_choice": 1
},
{
"question_id": 2,
"text": "广东省深圳市"
},
{
"question_id": 3,
"multi_choice":[
1,2,3
]
}
]
}
],
"next_cursor": "NEXT_CURSOR",
"has_more": 0
}
参数说明:
参数 | 说明 |
---|---|
errcode | 返回码 |
errmsg | 对返回码的文本描述内容 |
answers | 答案列表 |
answers.report_time | 用户填写时的时间戳 |
answers.report_values | 用户填写的答案列表 |
answers.report_values.question_id | 问题的id |
answers.report_values.single_choice | 单选题答案编号 |
answers.report_values.text | 填空题答案内容 |
answers.report_values.multi_choice | 多选题答案编号 |
answers.report_values.url | 图片url,目前仅行程卡类型的问题会返回该字段 |
answers.report_values.itinerary_card_type | 行程卡类型,仅行程卡类型的问题会返回该字段,0:行程码状态识别失败、1:绿码、2:红码、3:黄码、4:橙码、5:未识别出行程卡、6:绿码带星 |
answers.report_values.high_risk_area | 高风险行程信息,仅行程卡类型的问题会返回该字段 |
next_cursor | 当前数据最后一个key值,如果下次调用带上该值则从该key值往后拉,用于实现分页拉取 |
has_more | 是否结束。1:表示还有更多数据,需要继续拉取,0:表示已经拉取完所有数据。注意只能根据该字段判断是否已经拉完数据 |