[关闭]
@sewise-dev 2018-07-10T02:32:44.000000Z 字数 6819 阅读 821

知识元与因尚大数据统计接口文档

大数据


更新历史

编号 版本 说明 作者 日期
1 v1.0 初始版本 jacky 2018-6-20

目录

学(教)情报告

1.学生基础数据

2.学生学情报告

2.1 学情指数

学情指数.png-50.2kB

/score/operation/:student_id

HTTP Content-Type / 请求方式

application/json
Get

HTTP 响应状态

200

返回字段 字段类型 说明
status int 返回状态码
data Array 返回结果

data

返回字段 字段类型 说明
date string 日期
base_score int 基础总分
base_score_item Array 基础信息
behavior_score int 行为总分
behavior_score_item Array 行为信息
active_score int 活跃总分
active_score_item Array 活跃信息
total_score int 总分
接口示例

Request
curl -X Get -H "Content-Type:application/json"
http://statistics.luobo.com/score/operation/530
Response
{"success":true,"data":{"user_id":"530","user_type":"1","date":"2018-06-20","organ_id":"18","base_score":52,"base_score_item":[{"content":"未设置头像","score":-3},{"content":"未绑定手机","score":-5},{"content":"设置教育信息","score":10}],"behavior_score":0,"behavior_score_item":[{"content":"今日完成0个课时的学习","score":0},{"content":"今日在线学习累计0小时","score":0}],"active_score":5,"active_score_item":[{"content":"今日按时点名上课","score":5},{"content":"今日累计在线提问0次","score":0},{"content":"今日完成课堂在线互动0次","score":0},{"content":"今日累计发言0次","score":0}],"total_score":57,"time":"1529481908673"}}

2.2 今日在线学习统计

今日学习情况.png-15.6kB

/statistics/student/onlineStudy

HTTP Content-Type / 请求方式

application/json
Get

请求参数
参数 必选 类型 说明
student_id string 学生id
HTTP 响应状态

200

返回字段 字段类型 说明
status int 返回状态码
result Array 返回结果

result

返回字段 字段类型 说明
today_learn_klg int 今日知识点擦除数量
today_learn_swl int 今日课时学习数
today_question int 今日答题数目
today_online_time int 今日在线学习时间
total_learn_klg int 知识点擦除数量
total_learn_swl int 课时学习数
total_question int 答题数目
total_online_time int 在线学习时间
接口示例

Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/statistics/student/onlineStudy
Response
{"status":200,"result":{"today_learn_klg":0,"today_learn_swl":0,"today_question":0,"today_online_time":0,"total_learn_klg":12,"total_learn_swl":3,"total_question":15,"total_online_time":41969,
"online_list":[{"data_time":"2017-02-20T00:00:00.000Z","online_time":39664,"prepare_time":2342,"review_time":3516,"learn_klg":8,"learn_swl":2,"question":10},{"date_time":"2017-02-21T00:00:00.000Z","timetag":1487606400,"online_time":2305,"prepare_time":737,"review_time":1107,"learn_klg":4,"learn_swl":1,"question":5}]}}

