示例1:获取高校课堂列表及课堂详情
约束限制
老师用户已经在classroom教学平台中存在已自己创建的课堂或参与的课堂。
操作步骤
- 查询课堂列表。
- 接口信息
API文档详情请参见:获取当前用户的课堂列表
API Explorer在线调试请参见: 获取当前用户的课堂列表
- 请求示例
GET https://classroom-ext.cn-north-4.myhuaweicloud.com/v3/classrooms?offset=1&limit=100
- 响应示例
{ "classrooms": [ { "classroom_id": "1532910a5115448da1eb92202592f…", "credit": "1.5", "description": "这是第一个课堂", "name": "Java高级编程", "status": "normal" } ], "total": 1 }
- 接口信息
- 查询课堂详情
- 接口信息
URI:GET /v3/classrooms/{classroom_id}
API文档详情请参见:根据课堂ID获取指定课堂的详细信息
API Explorer在线调试请参见: 根据课堂ID获取指定课堂的详细信息
- 请求示例
GET https://classroom-ext.cn-north-4.myhuaweicloud.com/v3/classrooms/e5c3bd30c989418286406d2cf1151...
- 响应示例
{ "announcement": "这是一个公告", "announcement_time": "2019-11-19", "content_count": 1, "courseware_count": 1, "create_time": "2019-11-19 01:56:21", "credit": 1.5, "description": "这是第一个课堂", "end_time": "2019-11-20 00:00:00", "job_count": 1, "member_count": 10, "name": "Java高级编程", "role": "teacher", "school": "华为云", "start_time": "2019-11-19 00:00:00", "status": "normal", "teacher": "张三", "update_time": "2019-11-19 01:56:21" }
- 接口信息