[英]Google classroom API returned “Request had insufficient authentication scopes”
I'm trying to use the Google classroom API to show the coursework of a particular course. 我正在尝试使用Google课堂API来展示特定课程的课程作业。 I called this API: 我打电话给这个API:
"https://classroom.googleapis.com/v1/courses/{courseid}/courseWork"
But the server returned this error: 但是服务器返回了这个错误:
"Request had insufficient authentication scopes."
This API is for a chrome extension. 此API适用于Chrome扩展程序。 I've checked the manifest file: 我检查了清单文件:
"oauth2": {
"client_id": some id
"scopes": ["https://www.googleapis.com/auth/classroom.courses",
"https://www.googleapis.com/auth/classroom.coursework.me"]
}
I also checked the developer console, the scopes section also contains the above URLs. 我还检查了开发人员控制台,范围部分也包含上述URL。
Does anyone know what am I missing here? 有谁知道我在这里失踪了什么? Thanks! 谢谢!
It seems like I've solved the puzzle myself! 好像我自己解决了这个难题! I had to reload the unpacked extension to let the new manifest file take effect. 我不得不重新加载解压扩展以让新的清单文件生效。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.