2.3 作业情况 (暂无定义

2.4 在线作业正确率 (暂无定义

2.5 情绪分析

情绪分析.png-39.1kB

/statistics/student/faceRanking

HTTP Content-Type / 请求方式

application/json
Get

请求参数
参数 必选 类型 说明
student_id string 学生id
day_start_time string 开始时间
day_end_time string 结束时间
HTTP 响应状态

200

返回字段 字段类型 说明
status int 返回状态码
result Array 返回结果

result

返回字段 字段类型 说明
list Array 专注度列表
precent Array 情绪分布列表

list

返回字段 字段类型 说明
day string 日期
precent string 分数

precent

返回字段 字段类型 说明
happy int 开心百分比
low int 低落百分比
calm int 平静百分比
接口示例

Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/statistics/student/faceRanking
Response
{"status":200,"result":{"list":[{"day":"11/2","precent":"89.00"}],"precent":{"happy":0,"low":0,"calm":"100.00"}}

2.6 学习时间分布

学习时间分布.png-29.9kB

/statistics/student/subject

HTTP Content-Type / 请求方式

application/json
Get

请求参数
参数 必选 类型 说明
student_id string 学生id
HTTP 响应状态

200

返回字段 字段类型 说明
status int 返回状态码
result Array 返回结果

result

返回字段 字段类型 说明
code int 学科code
value Array 返回耗时结果

value

返回字段 字段类型 说明
online_time int 返回耗时
接口示例

Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/statistics/student/subject
Response
{"status":200,"result":[{"code":545,"value":{"online_time":111}}]}

2.7 学情统计

学情统计.png-13.1kB

/studentStatistics/studyinfo

HTTP Content-Type / 请求方式

application/json
Get

请求参数
参数 必选 类型 说明
student_id string 学生id
day_start_time string 开始时间
day_end_time string 结束时间
HTTP 响应状态

200

返回字段 字段类型 说明
status int 返回状态码
result Array 返回结果

result/course
result/course/all-总的纪录

返回字段 字段类型 说明
finishtotal string 课程总数
wipetotal string 知识点总数
wrongtotal string 答题总数
righttotal string 答题总数
swltotal string 课时总数
klgtotal string 知识点总数

result/course/personal-个人纪录

返回字段 字段类型 说明
finishtotal string 完成课程总数
wipetotal string 擦除总数
wrongtotal string 答错题总数
righttotal string 答对题总数
swltotal string 学习过的课时总数
klgtotal string 学习过的知识点总数
接口示例

Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/studentStatistics/studyinfo
Response
{"success":true,"data":{"course":{"personal":[{"_id":"courseid","time":0,"finishtotal":0,"wipetotal":0,"wrongtotal":0,"righttotal":0,"duration":481,"swltotal":2,"klgtotal":17}],"all":[{"_id":"courseid","time":0,"finishtotal":0,"wipetotal":0,"wrongtotal":0,"righttotal":0,"duration":481,"swltotal":2,"klgtotal":17}]}}

2.8 在线学习统计

在线时间.png-21kB

/statistics/student/onlineStudy

HTTP Content-Type / 请求方式

application/json
Get

请求参数
参数 必选 类型 说明
student_id string 学生id
HTTP 响应状态

200

返回字段 字段类型 说明
status int 返回状态码
result Array 返回结果

result

返回字段 字段类型 说明
online_list Array 在线学习列表

online_list

返回字段 字段类型 说明
data_time int 当前日期
online_time int 在线时间
prepare_time int 预习时间
review_time int 复习时间
learn_klg int 知识点擦除数量
learn_swl int 课时学习数
question int 答题数目
接口示例

Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/statistics/student/onlineStudy
Response
{"status":200,"result":{"today_learn_klg":0,"today_learn_swl":0,"today_question":0,"today_online_time":0,"total_learn_klg":12,"total_learn_swl":3,"total_question":15,"total_online_time":41969,
"online_list":[{"data_time":"2017-02-20T00:00:00.000Z","online_time":39664,"prepare_time":2342,"review_time":3516,"learn_klg":8,"learn_swl":2,"question":10},{"date_time":"2017-02-21T00:00:00.000Z","timetag":1487606400,"online_time":2305,"prepare_time":737,"review_time":1107,"learn_klg":4,"learn_swl":1,"question":5}]}}

2.9 考勤统计 (暂无定义

3.数据上报

3.1 上报日常数据

/statistics/student/onlineStudy

HTTP Content-Type / 请求方式

application/json
Post

请求参数
参数 说明 类型
timetag 数据对应日期时间戳 int
studend_id 学生ID string
student_name 学生昵称 string
teacher_id 对应的学科老师id int
online_time 在线时长 int
prepare_time 预习时长 int
review_time 复习时长 int
learn_swl 已学习的课程数量 int
question 已回答的知识点问题数量 int
right_total 正确的回答数量 int
wrong_total 错误的回答数量 int
ask_question 提问的数量 int
reply_question 得到回答的数量 int
learn_klg 已学习的知识点数量 int
wipe_klg 擦除的知识点数量 int
like_klg 点赞的知识点数量 int
province 所在的省 string
city 所在的市 string
district 所在的区 string
school 所在的学校 string
grade 所在的年级 string
clas 所在的班级 string
subject 学科 int
接口示例

Request
curl -X POST -H "Content-Type:application/json" http://statistics.luobo.com/statistics/student/onlineStudy
Response
{"success":true}

3.2 上报表情

/statistics/student/faceRanking

HTTP Content-Type / 请求方式

application/json
Post

必传参数
参数 必选 类型 说明
timetag int 上报时间
teacher_id int 老师id
teacher_name string 老师名称
student_id int 学生id
student_name string 学生名称
focus int 专注度
excited int 兴奋度
confused int 困惑度
kind string face
happy int 高兴度
calm int 平静度
low int 低落度
anger float 生气
contempt float 鄙视
disgust float 厌恶
fear float 恐惧
happiness float 高兴
neutral float 平静
sadness float 伤心
surprise float 惊喜
sn string 机器码
subjct string 学科
courseid string 课程id
swlid string 课时id
klgid string 知识点id
klgtitle string 知识点标题
hour int 当前播放时刻
playTime int 当前播放视频的时长
HTTP 响应状态

200

接口示例

Request
curl -X Post -H "Content-Type:application/json"
http://statistics.luobo.com/statistics/student/faceRanking
Response
{"status":200}

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注