获取测试互动用户作答详情
拥有此API的权限集 |
---|
测试互动管理-查询 |
请求方式及url
- 请求方式:
POST
- 请求头:
Content-Type:application/json
- 接口地址:
https://api.xiaoe-tech.com/xe.evaluation.api.record.detail/1.0.0
- 频率限制:
10秒3000次
在线调试工具
请求
响应
请求参数
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
access_token | 是 | string | 专属token |
evaluation_id | 是 | string | 测试互动id |
user_id | 是 | string | 用户id |
id | 是 | int | 用户参与id |
请求示例
{
"access_token":"xe_xxxxx",
"evaluation_id": "ev_xxxxxx",
"user_id": "u_xxxxxxxx",
"id": 8457920
}
返回参数
参数名 | 必选 | 类型 | 说明 | 备注 |
---|---|---|---|---|
code | 是 | int | 返回码 | 0-成功,其他失败 |
msg | 是 | string | 返回信息 | ... |
data | 是 | json对象 | 返回值 | ... |
list | 是 | json数组 | 题目列表 | ... |
题目列表list
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
question_id | 是 | string | 题目id |
content | 是 | string | 题目内容 |
img_url | 是 | string | 题目图片url |
img_url_compressed | 是 | string | 压缩题目图片url |
type | 是 | int | 题目样式 0-文本 1-文本+图片 2-文本+音频 3-文本+视频 |
answer_type | 是 | int | 题目类型 0-单选 1-多选 |
answer | 是 | array of string | 用户选择的选项,选项id数组 |
current_answer | 是 | array of string | 问题的正确答案数组,选项id数组 |
options | 是 | json数组 | 问题的选项数组,每个选项是一个对象 |
score | 是 | float | 该题目的得分 |
选项列表options
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
option_id | 是 | string | 选项id |
content | 是 | string | 选项内容 |
img_url | 是 | string | 选项的图片 |
img_url_compressed | 是 | string | 压缩后的选项的图片 |
score | 是 | float | 当前选项的得分 |
type | 是 | int | 选项样式 0-文本 1-文本+图片 |
备注
code=0
时,msg
:code!=0
时,msg
:拉取数据错误
返回示例
{
"code": 0,
"msg": "success",
"data": {
"list": [
{
"question_id": "qs_XXXXXX",
"content": "测试主流程啊ce",
"img_url": "",
"img_url_compressed": "",
"type": 0,
"answer_type": 0,
"answer": [
"op_XXXXXX"
],
"current_answer": [
"op_XXXXXX"
],
"options": [
{
"option_id": "op_XXXXXX",
"content": "测试",
"img_url": "",
"img_url_compressed": "",
"score": 0,
"type": 0
},
{
"option_id": "op_XXXXXX",
"content": "测试",
"img_url": "",
"img_url_compressed": "",
"score": 0,
"type": 0
},
{
"option_id": "op_XXXXXX",
"content": "测试",
"img_url": "",
"img_url_compressed": "",
"score": 0,
"type": 0
}
],
"score": 0,
"status": 1,
"sort": 0
},
{
"question_id": "qs_XXXXXX",
"content": "测测",
"img_url": "https://example.com/image/default/c1OL3Lu1712825937Wm.png",
"img_url_compressed": "http://example.com/image/compress/630354c1OL3Lu1712825937Wm.png",
"type": 1,
"answer_type": 1,
"answer": [
"op_XXXXXX",
"op_XXXXXX"
],
"current_answer": [
"op_XXXXXX",
"op_XXXXXX"
],
"options": [
{
"option_id": "op_XXXXXX",
"content": "测试",
"img_url": "https://example.com/image/default/c1OL3Lu1712825937Wm.png",
"img_url_compressed": "http://example.com/image/compress/260195c1OL3Lu1712825937Wm.png",
"score": 0,
"type": 0
},
{
"option_id": "op_XXXXXX",
"content": "123123",
"img_url": "https://example.com/image/default/c1OL3Lu1712825937Wm.png",
"img_url_compressed": "http://example.com/image/compress/260195c1OL3Lu1712825937Wm.png",
"score": 0,
"type": 0
},
{
"option_id": "op_XXXXXX",
"content": "测试啊啊",
"img_url": "https://example.com/image/default/cIj5PtK1712823897Qt.png",
"img_url_compressed": "http://example.com/image/compress/260195cIj5PtK1712823897Qt.png",
"score": 0,
"type": 0
}
],
"score": 0,
"status": 1,
"sort": 0
}
]
}
}