获取学员作业答题详情
拥有此API的权限集 |
---|
作业管理-查询 |
请求方式及url
- 请求方式:
POST
- 请求头:
Content-Type:application/json
- 接口地址:
https://api.xiaoe-tech.com/xe.exercise.api.user.answer/1.0.0
- 频率限制:
10秒3000次
在线调试工具
请求
响应
请求参数
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
access_token | 是 | string | 专属token |
exercise_book_id | 是 | string | 作业本id |
exercise_id | 是 | string | 作业id |
exercise_answer_id | 是 | string | 学员回答id |
请求示例
{
"access_token": "xe_xxxxx",
"exercise_book_id": "e62e0dee1ec4fe_vsKwcvpz",
"exercise_id": "ex62e0deed5b497_rnUIBBc5",
"exercise_answer_id": "ea_62e0ee3250a86_EI6TedV7"
}
返回参数
参数名 | 类型 | 说明 |
---|---|---|
code | int | 状态码 |
msg | string | 请求状态描述信息 |
data | object | 数据 |
data.app_id | string | 店铺id |
data.exercise_book_id | string | 作业本id |
data.exercise_id | string | 作业id |
data.exercise_answer_id | string | 学员回答作业id |
data.answer_user_id | string | 学员id |
data.answer_content | string | 回答内容描述 |
data.img_urls | [string] | 图文链接集合 |
data.img_compressed_urls | array | 压缩-图文链接集合 |
data.audio_urls | array | 作业的语音回答 |
data.question_list | array | 题目列表 |
data.material_infos | array | 手动布置的题目的学员回答列表 |
data.video_urls | array | 作业的视频回答集合 |
question_list
题目列表
参数名 | 类型 | 说明 |
---|---|---|
app_id | string | 店铺id |
exercise_id | string | 作业id |
id | string | 作业题目id |
bank_question_id | string | 题库题目id |
type | int | 题型,0-单选,1-多选,2-简答,3-判断,4-填空,5-不定项,6-材料题 ,type=6时,子题信息从child_info取 |
weight | int | 权重 |
is_material_question | int | 是否材料题,0-否 1-是 |
content | string | 题目内容,包含html标签 |
describ | string | 题目内容,不包含html标签 |
analysis | string | 题目解析 |
audio_urls | array | 题目音频 |
option_list | array | 选项,单选,多选,不定项存在,选项内容 |
correct_answer | string | 正确答案 |
disorder_match | int | 乱序匹配,0-关闭,1-开启 |
score | int | 分数 |
answer | array | 学员答案 |
is_answer_right | int | 是否作答正确,0:否 1:是 |
child_info | array | 子题列表,结构与question_list等同 |
answer
学员答案
参数名 | 类型 | 说明 |
---|---|---|
text | string | 学员文本答案 |
audio_urls | array | 学员音频答案 |
audio_urls[].audio_length | string | 音频长度 |
audio_urls[].id | string | 音频id |
audio_urls[].audio_url | string | 音频url |
img_urls | array | 学员图片答案 |
material_infos
手动布置的题目的学员答案
参数名 | 类型 | 说明 |
---|---|---|
type | int | 1-图片 2-音频 3-视频 |
url | string | 资源地址 |
material_id | string | 素材ID |
patch_img_url | string | 视频封面 ,当type为3时,该字段才存在 |
返回示例
{
"code": 0,
"msg": "获取作业回答成功!",
"data": {
"app_id": "appAKLWLitnxxxxx",
"exercise_book_id": "e62f3ac28d5b28_IUQbL54P",
"exercise_id": "ex_62f3aced14e33_9CaxSN2j",
"exercise_answer_id": "ea_62f4601ecff13_N7eXGghI",
"answer_user_id": "u_601ce0dd63a87_o6UwqyP1eR",
"type": 1,
"answer_content": "",
"img_urls": [],
"img_compressed_urls": [],
"audio_urls": [
{
"audio_length": "3",
"id": "iCqi-OlHYnWsB79Rlib5CTivUdh7gFoCpMMg2sXirAdgFT4Thz2dgXdGTnmKf5Yo",
"audio_url": "http://wechatappdev-12525xxxxxx.file.myqcloud.com/appAKLWLitnxxxxx/sound/6463100d1ea9a9070ec5e16f03ec9e89_1.mp3"
}
],
"video_urls": [
"https://v-vod-k.xiaoeknow.com/xxx/xxx/video/xxx/xxx/drm/main.m3u8?sign=xxx&t=66607c77&us=kRQbJHuhjQ"
],
"question_list": [
{
"app_id": "appAKLWLitnxxxxx",
"exercise_id": "ex_62f3aced14e33_9CaxSN2j",
"id": "eq_62f3aced18cec_PdjcCYQV",
"bank_question_id": "qs_62f323f8a3795_30ZIHi12",
"type": 2,
"weight": 2,
"is_material_question": 0,
"content": "<p>设置一个作业</p>",
"describ": "设置一个作业",
"analysis": "",
"audio_urls": [],
"option_list": [],
"correct_answer": "",
"disorder_match": 0,
"score": 2,
"answer": {
"text": "噢力给",
"audio_urls": [
{
"audio_length": "3",
"id": "iCqi-OlHYnWsB79Rlib5CTivUdh7gFoCpMMg2sXirAdgFT4Thz2dgXdGTnmKf5Yo",
"audio_url": "http://wechatappdev-12525xxxxxx.file.myqcloud.com/appAKLWLitnxxxxx/sound/6463100d1ea9a9070ec5e16f03ec9e89_1.mp3"
}
],
"img_urls": [
"http://wechatappdev-12525xxxxxx.file.myqcloud.com/appAKLWLitnxxxxx/image_compressed/80bcfb79f72b94735a94991e68376a8d.jpeg"
]
},
"is_answer_right": 0
},
{
"app_id": "appAKLWLitnxxxxx",
"exercise_id": "ex_62f3aced14e33_9CaxSN2j",
"id": "eq_62f3aced19758_ypPc9k8o",
"bank_question_id": "qs_62f328ba24fb9_QhjjrJTD",
"type": 2,
"weight": 1,
"is_material_question": 0,
"content": "<p>1111111</p><img src=\"https://wechatapppro-12525xxxxxx.file.myqcloud.com/appAKLWLitnxxxxx/image/ueditor/41230200_1660030721.png\" />",
"describ": "1111111",
"analysis": "",
"audio_urls": [],
"option_list": [],
"correct_answer": "",
"disorder_match": 0,
"score": 2,
"answer": {
"text": "噢力给",
"audio_urls": [
{
"audio_length": "4",
"id": "iCqi-OlHYnWsB79Rlib5CSZqMkN5EJvz1ZADxTHgfH5dvqIu1jgcZBBMG2GpZyA1",
"audio_url": "http://wechatappdev-12525xxxxxx.file.myqcloud.com/appAKLWLitnxxxxx/sound/9ab12b44c8adc7e13a3dba0362ae24e9_1.mp3"
}
],
"img_urls": [
"http://wechatappdev-12525xxxxxx.file.myqcloud.com/appAKLWLitnxxxxx/image_compressed/f0a0f10a578173ecb5f3deaf85952e79.jpeg"
]
},
"is_answer_right": 0
}
]
}
}