当Google Classrom列出课程的老师的课程API时,接收403

时间:2020-05-13 23:17:29

标签: google-classroom

我正在调用Google课堂API GET https://classroom.googleapis.com/v1/courses/ {courseId} / courseWork

代表已注册给定课程ID的老师。请求时,API返回HttpError 403

https://classroom.googleapis.com/v1/courses/courseId/courseWork?alt=json returned "The caller does not have permission">

据我所知,这位老师具有正确的范围,可以将此API称为“ https://www.googleapis.com/auth/classroom.rosters.readonly”,“ https://www.googleapis.com/auth/classroom.coursework.students”, 'https://www.googleapis.com/auth/classroom.profile.emails','https://www.googleapis.com/auth/classroom.courses.readonly'

我能够获取课程信息并列出老师和学生,而不会出现任何问题。我不清楚该端点为何返回拒绝的权限。

任何想法/建议都值得赞赏。

0 个答案:

没有答案