购买咨询
微信咨询
电话咨询
预约演示
跳转到内容

答卷数据接口

答卷原始数据列表

接口概述

  • 功能:获取某份答卷的原始数据及详细信息
  • 请求方式:GET
  • 请求地址: dw-open-api/survey-answer/answer-info.do

请求参数

参数名类型必填描述
anUserKeystring答卷anUserKey
answerIdstring答卷ID
appIdstring平台分配的appId
isAnswerInfointeger($int32)是否同时取answer记录信息,1表示获取
noncestring随机字符串
signaturestring签名
timestampstring当前时间戳
surveyIdstringsurveyId

请求示例

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&timestamp=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

请求参数

参数名类型必填描述
anUserKeystring第三方anUserKey
appIdstring平台分配的appId
noncestring随机字符串
pageNointeger($int32)页码,默认值1
pageSizeinteger($int32)页数据大小,默认值10
pwdCodestring答卷密码
signaturestring签名
surveyIdstring项目ID
thirdBindIdstring第三方平台ID
timestampstring当前时间戳

请求示例

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&timestamp=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

请求参数

参数名类型必填描述
appIdstringappId
signaturestringsignature
timestampstringtimestamp
noncestringnonce
surveyIdstringsurveyId
answerIdstringanswerId
anUserKeystringanUserKey

请求示例

http://192.168.5.43:9999/dw-open-api/survey-answer/answer-parser-info.do?appId=akjfg&signature=adfg&timestamp=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&timestamp=54521453&nonce=ZGdvc&surveyId=1f677c5e-0983-40fc-b8a7-c59ec496362a&answerId=805f59ea-775f-4fd5-a6d1-b032b305be23

答卷数据汇总

接口概述

  • 功能:获取答卷数据汇总信息(汇总信息,分析报告页面的源数据),用于分析报告页面
  • 请求方式:GET
  • 请求地址: dw-open-api/survey-answer/survey-report.do

请求参数

参数名类型必填描述
appIdstring平台分配的appId
noncestring随机字符串
signaturestring签名
surveyIdstring项目ID
timestampstring当前时间戳
dwSourceNamestringdwSourceName

请求示例

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&timestamp=2158&dwSourceName=1

返回值

json
{
  "resultCode": 200,
  "resultMsg": "执行成功",
  "data": {
    "count_fbk_word": {},
    "countRadio": {},
    "optionStats": {},
    "countQu": {},
    "count_matrix_checkbox": {},
    "scale_agg": {},
    "count_matrix_radio": {},
    "countCheckbox": {}
  }
}

调问-专业的开源问卷表单系统