【发布时间】:2016-10-18 02:33:35
【问题描述】:
我很难弄清楚如何检索与特定课程 (ID) 关联的 Google Drive 文件夹。
我的理解是这个值可以作为teacherFolder值:
请看这里: https://developers.google.com/classroom/reference/rest/v1/courses
"id": string,
"name": string,
"section": string,
"descriptionHeading": string,
"description": string,
"room": string,
"ownerId": string,
"creationTime": string,
"updateTime": string,
"enrollmentCode": string,
"courseState": enum(CourseState),
"alternateLink": string,
"teacherGroupEmail": string,
"courseGroupEmail": string,
"teacherFolder": {
object(DriveFolder)
},
但这是作为一个包含以下内容的对象返回的:
{
"id": string,
"title": string,
"alternateLink": string,
}
我正在尝试获取与 Google Classroom 中的课程相关联的 Google Drive 文件夹(通过课程 ID),以便我可以将资源上传到相应的文件夹。
请指点我正确的方向。
(我希望通过 php 来实现。)
【问题讨论】:
标签: php string google-drive-api google-docs-api google-classroom