跳到主要内容

获取考试成绩

重要提示

该功能为 尊享版 付费功能,如未升级,请先 升级 后再使用

接口概述

  • 功能:获取考试成绩(仅支持考试问卷)
  • 请求方式:GET
  • 请求地址:/api/surveys/{survey_id}/answers/{answer_id}/exam/score?appid={appid}&access_token={access_token}

请求参数

参数名类型参数位置描述示例值
survey_idintegeruri问卷ID292192
answer_idintegeruri回答编号1

响应参数

参数名类型描述
scorefloat成绩

响应示例

{
"code": "OK",
"error": {
"type": ""
},
"data": {
"score": 90
},
"request_id": "2c4fb97e-aedb-47e2-9fe1-34ce4cb444fe"
}

错误码

error.type 错误代码错误描述
survey_not_found问卷不存在
invalid_scene不是考试问卷
answer_not_found答卷不存在
score_not_published成绩未发布(出卷人未进行评分)