简体   繁体   English

Google课堂API返回“请求的身份验证范围不足”

[英]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.

相关问题 请求与谷歌联系人的身份验证范围不足 - Request had insufficient authentication scopes with google contacts Google People API gapi.client.people.people.connections.list 返回请求的身份验证范围不足 - Google People API gapi.client.people.people.connections.list returns Request had insufficient authentication scopes 请求的身份验证范围不足 javascript - Request had insufficient authentication scopes javascript 当多次调用Google表格时,API身份验证无法用于第二次调用:请求的身份验证范围不足 - When making multiple calls to google sheets API authentication doesn't work for second call: Request had insufficient authentication scopes EmailJS 身份验证问题(412 Gmail_API:请求的身份验证范围不足。) - EmailJS authentication problem ( 412 Gmail_API: Request had insufficient authentication scopes. ) 错误 403:“请求的身份验证范围不足”,即使相关范围已激活 - Error 403: 'Request had insufficient authentication scopes' even though the relevant scopes are activated Google Classroom API 401错误 - Google Classroom API 401 Error 如何编辑范围? // 谷歌课堂控制谷歌应用脚​​本中学生访问权限范围 - How do I edit scopes? // Google Classroom control permission scopes in google apps scripts for student access Google API多个范围 - Google API multiple scopes Google Apps 脚本中的 Classroom API IndividualStudentsOptions - Classroom API IndividualStudentsOptions in Google Apps Script
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM