编程语言
首页 > 编程语言> > javascript-尝试访问gmail api时出现无效范围错误

javascript-尝试访问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 07001 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 07002 form.

For personal-use apps and those you are testing, join the Google group 07003, which allows you to approve data access for personal and testing accounts. See the 07004 for more information.

关于如何解决此错误的blog也可能会有所帮助.

标签:gmail,gmail-api,apache,javascript,python
来源: https://codeday.me/bug/20191111/2018909.html