2012-05-10 9 views
0

次のAPIを使用して成績を取得します: テストのために、OrgIdには、 テスト環境に存在するコースがハードコーディングされています。Grades from Desire2Learn

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":"" 
     } 
    } 
] 

答えて

関連する問題