Google 教室无权访问 Google 云端硬盘

Google classroom doesn't have access to Google Drive

好吧,我遇到了同样的问题:

有什么方法可以在 Google 课堂测试帐户上访问 Google 驱动器吗?

这是使用 google 驱动器文件创建分配时的错误。

com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
{
  "code" : 403,
  "errors" : [ {
    "domain" : "global",
    "message" : "The caller does not have permission",
    "reason" : "forbidden"
  } ],
  "message" : "The caller does not have permission",
  "status" : "PERMISSION_DENIED"
}

不,google 教室是一个独立于云端硬盘的 google 程序。教室是教室中每个人共享的一组文件夹。

是的,您可以在 Google 课堂中使用 Google Drive

Representation of a Google Drive file.

{
  "id": string,
  "title": string,
  "alternateLink": string,
  "thumbnailUrl": string,
}

请注意,测试帐户将在 30 天后过期,并且不允许用户访问Google 个应用程序,但课堂除外。您可以查看此documentation以供参考。

好吧,我通过获取真实的 teacher/student 帐户解决了这个问题