答卷数据接口
答卷原始数据列表
接口概述
- 功能:获取某份答卷的原始数据及详细信息
- 请求方式:GET
- 请求地址: dw-open-api/survey-answer/answer-info.do
请求参数
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| anUserKey | string | 否 | 答卷anUserKey |
| answerId | string | 否 | 答卷ID |
| appId | string | 是 | 平台分配的appId |
| isAnswerInfo | integer($int32) | 是 | 是否同时取answer记录信息,1表示获取 |
| nonce | string | 是 | 随机字符串 |
| signature | string | 是 | 签名 |
| timestamp | string | 是 | 当前时间戳 |
| surveyId | string | 否 | surveyId |
请求示例
http://192.168.5.43:9999/dw-open-api/survey-answer/answer-info.do?answerId=805f59ea-775f-4fd5-a6d1-b032b305be23&appId=afds&nonce=dfsa&signature=adsf×tamp=1235478&surveyId=1f677c5e-0983-40fc-b8a7-c59ec496362a返回值
json
{
"resultCode": 200,
"resultMsg": "执行成功",
"data": {
"id": "c5419f78-fe39-407a-85f1-7408c3cf07fa",
"surveyId": "1f677c5e-0983-40fc-b8a7-c59ec496362a",
"answerId": "805f59ea-775f-4fd5-a6d1-b032b305be23",
"answerJson": "{\"anQuestions\":[{\"anRadio\":{\"optionDwId\":\"f2615531-733a-46c1-b06a-6e23689e8c96\"},\"answerFlag\":0,\"quAnScore\":0.0,\"quDwId\":\"5d191b70-aa10-40c9-87ed-d6af1f149153\",\"quType\":\"RADIO\"},{\"answerFlag\":0,\"quDwId\":\"4ce18f64-c20e-4b1f-8761-47a9ca929058\",\"quType\":\"PAGETAG\"},{\"anFbk\":{\"answer\":\"33\"},\"answerFlag\":0,\"quAnScore\":0.0,\"quDwId\":\"64c82b6b-88d0-4756-b1c4-490bf1b43e91\",\"quType\":\"FILLBLANK\"},{\"answerFlag\":0,\"quDwId\":\"1bb6c61f-c8fc-4d1a-b4b0-29d4d277acbc\",\"quType\":\"PAGETAG\"},{\"anRadio\":{\"optionDwId\":\"94e3ed69-40a3-4480-a2cd-9c12112329ca\"},\"answerFlag\":0,\"quAnScore\":0.0,\"quDwId\":\"f9539e78-d1d9-46ba-8802-5adc844dc239\",\"quType\":\"RADIO\"},{\"answerFlag\":0,\"quDwId\":\"993769ea-3cc2-4353-9ea8-8d6dc1956866\",\"quType\":\"PAGETAG\"},{\"anScores\":[{\"answerScore\":\"5\",\"optionDwId\":\"094c9a9f-9334-4d31-8070-b5df5ec84f77\"},{\"answerScore\":\"3\",\"optionDwId\":\"3078f84a-e508-4e81-8fab-937374246f73\"}],\"answerFlag\":0,\"quAnScore\":8.0,\"quDwId\":\"ce80d3eb-4112-472d-b48c-7704be02eb63\",\"quType\":\"SCORE\"},{\"answerFlag\":0,\"quDwId\":\"a5ebf341-8f0b-4bfc-805b-bc0f9d3c56ce\",\"quType\":\"PAGETAG\"},{\"anCheckboxs\":[{\"optionDwId\":\"2cf6e5b9-4770-4a85-a1e3-fe3554573434\"}],\"answerFlag\":0,\"quAnScore\":0.0,\"quDwId\":\"362eba66-840f-489d-b3f7-c411b2682e46\",\"quType\":\"CHECKBOX\"}],\"answerCommon\":{\"anIp\":{\"ip\":\"0\"},\"anSource\":{\"bro\":\"Chrome\",\"pcm\":\"Computer\",\"sys\":\"Mac OS X\"},\"anState\":{\"anQuNum\":5,\"handleState\":0,\"isEff\":1},\"anTime\":{\"bgAnDate\":1755585704116,\"endAnDate\":1755585719571,\"totalTime\":15455.0},\"anUser\":{\"userId\":\"1\",\"userName\":\"admin\"},\"answerDwId\":\"47f10e1a-6e64-47bf-805b-9a57b3222f28\",\"esAnEvent\":{\"hideTotalTime\":0,\"switchCount\":0,\"switchList\":[]},\"esAnQuotas\":[],\"esAnSolution\":{\"anSolutionIds\":[]},\"esAnVerify\":{\"verify1\":0,\"verify2\":0,\"verify3\":0,\"verifyAdmin\":0},\"isDelete\":0,\"sid\":\"ri4585u7xqi\",\"sumScore\":8.0,\"surveyDwId\":\"5f737e8f-3529-4355-95a1-1332d6a9121e\",\"surveyId\":\"1f677c5e-0983-40fc-b8a7-c59ec496362a\"}}",
"visibility": 1,
"statsTag": 0,
"answerObjStatus": 0,
"jsonVersion": 8,
"createDate": 1755585719588
}
}答卷原始数据列表
接口概述
- 功能:获取问卷答卷的原始数据列表
- 请求方式:GET
- 请求地址: /dw-open-api/survey-answer/answer-list.do
请求参数
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| anUserKey | string | 否 | 第三方anUserKey |
| appId | string | 是 | 平台分配的appId |
| nonce | string | 是 | 随机字符串 |
| pageNo | integer($int32) | 否 | 页码,默认值1 |
| pageSize | integer($int32) | 否 | 页数据大小,默认值10 |
| pwdCode | string | 否 | 答卷密码 |
| signature | string | 是 | 签名 |
| surveyId | string | 是 | 项目ID |
| thirdBindId | string | 否 | 第三方平台ID |
| timestamp | string | 是 | 当前时间戳 |
请求示例
http://192.168.5.43:9999/dw-open-api/survey-answer/answer-list.do?appId=gsfd&nonce=gfsdh&pageNo=1&pageSize=1&signature=aafd&surveyId=1f677c5e-0983-40fc-b8a7-c59ec496362a×tamp=154566654返回值
json
{
"resultCode": 200,
"resultMsg": "执行成功",
"data": {
"pageNo": 1,
"pageSize": 1,
"totalPage": 15,
"result": [
{
"id": "06acbc72-6821-4682-9f9e-704f3dbe3e16",
"userId": "1",
"bgAnDate": 1755585967000,
"endAnDate": 1755585990000,
"totalTime": 22871,
"ipAddr": "0",
"totalScore": 7,
"pwdCode": null,
"op": null,
"anUserKey": null,
"editUserId": null,
"editAnswerId": null,
"versionGroupId": null,
"thirdEditUid": null,
"thirdEditUname": null
}
],
"totalItems": 15
}
}获取答卷解析处理后的详细信息
接口概述
- 功能:获取单份答卷解析处理后的详细信息
- 请求方式:GET
- 请求地址: /dw-open-api/survey-answer/answer-parser-info.do
请求参数
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| appId | string | 是 | appId |
| signature | string | 是 | signature |
| timestamp | string | 是 | timestamp |
| nonce | string | 是 | nonce |
| surveyId | string | 否 | surveyId |
| answerId | string | 否 | answerId |
| anUserKey | string | 否 | anUserKey |
请求示例
http://192.168.5.43:9999/dw-open-api/survey-answer/answer-parser-info.do?appId=akjfg&signature=adfg×tamp=54521453&nonce=ZGdvc&surveyId=1f677c5e-0983-40fc-b8a7-c59ec496362a&answerId=805f59ea-775f-4fd5-a6d1-b032b305be23返回值
http://192.168.5.43:9999/dw-open-api/survey-answer/answer-parser-info.do?appId=akjfg&signature=adfg×tamp=54521453&nonce=ZGdvc&surveyId=1f677c5e-0983-40fc-b8a7-c59ec496362a&answerId=805f59ea-775f-4fd5-a6d1-b032b305be23答卷数据汇总
接口概述
- 功能:获取答卷数据汇总信息(汇总信息,分析报告页面的源数据),用于分析报告页面
- 请求方式:GET
- 请求地址: dw-open-api/survey-answer/survey-report.do
请求参数
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| appId | string | 是 | 平台分配的appId |
| nonce | string | 是 | 随机字符串 |
| signature | string | 是 | 签名 |
| surveyId | string | 是 | 项目ID |
| timestamp | string | 是 | 当前时间戳 |
| dwSourceName | string | 否 | dwSourceName |
请求示例
http://192.168.5.43:9999/dw-open-api/survey-answer/survey-report.do?appId=gfffff&nonce=sggf&signature=dxgbc&surveyId=1f677c5e-0983-40fc-b8a7-c59ec496362a×tamp=2158&dwSourceName=1返回值
json
{
"resultCode": 200,
"resultMsg": "执行成功",
"data": {
"count_fbk_word": {},
"countRadio": {},
"optionStats": {},
"countQu": {},
"count_matrix_checkbox": {},
"scale_agg": {},
"count_matrix_radio": {},
"countCheckbox": {}
}
}
