问题
Is there a way to get both the Final Calculated Grade and the Final Adjusted Grade? I would like to be able to compare them.
回答1:
I'm wondering:
GET /d2l/api/le/(version)/(orgUnitId)/grades/values/(userId)/
Retrieve all the grade objects for a particular user assigned in an org unit.
Return. This action returns a JSON array of GradeValue blocks.
Grade.GradeValue{
"DisplayedGrade": <string>,
"GradeObjectIdentifier": <string:D2LID>,
"GradeObjectName": <string>,
"GradeObjectType": <number:GRADEOBJ_T>,
"GradeObjectTypeName": <string>|null,
"PointsNumerator": <number>|null,
"PointsDenominator": <number>|null,
"WeightedDenominator": <number>|null,
"WeightedNumerator": <number>|null
}
and then look at the "GradeObjectType" for "7" or "8"?
Grade object type / Value
FinalCalculated / 7 ^
FinalAdjusted / 8 ^
(I wonder what is meant by "^ Direct creation of these types through these APIs is not supported.")
回答2:
It seems the best solution (or workaround) is to retrieve the final grade, determine what column it's coming from, and then subtract or add (+1 / -1) to the objectID to get the corresponding Calculated or Adjusted column.
回答3:
I believe that there currently is no way to retrieve the final adjusted grade value through the Valence Learning Framework API, only the final calculated grade value. Additionally, end-user type callers can only see the final grade when the grade gets released: up until that point, only users capable of setting a final grade value (or perhaps releasing it?) can see the final grade value for a user.
来源:https://stackoverflow.com/questions/24293428/d2l-valence-retrieve-final-grades