javascript - 尝试访问 gmail api 时出现无效范围错误

标签 javascript python apache gmail gmail-api

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/

相关文章:

php - UTF-8贯穿始终

php - Apache mod-rewrite 不接受查询字符串中的双引号

javascript - 当axios发出post请求时会发生什么?

javascript - 选择 id 包含空格的控件时出现 jQuery 错误

python - 使用 Python 3+ 通过 urllib 或 urllib2 调用 API

database - Firebird 数据库的 Web 界面

javascript - 检查数组是否在 javascript 中最有效地排序(增加,严格增加,减少,严格减少)

javascript - 影子根 getElementsByClassName

python - 如何使用 python 的结构模式匹配来测试内置类型?

python - 获取东方 ='records' 的 python pandas to_dict 但没有 float 转换