【发布时间】:2017-06-05 06:36:24
【问题描述】:
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。什么可能导致错误??
【问题讨论】:
-
您是否提交了
[https://mail.google.com/]范围的验证请求,就像错误提示您需要的那样? -
验证请求指向链接:support.google.com/code/contact/…。但是当我尝试使用 php 时它运行良好.. 没有要求任何验证.. 但我想在 JS 中实现..
-
不确定你是否明白,但这是 google 的 API 范围的问题,就像你向他们请求的信息一样。这意味着您在不请求特定权限的情况下无法访问某些信息,并且 - 据称 - 与您的代码无关。
标签: javascript python apache gmail gmail-api