Classrooms

获取会员统计信息

GET
返回教室中所有学生的相关数据

Path parameters

classroomHandlestringRequired

教室 _id.

Query parameters

projectstringOptional
限制返回的数据内容, 由以下字符串按逗号连接组成: ["creator", "playtime", "state.complete"...]
memberLimitdoubleOptional
返回值中的学生数量, 默认为 10, 最大值为 100
memberSkipdoubleOptional
返回值中跳过的学生数量, 和 memberLimit 共同起到分页作用

Response

This endpoint returns a list of objects
_id
stringOptional
stats
objectOptional
GET
$curl -G https://koudashijie.com/api/classrooms/%3AclassroomHandle/stats \
> -u "<username>:<password>" \
> -d project=string \
> -d memberLimit=1
Response
1[
2 {
3 "_id": "string",
4 "stats": {
5 "gamesCompleted": 1,
6 "playtime": 1
7 }
8 }
9]