1
嘗試在Google課堂中打開學生提交時出現錯誤。PERMISSION_DENIED嘗試關閉Google課堂中的StudentSubmission
使用下面的代碼:
mService.courses().courseWork().studentSubmissions().turnIn(mCourseWork.getCourseId(),mCourseWork.getId() ,mySubmission.getId(),turnInStudentSubmissionRequest).execute();
獲得以下錯誤:
403 Forbidden
{
"code" : 403,
"errors" : [ {
"domain" : "global",
"message" : "@ProjectPermissionDenied The Developer Console project is not permitted to make this request.",
"reason" : "forbidden"
} ],
"message" : "@ProjectPermissionDenied The Developer Console project is not permitted to make this request.",
"status" : "PERMISSION_DENIED"
}
創建課程和作業的應用程序只能提交這些作業(我們不能使用其他應用程序或具有其他包名稱的應用程序提交這些作業)。 – ganeshveera