我使用以下 API 来获取成绩: 对于测试,我在 OrgId 中为我们的测试环境中存在的一门课程进行了硬编码。
uri = userContext.createAuthenticatedUri("/d2l/api/le/1.0/61782/grades/", "GET");
但是,当我执行这个调用时,我得到下面返回的数据。这是等级的结构,而不是等级本身。我如何获得所有学生的实际成绩,或者我缺少哪些参数?
[
{
"MaxPoints":25.000000000,
"CanExceedMaxPoints":false,
"IsBonus":false,
"ExcludeFromFinalGradeCalculation":false,
"GradeSchemeId":0,
"Id":89242,
"Name":"Quiz #1",
"ShortName":"",
"GradeType":"Numeric",
"CategoryId":93744,
"Description":{
"Text":"",
"Html":""
}
},
{
"MaxPoints":25.000000000,
"CanExceedMaxPoints":false,
"IsBonus":false,
"ExcludeFromFinalGradeCalculation":false,
"GradeSchemeId":null,
"Id":89243,
"Name":"Quiz #2",
"ShortName":"",
"GradeType":"Numeric",
"CategoryId":93744,
"Description":{
"Text":"",
"Html":""
}
},
{
"MaxPoints":25.000000000,
"CanExceedMaxPoints":false,
"IsBonus":false,
"ExcludeFromFinalGradeCalculation":false,
"GradeSchemeId":null,
"Id":89244,
"Name":"Quiz #3",
"ShortName":"",
"GradeType":"Numeric",
"CategoryId":93744,
"Description":{
"Text":"",
"Html":""
}
},
{
"MaxPoints":10.000000000,
"CanExceedMaxPoints":false,
"IsBonus":false,
"ExcludeFromFinalGradeCalculation":false,
"GradeSchemeId":0,
"Id":89245,
"Name":"Assignment 1",
"ShortName":"",
"GradeType":"Numeric",
"CategoryId":0,
"Description":{
"Text":"",
"Html":""
}
},
{
"MaxPoints":10.000000000,
"CanExceedMaxPoints":false,
"IsBonus":false,
"ExcludeFromFinalGradeCalculation":false,
"GradeSchemeId":null,
"Id":89246,
"Name":"Assignment 2",
"ShortName":"",
"GradeType":"Numeric",
"CategoryId":0,
"Description":{
"Text":"",
"Html":""
}
},
{
"MaxPoints":40.000000000,
"CanExceedMaxPoints":false,
"IsBonus":false,
"ExcludeFromFinalGradeCalculation":false,
"GradeSchemeId":null,
"Id":89247,
"Name":"Midterm",
"ShortName":"",
"GradeType":"Numeric",
"CategoryId":0,
"Description":{
"Text":"",
"Html":""
}
},
{
"MaxPoints":106.000000000,
"CanExceedMaxPoints":false,
"IsBonus":false,
"ExcludeFromFinalGradeCalculation":false,
"GradeSchemeId":null,
"Id":89248,
"Name":"Final Exam",
"ShortName":"",
"GradeType":"Numeric",
"CategoryId":0,
"Description":{
"Text":"",
"Html":""
}
},
{
"Id":94859,
"Name":"Lec Sect",
"ShortName":"",
"GradeType":"Text",
"CategoryId":0,
"Description":{
"Text":"",
"Html":""
}
}
]