400. That’s an error.
Error: invalid_scope
You don't have permission to access some scopes. Your project is trying to access scopes that need to go through the verification process. {invalid = [https:// mail.google.com/]} If you need to use one of these scopes, submit a verification request.
这是我在浏览此链接中的教程时遇到的错误: https://developers.google.com/gmail/api/quickstart/js
在链接中,他们要求我通过 python 访问网络服务器,但我使用的是 apache。 所以在步骤 1.f 中,授权的 JavaScript 来源:我使用链接 http://localhost 而不是 http://localhost:8000。什么可能导致错误??
最佳答案
您可以引用这个 thread .
As per the announcement on May 11, 2017, publicly available applications with access to certain user data must pass review. If you see an access error for your app, submit a request using our OAuth Developer Verification form.
For personal-use apps and those you are testing, join the Google group Risky Access Permissions By Unreviewed Apps, which allows you to approve data access for personal and testing accounts. See the Google API Services User Data Policy for more information.
这blog有关如何修复此错误的信息可能也会有所帮助。
关于javascript - 尝试访问 gmail api 时出现无效范围错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44363021/