我使用以下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":""
}
}
]
答案 0 :(得分:0)
我希望您想要的电话是grades in an org unit by user来自文档的成绩值(actions和data structures)区域。
您需要在ID的类列表上重复此调用。
(博客上提供了walk through和code snippets)